Class NameImpl
- java.lang.Object
-
- net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
-
- net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
-
- net.ontopia.topicmaps.impl.tmapi2.NameImpl
-
- All Implemented Interfaces:
org.tmapi.core.Construct
,org.tmapi.core.Name
,org.tmapi.core.Reifiable
,org.tmapi.core.Scoped
,org.tmapi.core.Typed
public class NameImpl extends ScopedImpl implements org.tmapi.core.Name
INTERNAL: OKS->TMAPI 2 object wrapper.
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicMapImpl
topicMap
-
Constructor Summary
Constructors Constructor Description NameImpl(TopicMapImpl topicMap, TopicNameIF name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItemIdentifier(org.tmapi.core.Locator iid)
protected void
addVariant(org.tmapi.core.Variant variant)
protected void
clearVariants()
org.tmapi.core.Variant
createVariant(String value, Collection<org.tmapi.core.Topic> scope)
org.tmapi.core.Variant
createVariant(String value, org.tmapi.core.Locator datatype, Collection<org.tmapi.core.Topic> scope)
org.tmapi.core.Variant
createVariant(String value, org.tmapi.core.Locator datatype, org.tmapi.core.Topic... scope)
org.tmapi.core.Variant
createVariant(String value, org.tmapi.core.Topic... scope)
org.tmapi.core.Variant
createVariant(org.tmapi.core.Locator value, Collection<org.tmapi.core.Topic> scope)
org.tmapi.core.Variant
createVariant(org.tmapi.core.Locator value, org.tmapi.core.Topic... scope)
boolean
equals(Object obj)
String
getId()
Set<org.tmapi.core.Locator>
getItemIdentifiers()
org.tmapi.core.Topic
getParent()
TopicMapImpl
getTopicMap()
org.tmapi.core.Topic
getType()
String
getValue()
Set<org.tmapi.core.Variant>
getVariants()
TopicNameIF
getWrapped()
int
hashCode()
void
remove()
void
removeItemIdentifier(org.tmapi.core.Locator iid)
void
removeTheme(org.tmapi.core.Topic theme)
protected void
removeVariant(VariantImpl variantImpl)
void
setType(org.tmapi.core.Topic type)
void
setValue(String value)
-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
addTheme, getScope
-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
getReifier, setReifier
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
topicMap
protected TopicMapImpl topicMap
-
-
Constructor Detail
-
NameImpl
public NameImpl(TopicMapImpl topicMap, TopicNameIF name)
-
-
Method Detail
-
getWrapped
public TopicNameIF getWrapped()
-
createVariant
public org.tmapi.core.Variant createVariant(String value, org.tmapi.core.Topic... scope)
- Specified by:
createVariant
in interfaceorg.tmapi.core.Name
-
createVariant
public org.tmapi.core.Variant createVariant(String value, Collection<org.tmapi.core.Topic> scope)
- Specified by:
createVariant
in interfaceorg.tmapi.core.Name
-
addVariant
protected void addVariant(org.tmapi.core.Variant variant)
-
clearVariants
protected void clearVariants()
-
createVariant
public org.tmapi.core.Variant createVariant(org.tmapi.core.Locator value, org.tmapi.core.Topic... scope)
- Specified by:
createVariant
in interfaceorg.tmapi.core.Name
-
createVariant
public org.tmapi.core.Variant createVariant(org.tmapi.core.Locator value, Collection<org.tmapi.core.Topic> scope)
- Specified by:
createVariant
in interfaceorg.tmapi.core.Name
-
createVariant
public org.tmapi.core.Variant createVariant(String value, org.tmapi.core.Locator datatype, org.tmapi.core.Topic... scope)
- Specified by:
createVariant
in interfaceorg.tmapi.core.Name
-
createVariant
public org.tmapi.core.Variant createVariant(String value, org.tmapi.core.Locator datatype, Collection<org.tmapi.core.Topic> scope)
- Specified by:
createVariant
in interfaceorg.tmapi.core.Name
-
getParent
public org.tmapi.core.Topic getParent()
- Specified by:
getParent
in interfaceorg.tmapi.core.Construct
- Specified by:
getParent
in interfaceorg.tmapi.core.Name
-
getValue
public String getValue()
- Specified by:
getValue
in interfaceorg.tmapi.core.Name
-
getVariants
public Set<org.tmapi.core.Variant> getVariants()
- Specified by:
getVariants
in interfaceorg.tmapi.core.Name
-
setValue
public void setValue(String value)
- Specified by:
setValue
in interfaceorg.tmapi.core.Name
-
getType
public org.tmapi.core.Topic getType()
- Specified by:
getType
in interfaceorg.tmapi.core.Typed
-
setType
public void setType(org.tmapi.core.Topic type)
- Specified by:
setType
in interfaceorg.tmapi.core.Typed
-
removeTheme
public void removeTheme(org.tmapi.core.Topic theme)
- Specified by:
removeTheme
in interfaceorg.tmapi.core.Scoped
- Overrides:
removeTheme
in classScopedImpl
-
removeVariant
protected void removeVariant(VariantImpl variantImpl)
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.tmapi.core.Construct
-
getItemIdentifiers
public Set<org.tmapi.core.Locator> getItemIdentifiers()
- Specified by:
getItemIdentifiers
in interfaceorg.tmapi.core.Construct
-
addItemIdentifier
public void addItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
addItemIdentifier
in interfaceorg.tmapi.core.Construct
-
removeItemIdentifier
public void removeItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
removeItemIdentifier
in interfaceorg.tmapi.core.Construct
-
getTopicMap
public TopicMapImpl getTopicMap()
- Specified by:
getTopicMap
in interfaceorg.tmapi.core.Construct
-
remove
public void remove()
- Specified by:
remove
in interfaceorg.tmapi.core.Construct
-
equals
public boolean equals(Object obj)
-
-