Enum NFEAttributeType
- java.lang.Object
-
- java.lang.Enum<NFEAttributeType>
-
- oracle.spatial.network.nfe.model.feature.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 typejava.lang.ObjectparseJavaValue(java.lang.String strValue)Gets the representation of the string parameter as the appropriate Java Class instance for the current type.static NFEAttributeTypeparseString(java.lang.String typeStr)Given an attribute type name, it returns the actual NFEAttributeType for that name.java.lang.StringtoString()static NFEAttributeTypevalueOf(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.
-
-
-
Enum Constant Detail
-
NUMBER
public static final NFEAttributeType NUMBER
-
INTEGER
public static final NFEAttributeType INTEGER
-
VARCHAR2
public static final NFEAttributeType VARCHAR2
-
DATE
public static final NFEAttributeType DATE
-
TIMESTAMP
public static final NFEAttributeType TIMESTAMP
-
SDO_GEOMETRY
public static final NFEAttributeType SDO_GEOMETRY
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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
-
-