public interface Topic extends DMXObject
Modifier and Type | Method and Description |
---|---|
Topic |
findChildTopic(String topicTypeUri)
Searches this topic's child topics for a topic of the given type.
|
TopicModel |
getModel() |
Topic |
loadChildTopics() |
Topic |
loadChildTopics(String assocDefUri) |
void |
update(TopicModel model) |
delete, getAssociation, getAssociations, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedAssociation, getRelatedAssociations, getRelatedTopic, getRelatedTopics, getRelatedTopics, getRelatedTopics, getSimpleValue, getType, getTypeUri, getUri, hasProperty, removeProperty, setChildTopics, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, updateChildTopics
toJSON
void update(TopicModel model)
Topic findChildTopic(String topicTypeUri)
The first topic found is returned, according to a depth-first search. For multiple-value childs 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?
null
.Topic loadChildTopics()
loadChildTopics
in interface DMXObject
Topic loadChildTopics(String assocDefUri)
loadChildTopics
in interface DMXObject
TopicModel getModel()
Copyright © 2018. All Rights Reserved.