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 AssocTypeModel
addCompDef(CompDefModel compDef)
TypeModel
addCompDefBefore(CompDefModel compDef, String beforeCompDefUri)
AssocTypeModelImpl
clone()
systems.dmx.core.impl.CompDefModelImpl
getCompDef(String compDefUri)
Collection<systems.dmx.core.impl.CompDefModelImpl>
getCompDefs()
String
getDataTypeUri()
systems.dmx.core.impl.ViewConfigModelImpl
getViewConfig()
Object
getViewConfigValue(String configTypeUri, String childTypeUri)
boolean
hasCompDef(String compDefUri)
Iterator<String>
iterator()
Returns an interator which iterates this TypeModel's comp def URIs.CompDefModel
removeCompDef(String compDefUri)
void
setDataTypeUri(String dataTypeUri)
void
setViewConfig(ViewConfigModel viewConfig)
org.codehaus.jettison.json.JSONObject
toJSON()
-
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:
addCompDef
in interfaceAssocTypeModel
- Specified by:
addCompDef
in interfaceTypeModel
- Parameters:
compDef
- the comp def to add. Note: its ID might be uninitialized (-1).
-
clone
public AssocTypeModelImpl clone()
- Specified by:
clone
in interfaceDMXObjectModel
- Specified by:
clone
in interfaceTopicModel
-
getDataTypeUri
public String getDataTypeUri()
- Specified by:
getDataTypeUri
in interfaceTypeModel
-
setDataTypeUri
public void setDataTypeUri(String dataTypeUri)
- Specified by:
setDataTypeUri
in interfaceTypeModel
-
getCompDefs
public Collection<systems.dmx.core.impl.CompDefModelImpl> getCompDefs()
- Specified by:
getCompDefs
in interfaceTypeModel
-
getCompDef
public systems.dmx.core.impl.CompDefModelImpl getCompDef(String compDefUri)
- Specified by:
getCompDef
in interfaceTypeModel
-
hasCompDef
public boolean hasCompDef(String compDefUri)
- Specified by:
hasCompDef
in interfaceTypeModel
-
addCompDefBefore
public TypeModel addCompDefBefore(CompDefModel compDef, String beforeCompDefUri)
- Specified by:
addCompDefBefore
in 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. Ifnull
the comp def is appended at the end.
-
removeCompDef
public CompDefModel removeCompDef(String compDefUri)
- Specified by:
removeCompDef
in interfaceTypeModel
-
getViewConfig
public systems.dmx.core.impl.ViewConfigModelImpl getViewConfig()
- Specified by:
getViewConfig
in interfaceTypeModel
-
getViewConfigValue
public Object getViewConfigValue(String configTypeUri, String childTypeUri)
- Specified by:
getViewConfigValue
in interfaceTypeModel
-
setViewConfig
public void setViewConfig(ViewConfigModel viewConfig)
- Specified by:
setViewConfig
in 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:
toJSON
in interfaceJSONEnabled
- Overrides:
toJSON
in classDMXObjectModelImpl
-
-