Search this API

y.io.graphml
Class KeyType

java.lang.Object
  extended by y.io.graphml.KeyType
All Implemented Interfaces:
java.lang.Comparable

public final class KeyType
extends java.lang.Object
implements java.lang.Comparable

Enumeration for the allowed data types of a graphml attribute.

 

Field Summary
static KeyType BOOLEAN
          KeyType boolean.
static KeyType COMPLEX
          KeyType complex.
static KeyType DOUBLE
          KeyType double.
static KeyType FLOAT
          KeyType float.
static KeyType INT
          KeyType int.
static KeyType LONG
          KeyType long.
static KeyType STRING
          KeyType string.
 
Method Summary
 int compareTo(java.lang.Object o)
           
static java.util.Collection getValues()
           
 java.lang.String name()
          Returns the name of this enumeration constant, exactly as declared the declaration.
 java.lang.String toString()
           
static KeyType valueOf(java.lang.String value)
          Returns the enum constant of the specified enum type with the specified name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INT

public static final KeyType INT
KeyType int.


LONG

public static final KeyType LONG
KeyType long.


FLOAT

public static final KeyType FLOAT
KeyType float.


DOUBLE

public static final KeyType DOUBLE
KeyType double.


STRING

public static final KeyType STRING
KeyType string.


BOOLEAN

public static final KeyType BOOLEAN
KeyType boolean.


COMPLEX

public static final KeyType COMPLEX
KeyType complex. This KeyType should not be written and is implied as default if no explicit KeyType is specified.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValues

public static java.util.Collection getValues()

name

public java.lang.String name()
Returns the name of this enumeration constant, exactly as declared the declaration.

Returns:
the name of this enumeration constant

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

valueOf

public static KeyType valueOf(java.lang.String value)
Returns the enum constant of the specified enum type with the specified name

Returns:
The enum constant of the specified enum type with the specified name
Throws:
{@link - NullPointerException} if value is null.
{@link - IllegalArgumentException} if value does not represent a valid enumeration value.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.