org.tm4j.topicmap .VariantContainer

Description

The base interface for an object which may contain a list of child Variants.

Rather than only allowing for variants being defined as children of base names, XTM also provides the possibility of nesting variants, thus establishing a context hierarchy in which variants at lower levels inherit the parameter contexts of their ancestors. TM4J deals with this provision by providing this interface being the parent interface for both BaseName and Variant.

Inheritance Hierarchy

Method Summary
void addVariant(org.tm4j.topicmap.Variant variant)
Adds a new child variant to this object.
Variant createVariant(java.lang.String id)
Creates a new child variant of this object.
java.util.Collection getVariants()
Returns the child Variants as an unmodifiable collection of Variant objects.
void setVariants(org.tm4j.topicmap.Variant[] variants)
Sets the child variants of this object.