Package systems.dmx.core
Interface Topic
-
- All Superinterfaces:
DMXObject
,Identifiable
,JSONEnabled
- All Known Subinterfaces:
AssocType
,DMXType
,RelatedTopic
,RoleType
,TopicType
public interface Topic extends DMXObject
A topic -- DMX's central data object.- Author:
- Jörg Richter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Topic
findChildTopic(String topicTypeUri)
Searches this topic's child topics for a topic of the given type.TopicModel
getModel()
-
Methods inherited from interface systems.dmx.core.DMXObject
checkWriteAccess, delete, getAssoc, getAssocs, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedAssoc, getRelatedAssocs, getRelatedAssocs, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getType, getTypeUri, getUri, hasProperty, loadChildTopics, loadChildTopics, removeProperty, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, update, updateChildTopics
-
Methods inherited from interface systems.dmx.core.JSONEnabled
dump, toJSON
-
-
-
-
Method Detail
-
findChildTopic
Topic findChildTopic(String topicTypeUri)
Searches this topic's child topics for a topic of the given type. Only the child topics which are already loaded into memory are searched; the DB is not accessed.The first topic found is returned, according to a depth-first search. For multiple-value children the first topic is returned. If the given type matches this topic directly it is returned immediately.
The search is driven by this topic's type definition. That is child topics which do not adhere to the type definition are not found.
TODO: make this generic by moving to DMXObject interface?
- Returns:
- the found topic, or
null
.
-
getModel
TopicModel getModel()
-
-