eu.scape_project.watch.domain
Enum PropertyDataStructure

java.lang.Object
  extended by java.lang.Enum<PropertyDataStructure>
      extended by eu.scape_project.watch.domain.PropertyDataStructure
All Implemented Interfaces:
Serializable, Comparable<PropertyDataStructure>

public enum PropertyDataStructure
extends Enum<PropertyDataStructure>

Defines the data structure of the property, e.g. single value or a list of values. Not to be mistaken with DataType.

Author:
Petar Petrov

Enum Constant Summary
DICTIONARY
          Denotes a property, where each value has a dictionary (a.k.a Map) of elements.
LIST
          Denotes a property, where each value has a list of elements.
SINGLE
          Denotes a single value property.
 
Method Summary
static PropertyDataStructure valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PropertyDataStructure[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SINGLE

public static final PropertyDataStructure SINGLE
Denotes a single value property.


LIST

public static final PropertyDataStructure LIST
Denotes a property, where each value has a list of elements.


DICTIONARY

public static final PropertyDataStructure DICTIONARY
Denotes a property, where each value has a dictionary (a.k.a Map) of elements.

Method Detail

values

public static PropertyDataStructure[] 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 (PropertyDataStructure c : PropertyDataStructure.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PropertyDataStructure 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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.