|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tm4j.topicmap.unified.UnifiedTopicMapObject
org.tm4j.topicmap.unified.UnifiedVariant
| Field Summary |
| Fields inherited from class org.tm4j.topicmap.unified.UnifiedTopicMapObject |
m_tm |
| Method Summary | |
void |
addParameter(Topic param)
Adds a parameter to the variant. |
void |
addVariant(Variant v)
Adds a new child variant to this object. |
Variant |
createVariant(java.lang.String id)
Creates a new child variant of this object. |
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 all)
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. |
java.util.Collection |
getVariants()
Returns the child Variants as an unmodifiable collection of Variant objects. |
void |
setParameters(Topic[] params)
Sets the parameters of this variant, overwriting any existing parameters. |
void |
setParent(VariantContainer vc)
|
void |
setVariantName(VariantName vn)
Sets the VariantName contained by this Variant. |
void |
setVariants(Variant[] v)
Sets the child variants of this object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void addParameter(Topic param)
Variant
addParameter in interface Variantparam - The topic reference to be used as a variant parameter.public java.util.Collection getParameters()
VariantTopic objects. Note that this method
only provides the parameters specifically defined on
this Variant itself. In order to retrieve
a collection of all parameters defined on this variant
and its ancestors, use Variant.getParameters(boolean).
getParameters in interface VariantTopics defining this variant's
parameters.
If no parameters are currently defined on this
variant, the returned collection is empty;
it is never null.public java.util.Collection getParameters(boolean all)
VariantTopic objects.
getParameters in interface Variantall - If true, then parameters from all ancestor containers
are returned. If false, just the parameters of this
Variant itself are returned.
Topics defining this variant's
parameters.
If no parameters are currently defined on this
variant (or ancestors), the returned collection is empty;
it is never null.public VariantContainer getParent()
VariantBaseName, or, in case of variant nesting, another
Variant.
getParent in interface Variantpublic VariantName getVariantName()
Variant
getVariantName in interface Variantpublic void setParameters(Topic[] params)
Variant
setParameters in interface Variantparams - the new set of parameters to be used with
this variant. If this is null,
all the existing parameters of this variant
are removed.public void setParent(VariantContainer vc)
public void setVariantName(VariantName vn)
Variant
setVariantName in interface Variantvn - The VariantName child to be added to this object, or
null to remove any existing child from this object.public VariantName createVariantName(java.lang.String id)
Variant
createVariantName in interface Variantid - the unique object id to be assigned to the new VariantName object. If
this parameter is null, the back-end will assign an ID to the
newly created object.
public java.util.Collection getVariants()
VariantContainerVariant objects. Note that this method will not
descend any nesting of variants inside variants,
but will instead only return the immediate child variants
of this VariantContainer.
getVariants in interface VariantContainerVariants.
If no child variants are currently defined on this
object, the returned collection is empty;
it is never null.public void addVariant(Variant v)
VariantContainer
addVariant in interface VariantContainerv - the new child Variant.public void setVariants(Variant[] v)
VariantContainer
setVariants in interface VariantContainerv - the new set of child variants this object
contains. If this is null,
all the existing variants contained
in this object are removed.public Variant createVariant(java.lang.String id)
VariantContainer
createVariant in interface VariantContainerid - the unique identifier to be assigned to the newly created
Variant. If null is passed in, then the backend will
generate a unique identifier for the new Variant.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||