Class OccurrenceImpl
- java.lang.Object
-
- net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
-
- net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
-
- net.ontopia.topicmaps.impl.tmapi2.DatatypeAwareImpl
-
- net.ontopia.topicmaps.impl.tmapi2.OccurrenceImpl
-
- All Implemented Interfaces:
org.tmapi.core.Construct
,org.tmapi.core.DatatypeAware
,org.tmapi.core.Occurrence
,org.tmapi.core.Reifiable
,org.tmapi.core.Scoped
,org.tmapi.core.Typed
public class OccurrenceImpl extends DatatypeAwareImpl implements org.tmapi.core.Occurrence
INTERNAL: OKS->TMAPI 2 object wrapper.
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicMapImpl
topicMap
-
Constructor Summary
Constructors Constructor Description OccurrenceImpl(TopicMapImpl topicMap, OccurrenceIF occ)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItemIdentifier(org.tmapi.core.Locator iid)
boolean
equals(Object obj)
org.tmapi.core.Locator
getDatatype()
String
getId()
Set<org.tmapi.core.Locator>
getItemIdentifiers()
org.tmapi.core.Topic
getParent()
TopicMapImpl
getTopicMap()
org.tmapi.core.Topic
getType()
String
getValue()
OccurrenceIF
getWrapped()
int
hashCode()
org.tmapi.core.Locator
locatorValue()
void
remove()
void
removeItemIdentifier(org.tmapi.core.Locator iid)
void
setType(org.tmapi.core.Topic type)
void
setValue(String value)
protected void
setValue(String value, LocatorIF datatype)
Sets the value / datatype pair.void
setValue(org.tmapi.core.Locator value)
-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.DatatypeAwareImpl
decimalValue, floatValue, integerValue, intValue, longValue, setValue, setValue, setValue, setValue, setValue, setValue
-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
addTheme, getScope, removeTheme
-
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
-
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, getItemIdentifiers, getTopicMap, hashCode, remove, removeItemIdentifier
-
-
-
-
Field Detail
-
topicMap
protected TopicMapImpl topicMap
-
-
Constructor Detail
-
OccurrenceImpl
public OccurrenceImpl(TopicMapImpl topicMap, OccurrenceIF occ)
-
-
Method Detail
-
getWrapped
public OccurrenceIF getWrapped()
-
getParent
public org.tmapi.core.Topic getParent()
- Specified by:
getParent
in interfaceorg.tmapi.core.Construct
- Specified by:
getParent
in interfaceorg.tmapi.core.Occurrence
-
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
-
getDatatype
public org.tmapi.core.Locator getDatatype()
- Specified by:
getDatatype
in interfaceorg.tmapi.core.DatatypeAware
-
getValue
public String getValue()
- Specified by:
getValue
in interfaceorg.tmapi.core.DatatypeAware
-
locatorValue
public org.tmapi.core.Locator locatorValue()
- Specified by:
locatorValue
in interfaceorg.tmapi.core.DatatypeAware
-
setValue
public void setValue(String value)
- Specified by:
setValue
in interfaceorg.tmapi.core.DatatypeAware
-
setValue
public void setValue(org.tmapi.core.Locator value)
- Specified by:
setValue
in interfaceorg.tmapi.core.DatatypeAware
-
setValue
protected void setValue(String value, LocatorIF datatype)
Description copied from class:DatatypeAwareImpl
Sets the value / datatype pair. Methods which invoke this method have to ensure that value and datatype is never null.- Specified by:
setValue
in classDatatypeAwareImpl
-
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)
-
-