|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<AttributeType>
org.gephi.data.attributes.api.AttributeType
public enum AttributeType
The different type an AttributeColumn can have.
| Method Summary | |
|---|---|
static double |
getDoubleFromXMLDateString(java.lang.String str)
|
java.lang.Class |
getType()
Returns the Class the type is associated with. |
java.lang.String |
getTypeString()
The name of the enum constant. |
boolean |
isDynamicType()
Indicates if this type is a DynamicType. |
boolean |
isListType()
|
static AttributeType |
parse(java.lang.Object obj)
Build an AttributeType from the given
obj type. |
java.lang.Object |
parse(java.lang.String str)
Try to parse the given str snippet in an object of the type associated to this
AttributeType. |
static AttributeType |
parseDynamic(java.lang.Object obj)
Build an dynamic AttributeType from the given
obj type. |
java.lang.String |
toString()
|
static AttributeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AttributeType[] |
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 |
| Enum Constant Detail |
|---|
public static final AttributeType BYTE
public static final AttributeType SHORT
public static final AttributeType INT
public static final AttributeType LONG
public static final AttributeType FLOAT
public static final AttributeType DOUBLE
public static final AttributeType BOOLEAN
public static final AttributeType CHAR
public static final AttributeType STRING
public static final AttributeType BIGINTEGER
public static final AttributeType BIGDECIMAL
public static final AttributeType DYNAMIC_BYTE
public static final AttributeType DYNAMIC_SHORT
public static final AttributeType DYNAMIC_INT
public static final AttributeType DYNAMIC_LONG
public static final AttributeType DYNAMIC_FLOAT
public static final AttributeType DYNAMIC_DOUBLE
public static final AttributeType DYNAMIC_BOOLEAN
public static final AttributeType DYNAMIC_CHAR
public static final AttributeType DYNAMIC_STRING
public static final AttributeType DYNAMIC_BIGINTEGER
public static final AttributeType DYNAMIC_BIGDECIMAL
public static final AttributeType TIME_INTERVAL
public static final AttributeType LIST_BYTE
public static final AttributeType LIST_SHORT
public static final AttributeType LIST_INTEGER
public static final AttributeType LIST_LONG
public static final AttributeType LIST_FLOAT
public static final AttributeType LIST_DOUBLE
public static final AttributeType LIST_BOOLEAN
public static final AttributeType LIST_CHARACTER
public static final AttributeType LIST_STRING
public static final AttributeType LIST_BIGINTEGER
public static final AttributeType LIST_BIGDECIMAL
| Method Detail |
|---|
public static AttributeType[] values()
for (AttributeType c : AttributeType.values()) System.out.println(c);
public static AttributeType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<AttributeType>public java.lang.String getTypeString()
public java.lang.Class getType()
Class the type is associated with.
class the type is associated withpublic java.lang.Object parse(java.lang.String str)
str snippet in an object of the type associated to this
AttributeType. For instance if the type is Boolean, and
str equals
true, this method will succeed to return a
Boolean instance. May throw
NumberFormatException.
DYNAMIC types and
TIME_INTERVAL cannot be parsed with this method (see
isDynamicType method) and a UnsupportedOperationException will be thrown if it is tried.
str - the string that is to be parsed
AttributeType.public static AttributeType parse(java.lang.Object obj)
AttributeType from the given
obj type. If the given
obj class match with an
AttributeType type, returns this type. Returns
null otherwise. For instance if obj instanceof Float equals true, returns
AttributeType.FLOAT.
obj - the object that is to be parsed
AttributeType, or
null if no type is found or the input object is nullpublic static AttributeType parseDynamic(java.lang.Object obj)
AttributeType from the given
obj type. If the given
obj class match with an
AttributeType type, returns this type. Returns
null otherwise. For instance if obj instanceof Float equals true, returns
AttributeType.DYNAMIC_FLOAT.
obj - the object that is to be parsed
AttributeType, or
nullpublic boolean isDynamicType()
DynamicType.
true if this is a DynamicType, false otherwisepublic boolean isListType()
public static double getDoubleFromXMLDateString(java.lang.String str)
throws java.text.ParseException
java.text.ParseException
|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||