de.topicmapslab.majortom.revision.core
Class ReadOnlyConstruct

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

public abstract class ReadOnlyConstruct
extends java.lang.Object
implements de.topicmapslab.majortom.model.core.IConstruct

Read only implementation of a construct

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private  long id
           
private static long serialVersionUID
           
private  de.topicmapslab.majortom.model.core.ITopicMap topicMap
           
 
Constructor Summary
protected ReadOnlyConstruct(de.topicmapslab.majortom.model.core.IConstruct clone)
          constructor
 
Method Summary
 void addItemIdentifier(org.tmapi.core.Locator arg0)
          
 int compareTo(de.topicmapslab.majortom.model.core.IConstruct o)
          
 boolean equals(java.lang.Object obj)
          
 java.lang.String getId()
          
 de.topicmapslab.majortom.model.core.ITopicMap getTopicMap()
          
 int hashCode()
          
 boolean isRemoved()
          
 long longId()
          
 void remove()
          
 void remove(boolean cascade)
          
 void removeItemIdentifier(org.tmapi.core.Locator arg0)
          
 void setRemoved(boolean removed)
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tmapi.core.Construct
getItemIdentifiers, getParent
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

id

private long id

topicMap

private de.topicmapslab.majortom.model.core.ITopicMap topicMap
Constructor Detail

ReadOnlyConstruct

protected ReadOnlyConstruct(de.topicmapslab.majortom.model.core.IConstruct clone)
constructor

Parameters:
clone - the construct to clone
Method Detail

getTopicMap

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

Specified by:
getTopicMap in interface de.topicmapslab.majortom.model.core.IConstruct
Specified by:
getTopicMap in interface org.tmapi.core.Construct

getId

public java.lang.String getId()

Specified by:
getId in interface org.tmapi.core.Construct

longId

public long longId()

Specified by:
longId in interface de.topicmapslab.majortom.model.core.IConstruct

remove

public void remove()

Specified by:
remove in interface org.tmapi.core.Construct

remove

public void remove(boolean cascade)
            throws org.tmapi.core.TopicInUseException

Specified by:
remove in interface de.topicmapslab.majortom.model.core.IConstruct
Throws:
org.tmapi.core.TopicInUseException

addItemIdentifier

public void addItemIdentifier(org.tmapi.core.Locator arg0)
                       throws org.tmapi.core.ModelConstraintException

Specified by:
addItemIdentifier in interface org.tmapi.core.Construct
Throws:
org.tmapi.core.ModelConstraintException

removeItemIdentifier

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

Specified by:
removeItemIdentifier in interface org.tmapi.core.Construct

compareTo

public int compareTo(de.topicmapslab.majortom.model.core.IConstruct o)

Specified by:
compareTo in interface java.lang.Comparable<de.topicmapslab.majortom.model.core.IConstruct>

equals

public boolean equals(java.lang.Object obj)

Specified by:
equals in interface org.tmapi.core.Construct
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Specified by:
hashCode in interface org.tmapi.core.Construct
Overrides:
hashCode in class java.lang.Object

isRemoved

public boolean isRemoved()

Specified by:
isRemoved in interface de.topicmapslab.majortom.model.core.IConstruct

setRemoved

public void setRemoved(boolean removed)