de.deepamehta.core.impl
Class AttachedTopic
java.lang.Object
de.deepamehta.core.impl.AttachedDeepaMehtaObject
de.deepamehta.core.impl.AttachedTopic
- All Implemented Interfaces:
- DeepaMehtaObject, Identifiable, JSONEnabled, Topic
- Direct Known Subclasses:
- AttachedRelatedTopic, AttachedType
class AttachedTopic
- extends AttachedDeepaMehtaObject
- implements Topic
A topic that is attached to the DeepaMehtaService
.
Method Summary |
(package private) void |
addUpdateDirective(Directives directives)
|
(package private) String |
className()
|
void |
delete(Directives directives)
Deletes all sub-topics of this DeepaMehta object (associated via "dm4.core.composition", recursively) and
deletes all the remaining direct associations of this DeepaMehta object. |
private Association |
fetchInstantiation()
|
(package private) RelatedTopicModel |
fetchRelatedTopic(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
|
(package private) ResultList<RelatedTopicModel> |
fetchRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
int maxResultSize)
|
Association |
getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId)
|
List<Association> |
getAssociations()
|
TopicModel |
getModel()
|
Object |
getProperty(String propUri)
|
RelatedAssociation |
getRelatedAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite)
|
List<RelatedAssociation> |
getRelatedAssociations(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite)
|
ResultList<RelatedTopic> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite,
int maxResultSize)
|
(package private) TopicType |
getTopicType()
Convenience method. |
boolean |
hasProperty(String propUri)
|
private void |
reassignInstantiation()
|
void |
removeProperty(String propUri)
|
void |
setProperty(String propUri,
Object propValue,
boolean addToIndex)
|
(package private) void |
storeTypeUri()
|
(package private) void |
storeUri()
|
void |
update(TopicModel model,
ClientState clientState,
Directives directives)
|
Methods inherited from class de.deepamehta.core.impl.AttachedDeepaMehtaObject |
equals, getCompositeValue, getId, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getType, getTypeUri, getUri, hashCode, loadChildTopics, setCompositeValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toJSON, toString, update, updateChildTopic, updateChildTopics |
Methods inherited from interface de.deepamehta.core.DeepaMehtaObject |
getCompositeValue, getId, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, loadChildTopics, setCompositeValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopics |
logger
private Logger logger
AttachedTopic
AttachedTopic(TopicModel model,
EmbeddedService dms)
delete
public void delete(Directives directives)
- Description copied from class:
AttachedDeepaMehtaObject
- Deletes all sub-topics of this DeepaMehta object (associated via "dm4.core.composition", recursively) and
deletes all the remaining direct associations of this DeepaMehta object.
Note: deletion of the object itself is up to the subclasses.
- Specified by:
delete
in interface DeepaMehtaObject
- Overrides:
delete
in class AttachedDeepaMehtaObject
getModel
public TopicModel getModel()
- Specified by:
getModel
in interface DeepaMehtaObject
- Specified by:
getModel
in interface Topic
- Overrides:
getModel
in class AttachedDeepaMehtaObject
update
public void update(TopicModel model,
ClientState clientState,
Directives directives)
- Specified by:
update
in interface Topic
getRelatedAssociation
public RelatedAssociation getRelatedAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite)
- Specified by:
getRelatedAssociation
in interface Topic
- Parameters:
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be null
getRelatedAssociations
public List<RelatedAssociation> getRelatedAssociations(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite)
- Specified by:
getRelatedAssociations
in interface Topic
- Parameters:
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be null
getRelatedTopics
public ResultList<RelatedTopic> getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite,
int maxResultSize)
- Specified by:
getRelatedTopics
in interface DeepaMehtaObject
- Parameters:
assocTypeUris
- may *not* be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be null
getAssociation
public Association getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId)
- Specified by:
getAssociation
in interface DeepaMehtaObject
getAssociations
public List<Association> getAssociations()
- Specified by:
getAssociations
in interface DeepaMehtaObject
getProperty
public Object getProperty(String propUri)
- Specified by:
getProperty
in interface DeepaMehtaObject
setProperty
public void setProperty(String propUri,
Object propValue,
boolean addToIndex)
- Specified by:
setProperty
in interface DeepaMehtaObject
hasProperty
public boolean hasProperty(String propUri)
- Specified by:
hasProperty
in interface DeepaMehtaObject
removeProperty
public void removeProperty(String propUri)
- Specified by:
removeProperty
in interface DeepaMehtaObject
getTopicType
TopicType getTopicType()
- Convenience method.
className
String className()
- Specified by:
className
in class AttachedDeepaMehtaObject
addUpdateDirective
void addUpdateDirective(Directives directives)
- Specified by:
addUpdateDirective
in class AttachedDeepaMehtaObject
storeUri
final void storeUri()
- Specified by:
storeUri
in class AttachedDeepaMehtaObject
storeTypeUri
final void storeTypeUri()
- Specified by:
storeTypeUri
in class AttachedDeepaMehtaObject
fetchRelatedTopic
final RelatedTopicModel fetchRelatedTopic(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
- Specified by:
fetchRelatedTopic
in class AttachedDeepaMehtaObject
fetchRelatedTopics
final ResultList<RelatedTopicModel> fetchRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
int maxResultSize)
- Specified by:
fetchRelatedTopics
in class AttachedDeepaMehtaObject
reassignInstantiation
private void reassignInstantiation()
fetchInstantiation
private Association fetchInstantiation()
Copyright © 2013. All Rights Reserved.