new AttributeType()
Constructor: Initializes the ParameterList.
Requires
- module:easejs
- module:ParameterList
Members
-
protectednamestring
-
Name of the Attribute
-
protectedparameterListParameterList
-
Name of the Attribute
-
protectedtypestring
-
Defines the type of the Attribute (i.e String, Double,...)
Methods
-
addParameter(_parameter)
-
Adds a parameter.
Name Type Description _parameter
Parameter Parameter -
virtualequals(_attributeType){boolean}
-
Compares this instance with the given one.
Name Type Description _attributeType
AttributeType AttributeType that should be compared -
getIdentifier(){String}
-
Returns an identifier that uniquely describes the attribute type and its parameters. The identifier can be used to compare two attribute types.
Format: (AttributeName:AttributeType)#[FirstParameterName:FirstParameterValue]…Example
(CI_USER_LOCATION_DISTANCE:FLOAT)#[CP_TARGET_LATITUDE:52][CP_TARGET_LONGITUDE:13][CP_UNIT:KILOMETERS]
-
getName(){string}
-
Returns the name.
-
getParameters(){ParameterList}
-
Returns the parameters.
-
getType(){string}
-
Returns the type.
-
setName(_name)
-
Sets the name.
Name Type Description _name
string Name -
setParameters(_parameters)
-
Adds a list of Parameter.
Name Type Description _parameters
ParameterList ParameterList -
setType(_type)
-
Sets the type.
Name Type Description _type
string Type -
virtualtoString(){String}
-
Returns a string that describes the attribute type.
-
withName(_name){AttributeType}
-
Builder for name.
Name Type Description _name
String Name -
withParameters(_parameterList){AttributeType}
-
Builder for parameterList.
Name Type Description _parameterList
ParameterList | Array ParameterList -
withParameters(_parameter){AttributeType}
-
Builder for one parameter.
Name Type Description _parameter
Parameter Parameter -
withType(_type){AttributeType}
-
Builder for type.
Name Type Description _type
String Type