Package dk.mada.jaxrs.model
Interface SubtypeSelector
@Immutable
public interface SubtypeSelector
Sub-type selection information.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubtypeSelector
Creates a new subtype selector instance.Returns the name of the property holding the type selector.Returns the mapping from names to types.
-
Method Details
-
of
Creates a new subtype selector instance.- Parameters:
propertyName
- the name of the property containing the sub-type selectiontypeMapping
- the sub-type mapping- Returns:
- a new instance
-
propertyName
String propertyName()Returns the name of the property holding the type selector.- Returns:
- the name of the property holding the type selector
-
typeMapping
Returns the mapping from names to types.- Returns:
- the mapping from names to types
-