Enum AttributeRole

  • All Implemented Interfaces:
    Serializable, Comparable<Attribute­Role>

    public enum AttributeRole
    extends Enum<AttributeRole>
    Roles that can be associated to some attributes for instructing Feature­Type­Builder how to generate pre-defined operations. Those pre-defined operations are:
    • A compound operation for generating a unique identifier from an arbitrary amount of attribute values.
    • A link operation for referencing a geometry to be used as the default geometry.
    • An operation for computing the bounding box of all geometries found in the feature. This operation is automatically added if the feature contains a default geometry.
    This enumeration allows user code to specify which feature attribute to use for creating those operations.
    Since:
    0.8
    See Also:
    Attribute­Type­Builder​.add­Role(Attribute­Role)

    Defined in the sis-feature module

    • Enum Constant Detail

      • DEFAULT_GEOMETRY

        public static final AttributeRole DEFAULT_GEOMETRY
        Attribute value will be flagged as the default geometry. Feature can have an arbitrary amount of geometry attributes, but only one can be flagged as the default geometry.
    • Method Detail

      • values

        public static AttributeRole[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AttributeRole c : AttributeRole.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AttributeRole valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        Illegal­Argument­Exception - if this enum type has no constant with the specified name
        Null­Pointer­Exception - if the argument is null