org.tm4j.topicmap .Variant

Description

This interface is used to define an alternate naming scheme for a topic. In XTM, a variant comprises a set of parameters (a context in which the variant is to be interpreted), and the actual variant name, which can be defined either as a character string or a reference to an external resource.

Interfaces

Implementations of this interface

Method Summary
void addParameter(org.tm4j.topicmap.Topic parameter)
Adds a parameter to the variant.
VariantName createVariantName(java.lang.String id)
Creates a new VariantName as a child of this Variant.
java.util.Collection getParameters()
Returns the parameters of this variant as an unmodifiable Collection of Topic objects.
java.util.Collection getParameters(boolean getAll)
Returns the parameters of this variant and, if so specified, all ancestor variants, as an unmodifiable Collection of Topic objects.
VariantContainer getParent()
Returns the object containing this variant.
VariantName getVariantName()
Returns the name for this Variant.
void setParameters(org.tm4j.topicmap.Topic[] parameters)
Sets the parameters of this variant, overwriting any existing parameters.
void setVariantName(org.tm4j.topicmap.VariantName name)
Sets the VariantName contained by this Variant.

Related Topics

Is Contained By
Is Type For