|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.instance.model.impl.DefaultGroup
eu.esdihumboldt.hale.common.instance.model.impl.DefaultInstance
public class DefaultInstance
Default instance implementation backed by a ListMultimap
.
Constructor Summary | |
---|---|
DefaultInstance(Instance org)
Copy constructor. |
|
DefaultInstance(TypeDefinition definition,
DataSet dataSet)
Create an empty instance. |
Method Summary | |
---|---|
DataSet |
getDataSet()
Get the data set the instance is associated to. |
TypeDefinition |
getDefinition()
Get the group definition |
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 |
Object |
getValue()
Get the instance value. The value is only present for certain types where the HasValueFlag or AugmentedValueFlag constraint is enabled. |
void |
putMetaData(String key,
Object obj)
add Data to the MetaData, which the Instance can be associated with If there is no MetaData in the Instance, a new container will be created |
void |
setDataSet(DataSet dataSet)
Set the data set the instance is associated to. |
void |
setMetaData(String key,
Object... values)
Sets the metadata of a certain key, may also delet or reset the value of the key if the values parameter is null or empty |
void |
setValue(Object value)
Set the instance value. |
Methods inherited from class eu.esdihumboldt.hale.common.instance.model.impl.DefaultGroup |
---|
addProperty, getProperty, getPropertyNames, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eu.esdihumboldt.hale.common.instance.model.MutableGroup |
---|
addProperty, setProperty |
Methods inherited from interface eu.esdihumboldt.hale.common.instance.model.Group |
---|
getProperty, getPropertyNames |
Constructor Detail |
---|
public DefaultInstance(TypeDefinition definition, DataSet dataSet)
definition
- the associated type definitiondataSet
- the data set the instance is associated topublic DefaultInstance(Instance org)
org
- the instance to copyMethod Detail |
---|
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 void setValue(Object value)
MutableInstance
Instance
.
setValue
in interface MutableInstance
value
- the instance value to setMutableInstance.setValue(Object)
public void setDataSet(DataSet dataSet)
MutableInstance
setDataSet
in interface MutableInstance
dataSet
- the instance data setMutableInstance.setDataSet(DataSet)
public TypeDefinition getDefinition()
Group
getDefinition
in interface Group
getDefinition
in interface Instance
getDefinition
in class DefaultGroup
DefaultGroup.getDefinition()
public List<Object> getMetaData(String key)
Instance
getMetaData
in interface Instance
key
- the key to access a certain metadata
Instance.getMetaData(java.lang.String)
public void putMetaData(String key, Object obj)
MutableInstance
putMetaData
in interface MutableInstance
key
- a key the data to add will be associated withobj
- the Data to add, may not be Instance
or Group
MutableInstance.putMetaData(java.lang.String,
java.lang.Object)
public Set<String> getMetaDataNames()
Instance
getMetaDataNames
in interface Instance
Instance.getMetaDataNames()
public void setMetaData(String key, Object... values)
MutableInstance
setMetaData
in interface MutableInstance
key
- the key the data is associated withvalues
- the values to set, may not contain Instance
or
Group
MutableInstance.setMetaData(java.lang.String,
java.lang.Object[])
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |