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, updateChildTopics
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
delete, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hasProperty, setChildTopics, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopics
toJSON
TopicImpl(TopicModelImpl model, PersistenceLayer pl)
public void update(TopicModel newModel)
public Topic findChildTopic(String topicTypeUri)
Topic
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?
findChildTopic
in interface Topic
null
.public Topic loadChildTopics()
loadChildTopics
in interface DeepaMehtaObject
loadChildTopics
in interface Topic
loadChildTopics
in class DeepaMehtaObjectImpl
public Topic loadChildTopics(String assocDefUri)
loadChildTopics
in interface DeepaMehtaObject
loadChildTopics
in interface Topic
loadChildTopics
in class DeepaMehtaObjectImpl
public TopicType getType()
getType
in interface DeepaMehtaObject
public TopicModelImpl getModel()
getModel
in interface DeepaMehtaObject
getModel
in interface Topic
getModel
in class DeepaMehtaObjectImpl
public List<RelatedTopic> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopics
in interface DeepaMehtaObject
assocTypeUris
- 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 DeepaMehtaObject
assocTypeUri
- 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 DeepaMehtaObject
assocTypeUri
- 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 DeepaMehtaObject
public List<Association> getAssociations()
getAssociations
in interface DeepaMehtaObject
public void setProperty(String propUri, Object propValue, boolean addToIndex)
setProperty
in interface DeepaMehtaObject
public void removeProperty(String propUri)
DeepaMehtaObject
removeProperty
in interface DeepaMehtaObject
Copyright © 2016. All Rights Reserved.