org.dasein.attributes.types
Class DecimalFactory

java.lang.Object
  extended by org.dasein.attributes.DataTypeFactory<Double>
      extended by org.dasein.attributes.types.DecimalFactory
All Implemented Interfaces:
Serializable

public class DecimalFactory
extends DataTypeFactory<Double>

See Also:
Serialized Form

Nested Class Summary
static class DecimalFactory.DecimalAttribute
           
 
Nested classes/interfaces inherited from class org.dasein.attributes.DataTypeFactory
DataTypeFactory.Constraint
 
Field Summary
static String TYPE_NAME
           
 
Constructor Summary
DecimalFactory()
           
 
Method Summary
 Translator<String> getDisplayName()
          Provides a multi-lingual display name for this data type.
 DataType<Double> getType(boolean ml, boolean mv, boolean req, String... params)
          Provides access to the underlying data type object that governs this data type.
 DataType<Double> getType(String grp, Number idx, boolean ml, boolean mv, boolean req, String... params)
          Provides access to the underlying data type object that governs this data type.
 String getTypeName()
           
 
Methods inherited from class org.dasein.attributes.DataTypeFactory
getConstraint, getConstraints, getDisplayValue, getDisplayValue, getInstance, getStringValue, getTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final String TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

DecimalFactory

public DecimalFactory()
Method Detail

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<Double>
Returns:
the display name for the data type

getTypeName

public String getTypeName()
Specified by:
getTypeName in class DataTypeFactory<Double>
Returns:
the name of this data type

getType

public DataType<Double> 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<Double>
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<Double> 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<Double>
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.