|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cisco.provisioning.cpe.internal.BaseEnum
com.cisco.provisioning.cpe.DataType
public final class DataType
The DataType class provides an enumeration of DataTypes which may be
specified as part of the
Configuration.addCustomPropertyDefinition(String, DataType) method.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.cisco.provisioning.cpe.internal.BaseEnum |
|---|
com.cisco.provisioning.cpe.internal.BaseEnum.CompareDifferentClassEnumException |
| Field Summary | |
|---|---|
static DataType |
BOOLEAN
References an object of type Boolean. |
static DataType |
BYTE
References an object of type Byte. |
static DataType |
BYTE_ARRAY
References an object of type byte[]. |
static DataType |
CHARACTER
References an object of type Character. |
static DataType |
DOUBLE
References an object of type Double. |
static DataType |
FLOAT
References an object of type Float. |
static DataType |
INTEGER
References an object of type Integer. |
static DataType |
LEASE_RESULTS
References an object of type LeaseResults. |
static DataType |
LIST
References an object of type List. |
static DataType |
LONG
References an object of type Long. |
static DataType |
MAP
References an object of type Map. |
static DataType |
RECORD_SEARCH_RESULTS
References an object of type RecordSearchResults. |
static DataType |
SHORT
References an object of type Short. |
static DataType |
SNMPVAR_LIST
References an object of type SnmpVarList. |
static DataType |
STRING
References an object of type String. |
static DataType |
UNICODE_STRING
References an object of type String. |
| Fields inherited from class com.cisco.provisioning.cpe.internal.BaseEnum |
|---|
NAME, VALUE |
| Constructor Summary | |
|---|---|
DataType()
Default constructor needed for externalization. |
|
| Method Summary | |
|---|---|
Class<?> |
getAssociatedClass()
Return the class associated with this data type. |
static DataType |
getNamed(String name)
Returns the DataType object with the selected name (or null if it does not exist). |
static SortedSet |
getSortedSet()
Return a sorted set of the enumeration codes associated with the enumeration type defined in this class. |
static DataType |
getValued(int value)
Returns the DataType object with the selected value (or null if it does not exist). |
boolean |
isCustomPropertyDataType()
Returns true if this data type can be used as part of the Configuration.addCustomPropertyDefinition(String, DataType) method. |
static Iterator |
iterator()
Return an iterator over the enumeration codes associated with the enumeration type defined in this class. |
static int |
maxVal()
Return the maximum ordinal value in this enumeration, or -1 if no enumeration codes are defined. |
void |
readExternal(ObjectInput in)
Externalizable interface. |
static int |
size()
Return an integer giving the total number of enumeration codes associated with this enumeration type. |
void |
writeExternal(ObjectOutput out)
Externalizable interface. |
| Methods inherited from class com.cisco.provisioning.cpe.internal.BaseEnum |
|---|
compareNames, compareTo, compareValues, getName, getSortByNameComparator, getValue, toString, toStringWithValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DataType BOOLEAN
public static final DataType CHARACTER
public static final DataType BYTE
public static final DataType SHORT
public static final DataType INTEGER
public static final DataType LONG
public static final DataType FLOAT
public static final DataType DOUBLE
public static final DataType STRING
public static final DataType LIST
public static final DataType MAP
public static final DataType BYTE_ARRAY
public static final DataType UNICODE_STRING
public static final DataType LEASE_RESULTS
public static final DataType SNMPVAR_LIST
public static final DataType RECORD_SEARCH_RESULTS
| Constructor Detail |
|---|
public DataType()
Note : This constructor is ONLY used for externalization. Use the defined constants instead.
| Method Detail |
|---|
public static DataType getNamed(String name)
Note : This method is for internal use only. Please use the constants defined on this class to retrieve the desired DataType object.
name - the name associated with the desired instance of DataType
public static SortedSet getSortedSet()
The set returned does not support modifications. Set methods would modify the set will throw an UnsupportedOperationException.
Note : This method is for internal use only. Please use the constants defined on this class to retrieve the desired object.
public static DataType getValued(int value)
Note : This method is for internal use only. Please use the constants defined on this class to retrieve the desired DataType object.
value - the value associated with the desired instance of DataType
public static Iterator iterator()
The iterator returned does not support modifications. The remove method will throw an UnsupportedOperationException.
Note : This method is for internal use only. Please use the constants defined on this class to retrieve the desired object.
public static int maxVal()
Note : This method is for internal use only. Please use the constants defined on this class to retrieve the desired object.
public static int size()
Note : This method is for internal use only. Please use the constants defined on this class to retrieve the desired object.
public boolean isCustomPropertyDataType()
Configuration.addCustomPropertyDefinition(String, DataType) method.
Otherwise returns false.
public Class<?> getAssociatedClass()
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class com.cisco.provisioning.cpe.internal.BaseEnumin - the stream to read data from in order to restore the object
IOException - if I/O errors occur
ClassNotFoundException - If the class for an object being restored
cannot be found.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class com.cisco.provisioning.cpe.internal.BaseEnumout - the stream to write the object to
IOException - Includes any I/O exceptions that may occur
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||