Class: AttributeValue

AttributeValue

AttributeValue extends AttributeTypes and adds the associated value.

new AttributeValue()

Requires

  • module:easejs
  • module:AttributeType

Members

protectedtimestampDate

Time when the value was set.

protectedvaluestring

Methods

buildFromAttributeType(_attributeType){AttributeValue}

Builds a new AttributeValue from the given type.
Name Type Description
_attributeType AttributeType AttributeType for build process.

equals(_attributeValue){boolean}

Compares this instance with the given one.
Name Type Description
_attributeValue AttributeValue AttributeValue that should be compared
Returns the AttributeType of an AttributeValue.

getTimestamp(){string}

Returns the timestamp.

getValue(){string}

Returns the value.

setTimestamp(_timestamp)

Sets the timestamp.
Name Type Description
_timestamp Date timestamp
Sets the value.
Name Type Description
_value string value
Returns a string that describes the attribute type and its value.

withTimestamp(_timestamp){AttributeValue}

Builder for timestamp.
Name Type Description
_timestamp Date timestamp
Builder for value.
Name Type Description
_value String value