Package repast.simphony.integration
Enum DataFileElements
- java.lang.Object
-
- java.lang.Enum<DataFileElements>
-
- repast.simphony.integration.DataFileElements
-
- All Implemented Interfaces:
Serializable
,Comparable<DataFileElements>
public enum DataFileElements extends Enum<DataFileElements>
Class that holds the elements and attributes of those elements in a data file descriptor. The elements are specified by the enum values in this enumeration. The attributes are specified as inner classes of the name TAG_ATTRS. This unfortunate way of doing this is necessary since enum values cannot have nested static values inside of them.- Author:
- Jerry Vos
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataFileElements.ARRAY_ATTRS
static class
DataFileElements.BRANCH_ATTRS
static class
DataFileElements.DATA_ATTRS
static class
DataFileElements.FILE_DEF_ATTRS
static class
DataFileElements.RECORD_ATTRS
static class
DataFileElements.TABLE_ATTRS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getInt(Queryable queryable, org.jdom.Element node, String target)
String
getTag()
Retrieves the tag for this type of element.static DataFileElements
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataFileElements[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE_DEF
public static final DataFileElements FILE_DEF
-
DATA
public static final DataFileElements DATA
-
RECORD
public static final DataFileElements RECORD
-
ARRAY
public static final DataFileElements ARRAY
-
BRANCH
public static final DataFileElements BRANCH
-
TABLE
public static final DataFileElements TABLE
-
-
Method Detail
-
values
public static DataFileElements[] 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 (DataFileElements c : DataFileElements.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataFileElements 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 nameNullPointerException
- if the argument is null
-
getTag
public String getTag()
Retrieves the tag for this type of element.- Returns:
- the element's tag
-
-