public class XMLFieldEntry
extends java.lang.Object
implements java.lang.Cloneable
If the type is an enumeration (Enum), a base enum class is also required.
| Constructor and Description |
|---|
XMLFieldEntry(java.lang.String value,
XMLFieldType type,
java.lang.String description)
Constructs a new entry with the given parameters.
|
XMLFieldEntry(java.lang.String value,
XMLFieldType type,
java.lang.String enumName,
java.lang.String description)
Constructs a new entry with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
XMLFieldEntry |
clone()
Creates a deep copy of this object.
|
java.lang.String |
getDescription()
Returns a short description of this entry.
|
java.lang.String |
getEnumName()
Returns the base enum name used for enumeration types.
|
XMLFieldType |
getType()
Returns the type of this entry.
|
java.lang.String |
getValue()
Returns the value associated to this entry.
|
void |
setValue(java.lang.String value)
Sets the value of this entry to a new value.
|
public XMLFieldEntry(java.lang.String value,
XMLFieldType type,
java.lang.String description)
value - The value of this entrytype - The type of this entrydescription - A short description of this entrypublic XMLFieldEntry(java.lang.String value,
XMLFieldType type,
java.lang.String enumName,
java.lang.String description)
throws java.lang.IllegalArgumentException
value - The value of this entrytype - The type of this entrydescription - A short description of this entryjava.lang.IllegalArgumentException - if the type is not enumpublic XMLFieldType getType()
public java.lang.String getValue()
public void setValue(java.lang.String value)
value - The value to be used.public java.lang.String getEnumName()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if this entry is not of type enumpublic java.lang.String getDescription()
public XMLFieldEntry clone()
clone in class java.lang.Object