new AtomCommon( [json])
Common attributes for all Atom entities
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
json |
Object |
<optional> |
- See:
Extends
Methods
-
getBase()
-
Get the base
Returns:
base- Type
- String
-
getLang()
-
Get the lang
Returns:
lang- Type
- String
-
init(json)
-
Initialize from JSON
Parameters:
Name Type Description json
Object - Overrides:
Returns:
this- Type
- AtomCommon
-
<static> isInstance(obj)
-
Check whether the given object is an instance of this class.
Parameters:
Name Type Description obj
Object Returns:
- Type
- Boolean
-
setBase(base)
-
Set the base attribute
Parameters:
Name Type Description base
String Returns:
this- Type
- AtomCommon
-
setLang(lang)
-
Set the lang
Parameters:
Name Type Description lang
String Returns:
this- Type
- AtomCommon
-
toJSON()
-
Export the object as JSON
- Overrides:
Returns:
JSON object- Type
- Object