Class FeatureSubtype


  • public final class FeatureSubtype
    extends java.lang.Object
    Defines a feature subtype.

    Subtypes are a subset of features in a feature class, or objects in a table, that share the same attributes. They are used as a method to categorize your data.

    Since:
    100.3.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getCode()
      Gets the feature subtype's code.
      java.util.Map<java.lang.String,​Domain> getDomains()
      Gets the domains associated with this feature subtype.
      java.util.List<Field> getFieldOverrides()
      Gets the fields defined for this feature subtype.
      java.lang.String getName()
      Gets the name of the feature subtype.
      java.util.Map<java.lang.String,​java.lang.Object> getPrototypeAttributes()
      Gets the prototype attributes for creating a Feature with this subtype.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name of the feature subtype.
        Returns:
        the name of the feature subtype
        Since:
        100.3.0
      • getCode

        public java.lang.Object getCode()
        Gets the feature subtype's code.

        The feature subtypes have a paired code and value. For example, the following codes in a subtype named RoadClass could represent valid classes in a feature class for streets:

        • 0 - Local Streets
        • 1 - Secondary Streets
        • 2 - Main Streets
        If this feature subtype represents the Main Streets, the Integer 2 will be returned as the code.
        Returns:
        the code of the feature subtype
        Since:
        100.3.0
      • getDomains

        public java.util.Map<java.lang.String,​Domain> getDomains()
        Gets the domains associated with this feature subtype.
        Returns:
        an unmodifiable Map; the keys are Strings containing the names of fields and the values are Domains applicable to these fields
        Since:
        100.3.0
        See Also:
        Domain
      • getPrototypeAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getPrototypeAttributes()
        Gets the prototype attributes for creating a Feature with this subtype.
        Returns:
        an unmodifiable Map; the keys are Strings containing attribute names and the values are Objects to be assigned to these attributes
        Since:
        100.3.0