Enum NFEAttributeType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<NFEAttributeType>

    public enum NFEAttributeType
    extends java.lang.Enum<NFEAttributeType>
    Possible types of a feature layer's attribute
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getTypeClass()
      Gets the Java Class that corresponds to the current type
      java.lang.Object parseJavaValue​(java.lang.String strValue)
      Gets the representation of the string parameter as the appropriate Java Class instance for the current type.
      static NFEAttributeType parseString​(java.lang.String typeStr)
      Given an attribute type name, it returns the actual NFEAttributeType for that name.
      java.lang.String toString()  
      static NFEAttributeType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static NFEAttributeType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static NFEAttributeType[] 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 (NFEAttributeType c : NFEAttributeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NFEAttributeType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<NFEAttributeType>
      • parseJavaValue

        public java.lang.Object parseJavaValue​(java.lang.String strValue)
        Gets the representation of the string parameter as the appropriate Java Class instance for the current type. If it is not possible to represent the string as the current type, null is returned.
        Parameters:
        strValue - a string value
        Returns:
        the Object equivalent of the string value or null if it cannot be represented by the current type
      • parseString

        public static NFEAttributeType parseString​(java.lang.String typeStr)
        Given an attribute type name, it returns the actual NFEAttributeType for that name.
        Parameters:
        typeStr - an attribute type name. It is the same that the name of the current enumeration values and is not sensible to the case.
        Returns:
        an NFEAttributeType value or null if it does not match any value number.
      • getTypeClass

        public java.lang.Class<?> getTypeClass()
        Gets the Java Class that corresponds to the current type
        Returns:
        a Java Class