de.topicmapslab.majortom.revision.core
Class ReadOnlyTopic

java.lang.Object
  extended by de.topicmapslab.majortom.revision.core.ReadOnlyConstruct
      extended by de.topicmapslab.majortom.revision.core.ReadOnlyTopic
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.IConstruct, de.topicmapslab.majortom.model.core.ITopic, java.io.Serializable, java.lang.Comparable<de.topicmapslab.majortom.model.core.IConstruct>, org.tmapi.core.Construct, org.tmapi.core.Topic
Direct Known Subclasses:
InMemoryReadOnlyTopic, JdbcReadOnlyTopic

public abstract class ReadOnlyTopic
extends ReadOnlyConstruct
implements de.topicmapslab.majortom.model.core.ITopic

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
ReadOnlyTopic(de.topicmapslab.majortom.model.core.ITopic clone)
          constructor
 
Method Summary
 void addSubjectIdentifier(org.tmapi.core.Locator arg0)
          
 void addSubjectLocator(org.tmapi.core.Locator arg0)
          
 void addSupertype(org.tmapi.core.Topic type)
          
 void addType(org.tmapi.core.Topic arg0)
          
 org.tmapi.core.Name createName(java.lang.String arg0, java.util.Collection<org.tmapi.core.Topic> arg1)
          
 org.tmapi.core.Name createName(java.lang.String arg0, org.tmapi.core.Topic... arg1)
          
 org.tmapi.core.Name createName(org.tmapi.core.Topic arg0, java.lang.String arg1, java.util.Collection<org.tmapi.core.Topic> arg2)
          
 org.tmapi.core.Name createName(org.tmapi.core.Topic arg0, java.lang.String arg1, org.tmapi.core.Topic... arg2)
          
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0, org.tmapi.core.Locator arg1, java.util.Collection<org.tmapi.core.Topic> arg2)
          
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0, org.tmapi.core.Locator arg1, org.tmapi.core.Topic... arg2)
          
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0, java.lang.String arg1, java.util.Collection<org.tmapi.core.Topic> arg2)
          
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0, java.lang.String arg1, org.tmapi.core.Locator arg2, java.util.Collection<org.tmapi.core.Topic> arg3)
          
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0, java.lang.String arg1, org.tmapi.core.Locator arg2, org.tmapi.core.Topic... arg3)
          
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0, java.lang.String arg1, org.tmapi.core.Topic... arg2)
          
 java.util.Collection<org.tmapi.core.Association> getAssociationsPlayed(de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<org.tmapi.core.Association> getAssociationsPlayed(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Association> getAssociationsPlayed(org.tmapi.core.Topic type, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics()
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Set<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Set<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type, de.topicmapslab.majortom.model.core.IScope scope)
          
 de.topicmapslab.majortom.model.core.ITopicMap getParent()
          
 java.util.Set<org.tmapi.core.Role> getRolesPlayed(org.tmapi.core.Topic type)
          
 java.util.Set<org.tmapi.core.Role> getRolesPlayed(org.tmapi.core.Topic type, org.tmapi.core.Topic assoType)
          
 void mergeIn(org.tmapi.core.Topic arg0)
          
 void removeSubjectIdentifier(org.tmapi.core.Locator arg0)
          
 void removeSubjectLocator(org.tmapi.core.Locator arg0)
          
 void removeSupertype(org.tmapi.core.Topic type)
          
 void removeType(org.tmapi.core.Topic arg0)
          
 
Methods inherited from class de.topicmapslab.majortom.revision.core.ReadOnlyConstruct
addItemIdentifier, compareTo, equals, getId, getTopicMap, hashCode, isRemoved, longId, remove, remove, removeItemIdentifier, setRemoved
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.topicmapslab.majortom.model.core.ITopic
getAssociationsPlayed, getBestIdentifier, getBestLabel, getBestLabel, getBestLabel, getSupertypes
 
Methods inherited from interface org.tmapi.core.Topic
addItemIdentifier, getNames, getOccurrences, getReified, getRolesPlayed, getSubjectIdentifiers, getSubjectLocators, getTypes, remove
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IConstruct
getTopicMap, isRemoved, longId, remove
 
Methods inherited from interface org.tmapi.core.Construct
equals, getId, getItemIdentifiers, hashCode, removeItemIdentifier
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

serialVersionUID

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

ReadOnlyTopic

public ReadOnlyTopic(de.topicmapslab.majortom.model.core.ITopic clone)
constructor

Parameters:
clone - the topic to clone
parent -
Method Detail

getParent

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

Specified by:
getParent in interface de.topicmapslab.majortom.model.core.ITopic
Specified by:
getParent in interface org.tmapi.core.Construct
Specified by:
getParent in interface org.tmapi.core.Topic

addSupertype

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

Specified by:
addSupertype in interface de.topicmapslab.majortom.model.core.ITopic

getAssociationsPlayed

public java.util.Collection<org.tmapi.core.Association> getAssociationsPlayed(org.tmapi.core.Topic type)

Specified by:
getAssociationsPlayed in interface de.topicmapslab.majortom.model.core.ITopic

getAssociationsPlayed

public java.util.Collection<org.tmapi.core.Association> getAssociationsPlayed(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getAssociationsPlayed in interface de.topicmapslab.majortom.model.core.ITopic

getAssociationsPlayed

public java.util.Collection<org.tmapi.core.Association> getAssociationsPlayed(org.tmapi.core.Topic type,
                                                                              de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getAssociationsPlayed in interface de.topicmapslab.majortom.model.core.ITopic

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics()

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.core.ITopic

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.core.ITopic

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.core.ITopic

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type,
                                                                                                     de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.core.ITopic

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type,
                                                          de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getNames in interface de.topicmapslab.majortom.model.core.ITopic

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getNames in interface de.topicmapslab.majortom.model.core.ITopic

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type,
                                                                      de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.core.ITopic

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.core.ITopic

removeSupertype

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

Specified by:
removeSupertype in interface de.topicmapslab.majortom.model.core.ITopic

addSubjectIdentifier

public void addSubjectIdentifier(org.tmapi.core.Locator arg0)
                          throws org.tmapi.core.IdentityConstraintException,
                                 org.tmapi.core.ModelConstraintException

Specified by:
addSubjectIdentifier in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.IdentityConstraintException
org.tmapi.core.ModelConstraintException

addSubjectLocator

public void addSubjectLocator(org.tmapi.core.Locator arg0)
                       throws org.tmapi.core.IdentityConstraintException,
                              org.tmapi.core.ModelConstraintException

Specified by:
addSubjectLocator in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.IdentityConstraintException
org.tmapi.core.ModelConstraintException

addType

public void addType(org.tmapi.core.Topic arg0)
             throws org.tmapi.core.ModelConstraintException

Specified by:
addType in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createName

public org.tmapi.core.Name createName(java.lang.String arg0,
                                      org.tmapi.core.Topic... arg1)
                               throws org.tmapi.core.ModelConstraintException

Specified by:
createName in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createName

public org.tmapi.core.Name createName(java.lang.String arg0,
                                      java.util.Collection<org.tmapi.core.Topic> arg1)
                               throws org.tmapi.core.ModelConstraintException

Specified by:
createName in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createName

public org.tmapi.core.Name createName(org.tmapi.core.Topic arg0,
                                      java.lang.String arg1,
                                      org.tmapi.core.Topic... arg2)
                               throws org.tmapi.core.ModelConstraintException

Specified by:
createName in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createName

public org.tmapi.core.Name createName(org.tmapi.core.Topic arg0,
                                      java.lang.String arg1,
                                      java.util.Collection<org.tmapi.core.Topic> arg2)
                               throws org.tmapi.core.ModelConstraintException

Specified by:
createName in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0,
                                                  java.lang.String arg1,
                                                  org.tmapi.core.Topic... arg2)
                                           throws org.tmapi.core.ModelConstraintException

Specified by:
createOccurrence in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0,
                                                  java.lang.String arg1,
                                                  java.util.Collection<org.tmapi.core.Topic> arg2)
                                           throws org.tmapi.core.ModelConstraintException

Specified by:
createOccurrence in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0,
                                                  org.tmapi.core.Locator arg1,
                                                  org.tmapi.core.Topic... arg2)
                                           throws org.tmapi.core.ModelConstraintException

Specified by:
createOccurrence in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0,
                                                  org.tmapi.core.Locator arg1,
                                                  java.util.Collection<org.tmapi.core.Topic> arg2)
                                           throws org.tmapi.core.ModelConstraintException

