de.deepamehta.core
Interface DeepaMehtaObject
- All Superinterfaces:
- Identifiable, JSONEnabled
- All Known Subinterfaces:
- Association, AssociationDefinition, AssociationType, RelatedAssociation, RelatedTopic, Topic, TopicType, Type
- All Known Implementing Classes:
- AttachedAssociation, AttachedAssociationDefinition, AttachedAssociationType, AttachedDeepaMehtaObject, AttachedRelatedAssociation, AttachedRelatedTopic, AttachedTopic, AttachedTopicType, AttachedType
public interface DeepaMehtaObject
- extends Identifiable, JSONEnabled
Method Summary |
void |
delete(Directives directives)
Deletes the DeepaMehta object in its entirety, that is
- the object itself (the parent)
- all child topics associated via "dm4.core.composition", recusively
- all the remaining direct associations, e.g. |
Association |
getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId)
|
List<Association> |
getAssociations()
|
CompositeValue |
getCompositeValue()
|
long |
getId()
|
DeepaMehtaObjectModel |
getModel()
|
Object |
getProperty(String propUri)
|
RelatedTopic |
getRelatedTopic(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite)
Fetches and returns a related topic or null if no such topic extists. |
ResultList<RelatedTopic> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite,
int maxResultSize)
|
ResultList<RelatedTopic> |
getRelatedTopics(String assocTypeUri,
int maxResultSize)
|
ResultList<RelatedTopic> |
getRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite,
int maxResultSize)
|
SimpleValue |
getSimpleValue()
|
String |
getTypeUri()
|
String |
getUri()
|
boolean |
hasProperty(String propUri)
|
void |
loadChildTopics()
|
void |
loadChildTopics(String childTypeUri)
|
void |
removeProperty(String propUri)
|
void |
setCompositeValue(CompositeValueModel comp,
ClientState clientState,
Directives directives)
|
void |
setProperty(String propUri,
Object propValue,
boolean addToIndex)
|
void |
setSimpleValue(boolean value)
|
void |
setSimpleValue(int value)
|
void |
setSimpleValue(long value)
|
void |
setSimpleValue(SimpleValue value)
|
void |
setSimpleValue(String value)
|
void |
setTypeUri(String typeUri)
|
void |
setUri(String uri)
|
void |
update(DeepaMehtaObjectModel model,
ClientState clientState,
Directives directives)
|
void |
updateChildTopic(TopicModel newChildTopic,
AssociationDefinition assocDef,
ClientState clientState,
Directives directives)
|
void |
updateChildTopics(List<TopicModel> newChildTopics,
AssociationDefinition assocDef,
ClientState clientState,
Directives directives)
|
getId
long getId()
- Specified by:
getId
in interface Identifiable
getUri
String getUri()
setUri
void setUri(String uri)
getTypeUri
String getTypeUri()
setTypeUri
void setTypeUri(String typeUri)
getSimpleValue
SimpleValue getSimpleValue()
setSimpleValue
void setSimpleValue(String value)
setSimpleValue
void setSimpleValue(int value)
setSimpleValue
void setSimpleValue(long value)
setSimpleValue
void setSimpleValue(boolean value)
setSimpleValue
void setSimpleValue(SimpleValue value)
getCompositeValue
CompositeValue getCompositeValue()
setCompositeValue
void setCompositeValue(CompositeValueModel comp,
ClientState clientState,
Directives directives)
loadChildTopics
void loadChildTopics()
loadChildTopics
void loadChildTopics(String childTypeUri)
getModel
DeepaMehtaObjectModel getModel()
update
void update(DeepaMehtaObjectModel model,
ClientState clientState,
Directives directives)
updateChildTopic
void updateChildTopic(TopicModel newChildTopic,
AssociationDefinition assocDef,
ClientState clientState,
Directives directives)
updateChildTopics
void updateChildTopics(List<TopicModel> newChildTopics,
AssociationDefinition assocDef,
ClientState clientState,
Directives directives)
delete
void delete(Directives directives)
- Deletes the DeepaMehta object in its entirety, that is
- the object itself (the parent)
- all child topics associated via "dm4.core.composition", recusively
- all the remaining direct associations, e.g. "dm4.core.instantiation"
getRelatedTopic
RelatedTopic getRelatedTopic(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite)
- Fetches and returns a related topic or
null
if no such topic extists.
- Parameters:
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be null
getRelatedTopics
ResultList<RelatedTopic> getRelatedTopics(String assocTypeUri,
int maxResultSize)
getRelatedTopics
ResultList<RelatedTopic> getRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite,
int maxResultSize)
- Parameters:
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullfetchComposite
- fetchRelatingComposite
- maxResultSize
- Result size limit. Pass 0 for no limit.
getRelatedTopics
ResultList<RelatedTopic> getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
boolean fetchComposite,
boolean fetchRelatingComposite,
int maxResultSize)
- Parameters:
assocTypeUris
- may *not* be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be null
getAssociation
Association getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId)
getAssociations
List<Association> getAssociations()
getProperty
Object getProperty(String propUri)
setProperty
void setProperty(String propUri,
Object propValue,
boolean addToIndex)
hasProperty
boolean hasProperty(String propUri)
removeProperty
void removeProperty(String propUri)
Copyright © 2014. All Rights Reserved.