class TopicReferenceModelImpl extends RelatedTopicModelImpl implements TopicReferenceModel
childTopics, em, id, logger, mf, pl, typeUri, uri, value
Constructor and Description |
---|
TopicReferenceModelImpl(RelatedTopicModelImpl relatedTopic) |
Modifier and Type | Method and Description |
---|---|
(package private) String |
className() |
RelatedTopicModelImpl |
findReferencedTopic(List<? extends RelatedTopicModel> topics)
From the given topics finds the one this reference refers to.
|
boolean |
isEmptyRef()
Returns true if this reference refers to nothing.
|
boolean |
isReferenceById() |
boolean |
isReferenceByUri() |
boolean |
isReferingTo(TopicModel topic)
Checks weather this reference refers to the given topic.
|
(package private) TopicModelImpl |
resolve()
Resolves this reference and replaces it by the resolved topic.
|
clone, getRelatingAssociation, instantiate, toJSON
_delete, checkReadAccess, checkWriteAccess, createModelWithChildTopics, createRoleModel, findChildTopic, getAssociations, getDeleteDirective, getPostDeleteEvent, getPostUpdateEvent, getPreDeleteEvent, getPreUpdateEvent, getRelatedTopic, getRelatedTopics, getRelatedTopics, getType, getUpdateDirective, indexSimpleValue, preDelete, removeProperty, storeProperty, storeSimpleValue, storeTypeUri, storeUri
_updateSimpleValue, delete, equals, getChildTopicsModel, getId, getIndexValue, getSimpleValue, getTypeUri, getUri, hashCode, isSimple, loadChildTopics, loadChildTopics, loadChildTopics, objectInfo, postCreate, postDelete, postUpdate, preCreate, preUpdate, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toString, update, updateChildTopics, updateChildTopics, updateSimpleValue, updateTypeUri, updateUri, uriChange
finalize, getClass, notify, notifyAll, wait, wait, wait
getRelatingAssociation
clone
createRoleModel, getChildTopicsModel, getId, getSimpleValue, getTypeUri, getUri, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri
toJSON
TopicReferenceModelImpl(RelatedTopicModelImpl relatedTopic)
public boolean isReferenceById()
isReferenceById
in interface TopicReferenceModel
public boolean isReferenceByUri()
isReferenceByUri
in interface TopicReferenceModel
public boolean isEmptyRef()
TopicReferenceModel
isEmptyRef
in interface TopicReferenceModel
public boolean isReferingTo(TopicModel topic)
TopicReferenceModel
isReferingTo
in interface TopicReferenceModel
public RelatedTopicModelImpl findReferencedTopic(List<? extends RelatedTopicModel> topics)
TopicReferenceModel
findReferencedTopic
in interface TopicReferenceModel
String className()
className
in class RelatedTopicModelImpl
TopicModelImpl resolve()
RuntimeException
- if retrieval of the refered topic failsRuntimeException
- if this reference refers to nothingCopyright © 2018. All Rights Reserved.