class TopicImpl extends DeepaMehtaObjectImpl implements Topic
CoreService.| Modifier and Type | Field and Description |
|---|---|
private Logger |
logger |
mf, model, pl| Constructor and Description |
|---|
TopicImpl(TopicModelImpl model,
PersistenceLayer pl) |
| Modifier and Type | Method and Description |
|---|---|
Topic |
findChildTopic(String topicTypeUri)
Searches this topic's child topics for a topic of the given type.
|
Association |
getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId) |
List<Association> |
getAssociations() |
TopicModelImpl |
getModel() |
RelatedAssociation |
getRelatedAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<RelatedAssociation> |
getRelatedAssociations(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<RelatedTopic> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
TopicType |
getType() |
Topic |
loadChildTopics() |
Topic |
loadChildTopics(String assocDefUri) |
void |
removeProperty(String propUri)
Removes this object's property associated with the given property URI.
|
void |
setProperty(String propUri,
Object propValue,
boolean addToIndex) |
void |
update(TopicModel newModel) |
className, delete, equals, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hashCode, hasProperty, setChildTopics, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toJSON, toString, update, updateChildTopic, updateChildTopicsclone, finalize, getClass, notify, notifyAll, wait, wait, waitdelete, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hasProperty, setChildTopics, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopicstoJSONTopicImpl(TopicModelImpl model, PersistenceLayer pl)
public void update(TopicModel newModel)
public Topic findChildTopic(String topicTypeUri)
TopicThe 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?
findChildTopic in interface Topicnull.public Topic loadChildTopics()
loadChildTopics in interface DeepaMehtaObjectloadChildTopics in interface TopicloadChildTopics in class DeepaMehtaObjectImplpublic Topic loadChildTopics(String assocDefUri)
loadChildTopics in interface DeepaMehtaObjectloadChildTopics in interface TopicloadChildTopics in class DeepaMehtaObjectImplpublic TopicType getType()
getType in interface DeepaMehtaObjectpublic TopicModelImpl getModel()
getModel in interface DeepaMehtaObjectgetModel in interface TopicgetModel in class DeepaMehtaObjectImplpublic List<RelatedTopic> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopics in interface DeepaMehtaObjectassocTypeUris - may *not* be nullmyRoleTypeUri - may be nullothersRoleTypeUri - may be nullothersTopicTypeUri - may be nullpublic RelatedAssociation getRelatedAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
getRelatedAssociation in interface DeepaMehtaObjectassocTypeUri - may be nullmyRoleTypeUri - may be nullothersRoleTypeUri - may be nullothersAssocTypeUri - may be nullpublic List<RelatedAssociation> getRelatedAssociations(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
getRelatedAssociations in interface DeepaMehtaObjectassocTypeUri - may be nullmyRoleTypeUri - may be nullothersRoleTypeUri - may be nullothersAssocTypeUri - may be nullpublic Association getAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, long othersTopicId)
getAssociation in interface DeepaMehtaObjectpublic List<Association> getAssociations()
getAssociations in interface DeepaMehtaObjectpublic void setProperty(String propUri, Object propValue, boolean addToIndex)
setProperty in interface DeepaMehtaObjectpublic void removeProperty(String propUri)
DeepaMehtaObjectremoveProperty in interface DeepaMehtaObjectCopyright © 2016. All Rights Reserved.