org.tm4j.topicmap.VariantContainer .createVariant(java.lang.String id)
Description
Creates a new child variant of this object.
Parameters | ||
---|---|---|
java.lang.String | 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. |
Throws
- java.beans.PropertyVetoException - if to create a new Variant for this object would violate a constraint imposed by a VetoableChangeListener assigned to the containing TopicMap.
-
org.tm4j.topicmap.DuplicateObjectIDException
-
if
id
specifies and identifier value already used in the containing TopicMap.
Returns
the newly created Variant. The new Variant has no data or dataLocator
set and no parameters specified.
Meta Data (1)
Other Resources
Related Topics
Has Parameters
id
[
Parameter #1
]