net.ontopia.topicmaps.core
Interface TopicNameIF
- All Superinterfaces:
- ReifiableIF, ScopedIF, TMObjectIF, TypedIF
- All Known Implementing Classes:
- ReadOnlyTopicName, SnapshotTopicName, TopicName, TopicName
public interface TopicNameIF
- extends ScopedIF, TypedIF, ReifiableIF
PUBLIC: Implemented by an object which represents a topic name, which
is a topic characteristic.
This interface is also used for 'variant' elements in the XTM 1.0
syntax, when extended by the VariantNameIF interface.
EVENT_ADDED
static final String EVENT_ADDED
- See Also:
- Constant Field Values
EVENT_REMOVED
static final String EVENT_REMOVED
- See Also:
- Constant Field Values
EVENT_SET_TYPE
static final String EVENT_SET_TYPE
- See Also:
- Constant Field Values
EVENT_SET_VALUE
static final String EVENT_SET_VALUE
- See Also:
- Constant Field Values
EVENT_ADD_VARIANT
static final String EVENT_ADD_VARIANT
- See Also:
- Constant Field Values
EVENT_REMOVE_VARIANT
static final String EVENT_REMOVE_VARIANT
- See Also:
- Constant Field Values
EVENT_ADD_THEME
static final String EVENT_ADD_THEME
- See Also:
- Constant Field Values
EVENT_REMOVE_THEME
static final String EVENT_REMOVE_THEME
- See Also:
- Constant Field Values
getTopic
TopicIF getTopic()
- PUBLIC: Gets the topic to which this topic name belongs.
- Returns:
- The topic named by this topic name; an object implementing TopicIF.
getValue
String getValue()
- PUBLIC: Gets the value of this topic name. This corresponds to
the content of the 'baseNameString' element in XTM 1.0, as a
string.
Where this method is implemented by an object implementing VariantNameIF,
the contents of the 'variantName' element are returned instead.
- Returns:
- A string which is the value of this topic name.
setValue
void setValue(String name)
- PUBLIC: Sets the value of this topic name. This corresponds to
the content of the 'baseNameString' element in XTM 1.0, as a
string.
- Parameters:
name - A string which is the value of this topic name.
getVariants
Collection<VariantNameIF> getVariants()
- PUBLIC: Gets the variant names of the topic named by this
topic name. These correspond to the 'variant' child elements of the
'baseName' element in XTM 1.0. There is no guarantee as to which
order these appear in the collection.
- Returns:
- A collection of VariantNameIF objects.
Copyright © 2000-2012 Ontopia.