Class: TextValue

TextValue


new TextValue()

A text value in a specific language.
See:

Extends

Methods


getLang()

Get the lang
Returns:
lang
Type
String

getValue()

Get the value
Returns:
value
Type
String

init(json)

Initialize from JSON
Parameters:
Name Type Description
json Object
Overrides:
Returns:
this
Type
Conclusion

<static> isInstance(obj)

Check whether the given object is an instance of this class.
Parameters:
Name Type Description
obj Object
Returns:
Type
Boolean

setLang(lang)

Set the lang
Parameters:
Name Type Description
lang String
Returns:
This instance
Type
TextValue

setValue(value)

Set the value
Parameters:
Name Type Description
value String
Returns:
This instance
Type
TextValue

toJSON()

Export the object as JSON
Overrides:
Returns:
JSON object
Type
Object