de.topicmapslab.majortom.core
Class NameImpl

java.lang.Object
  extended by de.topicmapslab.majortom.core.ConstructImpl
      extended by de.topicmapslab.majortom.core.ReifiableImpl
          extended by de.topicmapslab.majortom.core.ScopeableImpl
              extended by de.topicmapslab.majortom.core.NameImpl
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.ICharacteristics, de.topicmapslab.majortom.model.core.IConstruct, de.topicmapslab.majortom.model.core.IName, de.topicmapslab.majortom.model.core.IReifiable, de.topicmapslab.majortom.model.core.IScopable, de.topicmapslab.majortom.model.core.ITypeable, de.topicmapslab.majortom.model.core.paged.IPagedName, java.io.Serializable, java.lang.Comparable<de.topicmapslab.majortom.model.core.IConstruct>, org.tmapi.core.Construct, org.tmapi.core.Name, org.tmapi.core.Reifiable, org.tmapi.core.Scoped, org.tmapi.core.Typed

public class NameImpl
extends ScopeableImpl
implements de.topicmapslab.majortom.model.core.IName, de.topicmapslab.majortom.model.core.paged.IPagedName

Base implementation of the interface IName.

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
protected NameImpl(de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity identity, de.topicmapslab.majortom.model.core.ITopic parent)
          constructor
 
Method Summary
 org.tmapi.core.Variant createVariant(org.tmapi.core.Locator value, java.util.Collection<org.tmapi.core.Topic> themes)
          
 org.tmapi.core.Variant createVariant(org.tmapi.core.Locator value, org.tmapi.core.Topic... themes)
          
 org.tmapi.core.Variant createVariant(java.lang.String value, java.util.Collection<org.tmapi.core.Topic> themes)
          
 org.tmapi.core.Variant createVariant(java.lang.String value, org.tmapi.core.Locator datatype, java.util.Collection<org.tmapi.core.Topic> themes)
          
 org.tmapi.core.Variant createVariant(java.lang.String value, org.tmapi.core.Locator datatype, org.tmapi.core.Topic... themes)
          
 org.tmapi.core.Variant createVariant(java.lang.String value, org.tmapi.core.Topic... themes)
          
 long getNumberOfVariants()
          
 de.topicmapslab.majortom.model.core.ITopic getParent()
          
 org.tmapi.core.Topic getType()
          
 java.lang.String getValue()
          
 java.util.Set<org.tmapi.core.Variant> getVariants()
          
 java.util.List<org.tmapi.core.Variant> getVariants(int offset, int limit)
          
 java.util.List<org.tmapi.core.Variant> getVariants(int offset, int limit, java.util.Comparator<org.tmapi.core.Variant> comparator)
          
 java.util.Set<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope scope)
          
 void setType(org.tmapi.core.Topic type)
          
 void setValue(java.lang.String value)
          
 java.lang.String toString()
          
 
Methods inherited from class de.topicmapslab.majortom.core.ScopeableImpl
addTheme, getScope, getScopeObject, removeTheme
 
Methods inherited from class de.topicmapslab.majortom.core.ReifiableImpl
getReifier, setReifier
 
Methods inherited from class de.topicmapslab.majortom.core.ConstructImpl
addItemIdentifier, compareTo, equals, getId, getIdentity, getItemIdentifiers, getTopicMap, hashCode, isRemoved, longId, remove, remove, removeItemIdentifier, setRemoved
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IScopable
getScopeObject, getTopicMap
 
Methods inherited from interface org.tmapi.core.Scoped
addTheme, getScope, removeTheme
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IConstruct
isRemoved, longId, remove
 
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, getItemIdentifiers, hashCode, remove, removeItemIdentifier
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.tmapi.core.Reifiable
getReifier, setReifier
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

NameImpl

protected NameImpl(de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity identity,
                   de.topicmapslab.majortom.model.core.ITopic parent)
constructor

