public class InstanceDecorator extends Object implements Instance
Constructor and Description |
---|
InstanceDecorator(Instance instance)
Constructs the decorator with the given instance.
|
Modifier and Type | Method and Description |
---|---|
DataSet |
getDataSet()
Get the data set the instance is associated to.
|
TypeDefinition |
getDefinition()
Get the definition of the type associated with the instance
|
List<Object> |
getMetaData(String key)
Get the metadata the instance my be associated with
|
Set<String> |
getMetaDataNames()
Get all keys the metadata is associated with
|
Instance |
getOriginalInstance()
Returns the original instance.
|
Object[] |
getProperty(QName propertyName)
Get the values for the property with the given name.
|
Iterable<QName> |
getPropertyNames()
Get the property names for which any values exist.
|
Object |
getValue()
Get the instance value.
The value is only present for certain types where the HasValueFlag or AugmentedValueFlag constraint is enabled. |
public InstanceDecorator(Instance instance)
instance
- the instance to decoratepublic Instance getOriginalInstance()
public Object[] getProperty(QName propertyName)
Group
getProperty
in interface Group
propertyName
- the property namenull
if none existGroup.getProperty(javax.xml.namespace.QName)
public Iterable<QName> getPropertyNames()
Group
getPropertyNames
in interface Group
Group.getPropertyNames()
public TypeDefinition getDefinition()
Instance
getDefinition
in interface Group
getDefinition
in interface Instance
Instance.getDefinition()
public Object getValue()
Instance
HasValueFlag
or AugmentedValueFlag
constraint is enabled.
The Binding
constraint on the type definition defines the binding
of the value.Group
or Instance
).getValue
in interface Instance
null
Instance.getValue()
public DataSet getDataSet()
Instance
getDataSet
in interface Instance
null
if not setInstance.getDataSet()
public List<Object> getMetaData(String key)
Instance
getMetaData
in interface Instance
key
- the key to access a certain metadataInstance.getMetaData(java.lang.String)
public Set<String> getMetaDataNames()
Instance
getMetaDataNames
in interface Instance
Instance.getMetaDataNames()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a