|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a single occurrence construct in a Topic Map.
Occurrences may be untyped, or they may be defined by a an optional
typing Topic
, and the might also be restricted
in validity to a certain scope, which is defined by a set of Topic
s.
An occurrence contains a reference to a resource or in-line resource data.
Topic
Method Summary | |
Topic |
getParent()
Gets the topic which contains this occurrence. |
Topic |
getType()
Gets the Topic definition the type of this occurrence. |
boolean |
isOfType(Topic type)
Determines whether the type of the occurrence is described by type . |
void |
setType(Topic type)
Sets the Topic defining the type of this Occurrence. |
Methods inherited from interface org.tm4j.topicmap.ScopedObject |
addTheme, dispose, getScope, inScope, inScope, removeTheme, setScope |
Methods inherited from interface org.tm4j.topicmap.DataObject |
getData, getDataLocator, isDataInline, setData, setDataLocator |
Method Detail |
public Topic getType()
null
if no such Topic has been specified.public void setType(Topic type) throws java.beans.PropertyVetoException
type
- The Topic
defining the type of this occurrence.
java.beans.PropertyVetoException
public boolean isOfType(Topic type)
type
.
true
if the type of this Occurrence is defined by the topic
type
, false
otherwise.public Topic getParent()
null
if the
occurrence is not currently part of any topic.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |