org.tm4j.topicmap.unified
Class UnifiedOccurrence

java.lang.Object
  extended byorg.tm4j.topicmap.unified.UnifiedTopicMapObject
      extended byorg.tm4j.topicmap.unified.UnifiedScopedObject
          extended byorg.tm4j.topicmap.unified.UnifiedOccurrence
All Implemented Interfaces:
DataObject, Occurrence, ScopedObject, TopicMapObject

public class UnifiedOccurrence
extends UnifiedScopedObject
implements Occurrence


Field Summary
 
Fields inherited from class org.tm4j.topicmap.unified.UnifiedTopicMapObject
m_tm
 
Constructor Summary
UnifiedOccurrence(UnifiedTopicMap tm, Occurrence base)
           
 
Method Summary
 java.lang.String getData()
          Gets the resource data string associated with this occurrence.
 Locator getDataLocator()
          Returns the Locator of the resource referenced by this data object.
 Topic getParent()
          Gets the topic which contains this occurrence.
 Topic getType()
          Gets the Topic definition the type of this occurrence.
 boolean isDataInline()
          Determines the type of resource data provided by this data object.
 boolean isOfType(Topic type)
          Determines whether the type of the occurrence is described by type.
 void setData(java.lang.String data)
          Sets the resource data string associated with this data object.
 void setDataLocator(Locator loc)
          Sets the Locator of the resource referenced by this data object.
 void setParent(Topic parent)
           
 void setType(Topic type)
          Sets the Topic defining the type of this Occurrence.
 
Methods inherited from class org.tm4j.topicmap.unified.UnifiedScopedObject
addTheme, dispose, getScope, inScope, inScope, removeTheme, setScope
 
Methods inherited from class org.tm4j.topicmap.unified.UnifiedTopicMapObject
addMultiValuePropertyChangeListener, addMultiValuePropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addSourceLocator, addVetoableChangeListener, destroy, equals, fireMultiValuePropertyChange, fireMultiValuePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getBaseObject, getID, getResourceLocator, getSourceLocators, getTopicMap, hashCode, removeMultiValuePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeSourceLocator, removeVetoableChangeListener, setID, setResourceLocator, unsupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tm4j.topicmap.ScopedObject
addTheme, dispose, getScope, inScope, inScope, removeTheme, setScope
 
Methods inherited from interface org.tm4j.topicmap.TopicMapObject
addMultiValuePropertyChangeListener, addMultiValuePropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addSourceLocator, addVetoableChangeListener, destroy, fireMultiValuePropertyChange, fireMultiValuePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getID, getResourceLocator, getSourceLocators, getTopicMap, removeMultiValuePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeSourceLocator, removeVetoableChangeListener, setID, setResourceLocator
 

Constructor Detail

UnifiedOccurrence

public UnifiedOccurrence(UnifiedTopicMap tm,
                         Occurrence base)
Method Detail

getParent

public Topic getParent()
Description copied from interface: Occurrence
Gets the topic which contains this occurrence.

Specified by:
getParent in interface Occurrence
Returns:
The Topic object which contains this occurrence, or null if the occurrence is not currently part of any topic.

getType

public Topic getType()
Description copied from interface: Occurrence
Gets the Topic definition the type of this occurrence.

Specified by:
getType in interface Occurrence
Returns:
The Topic defining the type of this Occurrence, or null if no such Topic has been specified.

isOfType

public boolean isOfType(Topic type)
Description copied from interface: Occurrence
Determines whether the type of the occurrence is described by type.

Specified by:
isOfType in interface Occurrence
Returns:
true if the type of this Occurrence is defined by the topic type, false otherwise.

setParent

public void setParent(Topic parent)

setType

public void setType(Topic type)
Description copied from interface: Occurrence
Sets the Topic defining the type of this Occurrence.

Specified by:
setType in interface Occurrence
Parameters:
type - The Topic defining the type of this occurrence.

getData

public java.lang.String getData()
Description copied from interface: DataObject
Gets the resource data string associated with this occurrence. This function returns null if there is no resource data string associated with this occurrence.

Specified by:
getData in interface DataObject
Returns:
The resource data string, or null if this data object provides a resource reference.

getDataLocator

public Locator getDataLocator()
Description copied from interface: DataObject
Returns the Locator of the resource referenced by this data object. If the data object provides inline data, this method will return null.

Specified by:
getDataLocator in interface DataObject
Returns:
The resource locator, or null if this data object provides inline character data.

isDataInline

public boolean isDataInline()
Description copied from interface: DataObject
Determines the type of resource data provided by this data object.

Specified by:
isDataInline in interface DataObject
Returns:
true if this data object provides inline character data, false if it refers to a remote resource.

setData

public void setData(java.lang.String data)
Description copied from interface: DataObject
Sets the resource data string associated with this data object. The new value overwrites any previous data strings or resource locators.

Specified by:
setData in interface DataObject
Parameters:
data - the character data to be provided by this data object.

setDataLocator

public void setDataLocator(Locator loc)
Description copied from interface: DataObject
Sets the Locator of the resource referenced by this data object. The new value overwrites any previous resource locator or data string.

Specified by:
setDataLocator in interface DataObject
Parameters:
loc - the resource locator.