org.dasein.attributes.types
Class NameValuePairFactory
java.lang.Object
org.dasein.attributes.DataTypeFactory<NameValuePair>
org.dasein.attributes.types.NameValuePairFactory
- All Implemented Interfaces:
- Serializable
public class NameValuePairFactory
- extends DataTypeFactory<NameValuePair>
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
NameValuePairFactory
public NameValuePairFactory()
getDisplayName
public Translator<String> getDisplayName()
- Description copied from class:
DataTypeFactory
- Provides a multi-lingual display name for this data type.
- Specified by:
getDisplayName in class DataTypeFactory<NameValuePair>
- Returns:
- the display name for the data type
getStringValue
public String getStringValue(Object ob)
- Description copied from class:
DataTypeFactory
- Converts the specified value to a string representation for storage.
- Overrides:
getStringValue in class DataTypeFactory<NameValuePair>
- Parameters:
ob - the object to be converted
- Returns:
- a string representation for storage
getTypeName
public String getTypeName()
- Specified by:
getTypeName in class DataTypeFactory<NameValuePair>
- Returns:
- the name of this data type
getType
public DataType<NameValuePair> getType(boolean ml,
boolean mv,
boolean req,
String... params)
- Description copied from class:
DataTypeFactory
- Provides access to the underlying data type object that governs this data type. The
configurable rules for the data type are provided as parameters.
- Specified by:
getType in class DataTypeFactory<NameValuePair>
- Parameters:
ml - is the data type multi-lingual?mv - is the data type multi-valued?req - is a value for the data type required?params - arbitrary parameters with meaning dependent on the underlying type
- Returns:
- a data type object for the specified type
getType
public DataType<NameValuePair> getType(String grp,
Number idx,
boolean ml,
boolean mv,
boolean req,
String... params)
- Description copied from class:
DataTypeFactory
- Provides access to the underlying data type object that governs this data type. The
configurable rules for the data type are provided as parameters.
- Specified by:
getType in class DataTypeFactory<NameValuePair>
- Parameters:
grp - the group of the data type.idx - the index of the data type.ml - is the data type multi-lingual?mv - is the data type multi-valued?req - is a value for the data type required?params - arbitrary parameters with meaning dependent on the underlying type
- Returns:
- a data type object for the specified type
Copyright © 2011 enStratus Networks LLC. All Rights Reserved.