Package systems.dmx.core.impl
Class AssocTypeModelImpl
- java.lang.Object
-
- systems.dmx.core.impl.DMXObjectModelImpl
-
- systems.dmx.core.impl.TopicModelImpl
-
- systems.dmx.core.impl.AssocTypeModelImpl
-
- All Implemented Interfaces:
Cloneable,Iterable<String>,Identifiable,JSONEnabled,AssocTypeModel,DMXObjectModel,TopicModel,TypeModel
public class AssocTypeModelImpl extends TopicModelImpl implements AssocTypeModel
Data that underlies aAssocType.- Author:
- Jörg Richter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssocTypeModeladdCompDef(CompDefModel compDef)TypeModeladdCompDefBefore(CompDefModel compDef, String beforeCompDefUri)AssocTypeModelImplclone()systems.dmx.core.impl.CompDefModelImplgetCompDef(String compDefUri)Collection<systems.dmx.core.impl.CompDefModelImpl>getCompDefs()StringgetDataTypeUri()systems.dmx.core.impl.ViewConfigModelImplgetViewConfig()ObjectgetViewConfigValue(String configTypeUri, String childTypeUri)booleanhasCompDef(String compDefUri)Iterator<String>iterator()Returns an interator which iterates this TypeModel's comp def URIs.CompDefModelremoveCompDef(String compDefUri)voidsetDataTypeUri(String dataTypeUri)voidsetViewConfig(ViewConfigModel viewConfig)org.codehaus.jettison.json.JSONObjecttoJSON()-
Methods inherited from class systems.dmx.core.impl.TopicModelImpl
createPlayerModel
-
Methods inherited from class systems.dmx.core.impl.DMXObjectModelImpl
equals, getChildTopics, getId, getSimpleValue, getTypeUri, getUri, hashCode, set, setChildTopics, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface systems.dmx.core.model.DMXObjectModel
createPlayerModel, getChildTopics, getId, getSimpleValue, getTypeUri, getUri, set, setChildTopics, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface systems.dmx.core.JSONEnabled
dump, toJSON
-
Methods inherited from interface systems.dmx.core.model.TypeModel
addCompDefBefore, getCompDef, getCompDefs, getDataTypeUri, getViewConfig, getViewConfigValue, hasCompDef, removeCompDef, setDataTypeUri, setViewConfig
-
-
-
-
Method Detail
-
addCompDef
public AssocTypeModel addCompDef(CompDefModel compDef)
- Specified by:
addCompDefin interfaceAssocTypeModel- Specified by:
addCompDefin interfaceTypeModel- Parameters:
compDef- the comp def to add. Note: its ID might be uninitialized (-1).
-
clone
public AssocTypeModelImpl clone()
- Specified by:
clonein interfaceDMXObjectModel- Specified by:
clonein interfaceTopicModel
-
getDataTypeUri
public String getDataTypeUri()
- Specified by:
getDataTypeUriin interfaceTypeModel
-
setDataTypeUri
public void setDataTypeUri(String dataTypeUri)
- Specified by:
setDataTypeUriin interfaceTypeModel
-
getCompDefs
public Collection<systems.dmx.core.impl.CompDefModelImpl> getCompDefs()
- Specified by:
getCompDefsin interfaceTypeModel
-
getCompDef
public systems.dmx.core.impl.CompDefModelImpl getCompDef(String compDefUri)
- Specified by:
getCompDefin interfaceTypeModel
-
hasCompDef
public boolean hasCompDef(String compDefUri)
- Specified by:
hasCompDefin interfaceTypeModel
-
addCompDefBefore
public TypeModel addCompDefBefore(CompDefModel compDef, String beforeCompDefUri)
- Specified by:
addCompDefBeforein interfaceTypeModel- Parameters:
compDef- the comp def to add. Note: its ID might be uninitialized (-1).beforeCompDefUri- the URI of the comp def before the given comp def is inserted. Ifnullthe comp def is appended at the end.
-
removeCompDef
public CompDefModel removeCompDef(String compDefUri)
- Specified by:
removeCompDefin interfaceTypeModel
-
getViewConfig
public systems.dmx.core.impl.ViewConfigModelImpl getViewConfig()
- Specified by:
getViewConfigin interfaceTypeModel
-
getViewConfigValue
public Object getViewConfigValue(String configTypeUri, String childTypeUri)
- Specified by:
getViewConfigValuein interfaceTypeModel
-
setViewConfig
public void setViewConfig(ViewConfigModel viewConfig)
- Specified by:
setViewConfigin interfaceTypeModel
-
iterator
public Iterator<String> iterator()
Returns an interator which iterates this TypeModel's comp def URIs.
-
toJSON
public org.codehaus.jettison.json.JSONObject toJSON()
- Specified by:
toJSONin interfaceJSONEnabled- Overrides:
toJSONin classDMXObjectModelImpl
-
-