Parameters:
identity - the ITopicMapStoreIdentity
parent - the parent topic
Method Detail

createVariant

public org.tmapi.core.Variant createVariant(java.lang.String value,
                                            org.tmapi.core.Topic... themes)
                                     throws org.tmapi.core.ModelConstraintException

Specified by:
createVariant in interface org.tmapi.core.Name
Throws:
org.tmapi.core.ModelConstraintException

createVariant

public org.tmapi.core.Variant createVariant(java.lang.String value,
                                            java.util.Collection<org.tmapi.core.Topic> themes)
                                     throws org.tmapi.core.ModelConstraintException

Specified by:
createVariant in interface org.tmapi.core.Name
Throws:
org.tmapi.core.ModelConstraintException

createVariant

public org.tmapi.core.Variant createVariant(org.tmapi.core.Locator value,
                                            org.tmapi.core.Topic... themes)
                                     throws org.tmapi.core.ModelConstraintException

Specified by:
createVariant in interface org.tmapi.core.Name
Throws:
org.tmapi.core.ModelConstraintException

createVariant

public org.tmapi.core.Variant createVariant(org.tmapi.core.Locator value,
                                            java.util.Collection<org.tmapi.core.Topic> themes)
                                     throws org.tmapi.core.ModelConstraintException

Specified by:
createVariant in interface org.tmapi.core.Name
Throws:
org.tmapi.core.ModelConstraintException

createVariant

public org.tmapi.core.Variant createVariant(java.lang.String value,
                                            org.tmapi.core.Locator datatype,
                                            org.tmapi.core.Topic... themes)
                                     throws org.tmapi.core.ModelConstraintException

Specified by:
createVariant in interface org.tmapi.core.Name
Throws:
org.tmapi.core.ModelConstraintException

createVariant

public org.tmapi.core.Variant createVariant(java.lang.String value,
                                            org.tmapi.core.Locator datatype,
                                            java.util.Collection<org.tmapi.core.Topic> themes)
                                     throws org.tmapi.core.ModelConstraintException

Specified by:
createVariant in interface org.tmapi.core.Name
Throws:
org.tmapi.core.ModelConstraintException

getVariants

public java.util.Set<org.tmapi.core.Variant> getVariants()

Specified by:
getVariants in interface org.tmapi.core.Name

getVariants

public java.util.Set<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getVariants in interface de.topicmapslab.majortom.model.core.IName

setType

public void setType(org.tmapi.core.Topic type)

Specified by:
setType in interface org.tmapi.core.Typed

getType

public org.tmapi.core.Topic getType()

Specified by:
getType in interface org.tmapi.core.Typed

getParent

public de.topicmapslab.majortom.model.core.ITopic getParent()

Specified by:
getParent in interface de.topicmapslab.majortom.model.core.IName
Specified by:
getParent in interface org.tmapi.core.Construct
Specified by:
getParent in interface org.tmapi.core.Name
Overrides:
getParent in class ConstructImpl

setValue

public void setValue(java.lang.String value)
              throws org.tmapi.core.ModelConstraintException

Specified by:
setValue in interface org.tmapi.core.Name
Throws:
org.tmapi.core.ModelConstraintException

getValue

public java.lang.String getValue()

Specified by:
getValue in interface org.tmapi.core.Name

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

getVariants

public java.util.List<org.tmapi.core.Variant> getVariants(int offset,
                                                          int limit)

Specified by:
getVariants in interface de.topicmapslab.majortom.model.core.paged.IPagedName

getVariants

public java.util.List<org.tmapi.core.Variant> getVariants(int offset,
                                                          int limit,
                                                          java.util.Comparator<org.tmapi.core.Variant> comparator)

Specified by:
getVariants in interface de.topicmapslab.majortom.model.core.paged.IPagedName

getNumberOfVariants

public long getNumberOfVariants()

Specified by:
getNumberOfVariants in interface de.topicmapslab.majortom.model.core.paged.IPagedName