|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents an occurrence of a topic.
Topic
,
Topic.addOccurrence(User, String, Topic)
Method Summary | |
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. |
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. |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public String getId()
public Topic getTopic()
public String getData()
null
)public void setData(User setter, String data) throws OntologyManagerException, DynamicRightsManagerException
setter
- the user who wants to change the valuedata
- the new value
OntologyManagerException
- if the value could not be changed
DynamicRightsManagerException
- if the user is not allowed to change the valueDynamicRightsManager.mayChangeOccurrence(User)
public Topic getType()
null
if the occurrence does not have a typepublic void setType(User setter, Topic type) throws OntologyManagerException, DynamicRightsManagerException
setter
- the user who wants to set the typetype
- the type topic (or null
to remove the type)
OntologyManagerException
- if the type could not be set
DynamicRightsManagerException
- if the user is not allowed to change the typeTopic.isClassTopic()
,
DynamicRightsManager.mayChangeOccurrence(User)
public boolean isOfType(Topic type)
type
- the type topic, including null
for typeless occurrences
true
if the occurrence is of the specified type, false
otherwise
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |