Interface SubtypeSelector


@Immutable public interface SubtypeSelector
Sub-type selection information.
  • Method Details

    • of

      static SubtypeSelector of(String propertyName, Map<String,Reference> typeMapping)
      Creates a new subtype selector instance.
      Parameters:
      propertyName - the name of the property containing the sub-type selection
      typeMapping - 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

      Map<String,Reference> typeMapping()
      Returns the mapping from names to types.
      Returns:
      the mapping from names to types