Specified by:
createOccurrence in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0,
                                                  java.lang.String arg1,
                                                  org.tmapi.core.Locator arg2,
                                                  org.tmapi.core.Topic... arg3)
                                           throws org.tmapi.core.ModelConstraintException

Specified by:
createOccurrence in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic arg0,
                                                  java.lang.String arg1,
                                                  org.tmapi.core.Locator arg2,
                                                  java.util.Collection<org.tmapi.core.Topic> arg3)
                                           throws org.tmapi.core.ModelConstraintException

Specified by:
createOccurrence in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

getNames

public java.util.Set<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type)

Specified by:
getNames in interface org.tmapi.core.Topic

getOccurrences

public java.util.Set<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type)

Specified by:
getOccurrences in interface org.tmapi.core.Topic

getRolesPlayed

public java.util.Set<org.tmapi.core.Role> getRolesPlayed(org.tmapi.core.Topic type)

Specified by:
getRolesPlayed in interface org.tmapi.core.Topic

getRolesPlayed

public java.util.Set<org.tmapi.core.Role> getRolesPlayed(org.tmapi.core.Topic type,
                                                         org.tmapi.core.Topic assoType)

Specified by:
getRolesPlayed in interface org.tmapi.core.Topic

mergeIn

public void mergeIn(org.tmapi.core.Topic arg0)
             throws org.tmapi.core.ModelConstraintException

Specified by:
mergeIn in interface org.tmapi.core.Topic
Throws:
org.tmapi.core.ModelConstraintException

removeSubjectIdentifier

public void removeSubjectIdentifier(org.tmapi.core.Locator arg0)

Specified by:
removeSubjectIdentifier in interface org.tmapi.core.Topic

removeSubjectLocator

public void removeSubjectLocator(org.tmapi.core.Locator arg0)

Specified by:
removeSubjectLocator in interface org.tmapi.core.Topic

removeType

public void removeType(org.tmapi.core.Topic arg0)

Specified by:
removeType in interface org.tmapi.core.Topic