public interface Topic extends DeepaMehtaObject
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, update, updateChildTopic, 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 DeepaMehtaObject interface?
null
.Topic loadChildTopics()
loadChildTopics
in interface DeepaMehtaObject
Topic loadChildTopics(String assocDefUri)
loadChildTopics
in interface DeepaMehtaObject
TopicModel getModel()
getModel
in interface DeepaMehtaObject
Copyright © 2016. All Rights Reserved.