Package com.walkfares.odsl.var.basic
Class VarDynamicObject
java.lang.Object
com.walkfares.odsl.var.BaseVar
com.walkfares.odsl.var.VersionedVar
com.walkfares.odsl.var.basic.VarDynamicObject
- All Implemented Interfaces:
ListProvider
,DynamicVar
,Var
- Direct Known Subclasses:
QualityCheckResults
,VarDeclaredType
,VarObjectWrapper
,VarTask
public class VarDynamicObject extends VersionedVar implements Var, DynamicVar, ListProvider
-
Constructor Summary
Constructors Constructor Description VarDynamicObject()
VarDynamicObject(VarType... allowed)
VarDynamicObject(String id)
-
Method Summary
Modifier and Type Method Description Var
_clone()
void
add(int index, Var item)
void
add(Var item)
Var
applyChanges(Var update)
VarSimpleObject
asSimpleObject()
void
clear()
boolean
contains(String name)
Var
get(Var index)
Var
get(String name)
Var
get(String name, Var defaultvalue)
String
getAccess()
List<Var>
getElements()
String
getId()
DynamicProperties
getProperties()
VarReference
getReference()
VarType
getType()
String
getTypeName()
boolean
isSerializeId()
void
remove(String name)
void
set(String name, Var value)
Var
set_Id(String id)
VarDynamicObject
setAccess(String access)
Var
setId(com.google.gson.JsonElement id)
VarDynamicObject
setSerializeId(boolean serializeId)
int
size()
String
toString()
Methods inherited from class com.walkfares.odsl.var.BaseVar
add, getLinks, getUID, setLinks, tryConvert
-
Constructor Details
-
VarDynamicObject
public VarDynamicObject() -
VarDynamicObject
-
VarDynamicObject
-
-
Method Details
-
getProperties
- Specified by:
getProperties
in interfaceDynamicVar
-
getAccess
-
setAccess
-
getType
-
getTypeName
- Specified by:
getTypeName
in interfaceVar
- Overrides:
getTypeName
in classBaseVar
-
getId
-
set_Id
-
setId
-
_clone
-
applyChanges
- Specified by:
applyChanges
in interfaceVar
- Overrides:
applyChanges
in classBaseVar
-
get
- Specified by:
get
in interfaceDynamicVar
-
get
-
set
- Specified by:
set
in interfaceDynamicVar
-
remove
-
clear
public void clear()- Specified by:
clear
in interfaceListProvider
-
contains
-
toString
-
getReference
- Specified by:
getReference
in interfaceVar
-
add
- Specified by:
add
in interfaceListProvider
-
add
- Specified by:
add
in interfaceListProvider
-
size
public int size()- Specified by:
size
in interfaceListProvider
-
getElements
- Specified by:
getElements
in interfaceListProvider
-
get
- Specified by:
get
in interfaceListProvider
-
isSerializeId
public boolean isSerializeId() -
setSerializeId
-
asSimpleObject
-