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.


Field Summary
static String EVENT_ADD_THEME
           
static String EVENT_ADD_VARIANT
           
static String EVENT_ADDED
           
static String EVENT_REMOVE_THEME
           
static String EVENT_REMOVE_VARIANT
           
static String EVENT_REMOVED
           
static String EVENT_SET_TYPE
           
static String EVENT_SET_VALUE
           
 
Fields inherited from interface net.ontopia.topicmaps.core.ReifiableIF
EVENT_SET_REIFIER
 
Fields inherited from interface net.ontopia.topicmaps.core.TMObjectIF
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER
 
Method Summary
 TopicIF getTopic()
          PUBLIC: Gets the topic to which this topic name belongs.
 String getValue()
          PUBLIC: Gets the value of this topic name.
 Collection<VariantNameIF> getVariants()
          PUBLIC: Gets the variant names of the topic named by this topic name.
 void setValue(String name)
          PUBLIC: Sets the value of this topic name.
 
Methods inherited from interface net.ontopia.topicmaps.core.ScopedIF
addTheme, getScope, removeTheme
 
Methods inherited from interface net.ontopia.topicmaps.core.TypedIF
getType, setType
 
Methods inherited from interface net.ontopia.topicmaps.core.ReifiableIF
getReifier, setReifier
 
Methods inherited from interface net.ontopia.topicmaps.core.TMObjectIF
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, remove, removeItemIdentifier
 

Field Detail

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
Method Detail

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.