|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tm4j.topicmap.unified.UnifiedTopicMapObject org.tm4j.topicmap.unified.UnifiedScopedObject org.tm4j.topicmap.unified.UnifiedBaseName
Field Summary |
Fields inherited from class org.tm4j.topicmap.unified.UnifiedTopicMapObject |
m_tm |
Constructor Summary | |
UnifiedBaseName(UnifiedTopicMap tm,
BaseName base)
|
Method Summary | |
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. |
java.lang.String |
getData()
Returns the data string for this name. |
Topic |
getParent()
Returns the Topic object which contains this BaseName. |
java.util.Collection |
getVariants()
Returns the child Variants as an unmodifiable collection of Variant objects. |
void |
setData(java.lang.String s)
Sets the data string for this name. |
void |
setParent(Topic t)
|
void |
setVariants(Variant[] v)
Sets the child variants of this object. |
Methods inherited from class org.tm4j.topicmap.unified.UnifiedScopedObject |
addTheme, dispose, getScope, inScope, inScope, removeTheme, setScope |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.tm4j.topicmap.ScopedObject |
addTheme, dispose, getScope, inScope, inScope, removeTheme, setScope |
Constructor Detail |
public UnifiedBaseName(UnifiedTopicMap tm, BaseName base)
Method Detail |
public java.lang.String getData()
BaseName
getData
in interface BaseName
public void setData(java.lang.String s)
BaseName
setData
in interface BaseName
s
- the new data string.public Topic getParent()
BaseName
getParent
in interface BaseName
Topic
.public void setParent(Topic t)
public java.util.Collection getVariants()
VariantContainer
Variant
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 VariantContainer
Variant
s.
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 VariantContainer
v
- the new child Variant
.public void setVariants(Variant[] v)
VariantContainer
setVariants
in interface VariantContainer
v
- 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 VariantContainer
id
- 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 |