|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tm4j.topicmap.unified.UnifiedTopicMapObject
Field Summary | |
protected UnifiedTopicMap |
m_tm
|
Method Summary | |
void |
addMultiValuePropertyChangeListener(MultiValuePropertyChangeListener listener)
Adds a MultiValue Property Change Listener. |
void |
addMultiValuePropertyChangeListener(java.lang.String propertyName,
MultiValuePropertyChangeListener listener)
Adds a MultiValue Property Change Listener. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a Property Change Listener. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a Property Change Listener. |
void |
addSourceLocator(Locator loc)
Adds a locator to the set of locators of the XML or other resources which contributed to this topic map object. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
|
void |
destroy()
Permanently removes this object from the topic map. |
boolean |
equals(java.lang.Object other)
|
void |
fireMultiValuePropertyChange(MultiValuePropertyChangeEvent propertyChange)
Notifies the MultiValue Property Change Listeners of a property change. |
void |
fireMultiValuePropertyChange(java.lang.String propertyName,
int operation,
java.lang.Object operand)
Notifies the MultiValue Property Change Listeners of a property change to this object |
void |
firePropertyChange(java.beans.PropertyChangeEvent propertyChange)
Notifies the Property Change Listeners of a property change. |
void |
firePropertyChange(java.lang.String propertyName,
int operation,
java.lang.Object operand)
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldVal,
java.lang.Object newVal)
Notifies a Property Change Listener of a property change. |
void |
fireVetoableChange(java.beans.PropertyChangeEvent ev)
|
void |
fireVetoableChange(java.lang.String propertyName,
java.lang.Object oldVal,
java.lang.Object newVal)
|
protected TopicMapObject |
getBaseObject()
|
java.lang.String |
getID()
Returns the object ID of the TopicMapObject. |
Locator |
getResourceLocator()
Returns the Locator of the XML or other resource which caused the creation of this topic map object. |
java.util.Set |
getSourceLocators()
Returns the Locators of the XML or other resources which contributed to this topic map object. |
TopicMap |
getTopicMap()
Returns a handle to the topic map which this object is part of. |
int |
hashCode()
|
void |
removeMultiValuePropertyChangeListener(MultiValuePropertyChangeListener listener)
Removes a MultiValue Property Change Listener. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a Property Change Listener. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes a Property Change listener for a specific property |
void |
removeSourceLocator(Locator loc)
Removes a locator from the set of locators of the XML or other resources which contributed to this topic map object. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
|
void |
setID(java.lang.String id)
Sets the object ID of the TopicMapObject. |
void |
setResourceLocator(Locator loc)
Sets the Locator of the XML or other resource which caused the creation of this topic map object. |
protected void |
unsupported()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected UnifiedTopicMap m_tm
Method Detail |
public void setID(java.lang.String id)
TopicMapObject
setID
in interface TopicMapObject
id
- the new internal object ID.public java.lang.String getID()
TopicMapObject
TopicMapObject.getResourceLocator()
.
getID
in interface TopicMapObject
TopicMapObject.setID(java.lang.String)
public Locator getResourceLocator()
getSourceLocators()
TopicMapObject
getResourceLocator
in interface TopicMapObject
public java.util.Set getSourceLocators()
TopicMapObject
NOTE: under the dynamic merging model, calling getResourceLocators() on a Topic object will return the resourceLocator of the Topic itself, plust that of all Topics which it is merged with.
getSourceLocators
in interface TopicMapObject
public void setResourceLocator(Locator loc)
addSourceLocator(Locator)
TopicMapObject
setResourceLocator
in interface TopicMapObject
loc
- the creating Locator.public void addSourceLocator(Locator loc)
TopicMapObject
addSourceLocator
in interface TopicMapObject
loc
- the locator of the contributing resourcepublic void removeSourceLocator(Locator loc)
TopicMapObject
removeSourceLocator
in interface TopicMapObject
loc
- the locator to be removedpublic TopicMap getTopicMap()
TopicMapObject
getTopicMap
in interface TopicMapObject
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
TopicMapObject
addPropertyChangeListener
in interface TopicMapObject
listener
- The new listener to be registered. It listens
for changes in all available properties.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
TopicMapObject
removePropertyChangeListener
in interface TopicMapObject
listener
- The listener to be removed.public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
TopicMapObject
removePropertyChangeListener
in interface TopicMapObject
propertyName
- The property that the listener should be removed fromlistener
- The listener to be removedpublic void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
TopicMapObject
addPropertyChangeListener
in interface TopicMapObject
propertyName
- The property whose changes the listener monitors.listener
- The new listener to be registered. It only listens
for changes in the property specified by propertyName
.public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldVal, java.lang.Object newVal)
TopicMapObject
oldVal
equals newVal
,
no property change event is actually fired.
firePropertyChange
in interface TopicMapObject
propertyName
- The property for which a property change is
to be fired. The Property Change Listener
responsible for handling changes to this
particular property is selected automatically.oldVal
- The property's original value.newVal
- The property's new value.public void firePropertyChange(java.lang.String propertyName, int operation, java.lang.Object operand)
public void firePropertyChange(java.beans.PropertyChangeEvent propertyChange)
TopicMapObject
firePropertyChange
in interface TopicMapObject
propertyChange
- The PropertyChangeEvent to be fired.
The Property Change Listener is
responsible for handling changes to this
particular property is selected automatically.public int hashCode()
public void addMultiValuePropertyChangeListener(java.lang.String propertyName, MultiValuePropertyChangeListener listener)
TopicMapObject
addMultiValuePropertyChangeListener
in interface TopicMapObject
propertyName
- The property whose changes the listener monitors.listener
- The new listener to be registered. It only listens
for changes in the property specified by propertyName
.public void addMultiValuePropertyChangeListener(MultiValuePropertyChangeListener listener)
addMultiValuePropertyChangeListener
in interface TopicMapObject
listener
- The new listener to be registered. It listens
for changes in all available properties.public void removeMultiValuePropertyChangeListener(MultiValuePropertyChangeListener listener)
removeMultiValuePropertyChangeListener
in interface TopicMapObject
listener
- The listener to be removed.public void fireMultiValuePropertyChange(java.lang.String propertyName, int operation, java.lang.Object operand)
TopicMapObject
fireMultiValuePropertyChange
in interface TopicMapObject
propertyName
- The name of the property modified.operation
- The type of modification to the property. Allowed values are
specified in the class
MultiValuePropertyChangeEvent
operand
- The object or Collection of objects which were involved
in the modification. For OP_CLEAR events, no operand is
required. For OP_ADD_SINGLE or OP_REMOVE_SINGLE events,
the operand must be the object added or removed.
For OP_ADD_SET and OP_REMOVE_SET events, the operand
must be a Collection of all the objects added or removed.
For OP_SET events, the operand must be a collection of the
new values assigned to the property.public void fireMultiValuePropertyChange(MultiValuePropertyChangeEvent propertyChange)
TopicMapObject
fireMultiValuePropertyChange
in interface TopicMapObject
propertyChange
- The MultiValuePropertyChangeEvent to be fired.
The MultiValue Property Change Listener is
responsible for handling changes to this
particular property is selected automatically.public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
addVetoableChangeListener
in interface TopicMapObject
public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
removeVetoableChangeListener
in interface TopicMapObject
public void fireVetoableChange(java.lang.String propertyName, java.lang.Object oldVal, java.lang.Object newVal) throws java.beans.PropertyVetoException
fireVetoableChange
in interface TopicMapObject
java.beans.PropertyVetoException
public void fireVetoableChange(java.beans.PropertyChangeEvent ev) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public void destroy()
TopicMapObject
destroy
in interface TopicMapObject
protected void unsupported()
protected TopicMapObject getBaseObject()
public boolean equals(java.lang.Object other)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |