Class: AttributeType

AttributeType

AttributeTypes defines name, type (string, double,...) an associated parameter of an attribute.

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

abstractequals(_attributeType){boolean}

Compares this instance with the given one.
Name Type Description
_attributeType AttributeType AttributeType that should be compared
Returns the name.
Returns the parameters.
Returns the type.
Sets the name.
Name Type Description
_name string Name

setParameters(_parameters)

Adds a list of Parameter.
Name Type Description
_parameters ParameterList ParameterList
Sets the type.
Name Type Description
_type string Type
Builder for name.
Name Type Description
_name String Name

withParameters(_parameter){AttributeType}

Builder for one parameter.
Name Type Description
_parameter Parameter Parameter

withParameters(_parameterList){AttributeType}

Builder for parameterList.
Name Type Description
_parameterList ParameterList | Array ParameterList
Builder for type.
Name Type Description
_type String Type