|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Name

Represents a topic name item.
| Method Summary | |
|---|---|
Variant |
createVariant(Locator value,
java.util.Collection<Topic> scope)
Creates a Variant of this topic name with the specified IRI
value and scope. |
Variant |
createVariant(Locator value,
Topic... scope)
Creates a Variant of this topic name with the specified IRI
value and scope. |
Variant |
createVariant(java.lang.String value,
java.util.Collection<Topic> scope)
Creates a Variant of this topic name with the specified string
value and scope. |
Variant |
createVariant(java.lang.String value,
Locator datatype,
java.util.Collection<Topic> scope)
Creates a Variant of this topic name with the specified
value, datatype, and scope. |
Variant |
createVariant(java.lang.String value,
Locator datatype,
Topic... scope)
Creates a Variant of this topic name with the specified
value, datatype, and scope. |
Variant |
createVariant(java.lang.String value,
Topic... scope)
Creates a Variant of this topic name with the specified string
value and scope. |
Topic |
getParent()
Returns the Topic to which this name belongs. |
java.lang.String |
getValue()
Returns the value of this name. |
java.util.Set<Variant> |
getVariants()
Returns the Variants defined for this name. |
void |
setValue(java.lang.String value)
Sets the value of this name. |
| Methods inherited from interface org.tmapi.core.Typed |
|---|
getType, setType |
| Methods inherited from interface org.tmapi.core.Scoped |
|---|
addTheme, getScope, removeTheme |
| Methods inherited from interface org.tmapi.core.Reifiable |
|---|
getReifier, setReifier |
| Methods inherited from interface org.tmapi.core.Construct |
|---|
addItemIdentifier, equals, getId, getItemIdentifiers, getTopicMap, hashCode, remove, removeItemIdentifier |
| Method Detail |
|---|
Topic getParent()
Topic to which this name belongs.
getParent in interface ConstructConstruct.getParent()java.lang.String getValue()
void setValue(java.lang.String value)
throws ModelConstraintException
value - The name string to be assigned to the name.
ModelConstraintException - If the the value is null.java.util.Set<Variant> getVariants()
Variants defined for this name.
The return value may be empty but must never be null.
Variants.
Variant createVariant(java.lang.String value,
Topic... scope)
throws ModelConstraintException
Variant of this topic name with the specified string
value and scope.
The newly created Variant will have the datatype
xsd:string.
The newly created Variant will contain all themes from the parent name
and the themes specified in scope.
value - The string value.scope - An array (length >= 1) of themes.
Variant.
ModelConstraintException - If the value is null,
or the scope of the variant would not be a true superset of the
name's scope.
Variant createVariant(java.lang.String value,
java.util.Collection<Topic> scope)
throws ModelConstraintException
Variant of this topic name with the specified string
value and scope.
The newly created Variant will have the datatype
xsd:string.
The newly created Variant will contain all themes from the parent name
and the themes specified in scope.
value - The string value.scope - A collection (size >= 1) of themes.
Variant.
ModelConstraintException - If the value is null,
or the scope of the variant would not be a true superset of the
name's scope.
Variant createVariant(Locator value,
Topic... scope)
throws ModelConstraintException
Variant of this topic name with the specified IRI
value and scope.
The newly created Variant will have the datatype
xsd:anyURI.
The newly created Variant will contain all themes from the parent name
and the themes specified in scope.
value - A locator which represents an IRI.scope - An array (length >= 1) of themes.
Variant.
ModelConstraintException - If the value is null,
or the scope of the variant would not be a true superset of the
name's scope.
Variant createVariant(Locator value,
java.util.Collection<Topic> scope)
throws ModelConstraintException
Variant of this topic name with the specified IRI
value and scope.
The newly created Variant will have the datatype
xsd:anyURI.
The newly created Variant will contain all themes from the parent name
and the themes specified in scope.
value - A locator which represents an IRI.scope - A collection (size >= 1) of themes.
Variant.
ModelConstraintException - If the value is null,
or the scope of the variant would not be a true superset of the
name's scope.
Variant createVariant(java.lang.String value,
Locator datatype,
Topic... scope)
throws ModelConstraintException
Variant of this topic name with the specified
value, datatype, and scope.
The newly created Variant will have the datatype specified by
datatype.
The newly created Variant will contain all themes from the parent name
and the themes specified in scope.
value - A lexical string representation of the value.datatype - A locator indicating the datatype of the value.scope - An array (length >= 1) of themes.
Variant.
ModelConstraintException - If the value or datatype
is null, or the scope of the variant would not be a
true superset of the name's scope.
Variant createVariant(java.lang.String value,
Locator datatype,
java.util.Collection<Topic> scope)
throws ModelConstraintException
Variant of this topic name with the specified
value, datatype, and scope.
The newly created Variant will have the datatype specified by
datatype.
The newly created Variant will contain all themes from the parent name
and the themes specified in scope.
value - A lexical string representation of the value.datatype - A locator indicating the datatype of the value.scope - A collection (size >= 1) of themes.
Variant.
ModelConstraintException - If the value or datatype
is null, or the scope of the variant would not be a
true superset of the name's scope.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||