|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.uka.ipd.consensus.impl.TM4JObjectWrapper
de.uka.ipd.consensus.impl.OccurrenceImpl
TODO
| Field Summary |
| Fields inherited from class de.uka.ipd.consensus.impl.TM4JObjectWrapper |
EMPTY_SCOPE |
| Constructor Summary | |
protected |
OccurrenceImpl(OntologyManagerImpl omi,
org.tm4j.topicmap.Occurrence tmOccurrence)
|
| Method Summary | |
int |
compareTo(Object other)
|
String |
getData()
Returns the value of this occurrence. |
String |
getId()
Returns the id of the occurrence. |
Topic |
getTopic()
Returns the topic that this occurrence belongs to. |
Topic |
getType()
Returns the type topic of this occurrence. |
protected org.tm4j.topicmap.Occurrence |
getWrappedOccurrence()
|
boolean |
isOfType(Topic type)
Checks if this occurrence is of the given type. |
void |
setData(User setter,
String data)
Changes the value of the occurrence. |
void |
setType(User setter,
Topic type)
Sets the type of the occurrence. |
String |
toString()
|
| Methods inherited from class de.uka.ipd.consensus.impl.TM4JObjectWrapper |
equals, getCache, getLoggingManager, getObjectId, getOccurrence, getOntologyManager, getWrappedObject, hashCode, putCache, wrap, wrap, wrap, wrap, wrap, wrap, wrap |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected OccurrenceImpl(OntologyManagerImpl omi,
org.tm4j.topicmap.Occurrence tmOccurrence)
| Method Detail |
protected org.tm4j.topicmap.Occurrence getWrappedOccurrence()
public String getId()
Occurrence
getId in interface Occurrencepublic Topic getTopic()
Occurrence
getTopic in interface Occurrencepublic String getData()
Occurrence
getData in interface Occurrencenull)
public void setData(User setter,
String data)
throws OntologyManagerException,
DynamicRightsManagerException
Occurrence
setData in interface Occurrencesetter - the user who wants to change the valuedata - the new value
DynamicRightsManagerException - if the user is not allowed to change the value
OntologyManagerException - if the value could not be changedDynamicRightsManager.mayChangeOccurrence(User)public Topic getType()
Occurrence
getType in interface Occurrencenull if the occurrence does not have a type
public void setType(User setter,
Topic type)
throws OntologyManagerException,
DynamicRightsManagerException
Occurrence
setType in interface Occurrencesetter - the user who wants to set the typetype - the type topic (or null to remove the type)
DynamicRightsManagerException - if the user is not allowed to change the type
OntologyManagerException - if the type could not be setTopic.isClassTopic(),
DynamicRightsManager.mayChangeOccurrence(User)public boolean isOfType(Topic type)
Occurrence
isOfType in interface Occurrencetype - the type topic, including null for typeless occurrences
true if the occurrence is of the specified type, false otherwisepublic int compareTo(Object other)
compareTo in interface Comparablepublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||