de.topicmapslab.majortom.revision
Class RevisionImpl

java.lang.Object
  extended by de.topicmapslab.majortom.revision.RevisionImpl
All Implemented Interfaces:
de.topicmapslab.majortom.model.revision.IRevision, java.lang.Comparable<de.topicmapslab.majortom.model.revision.IRevision>

public abstract class RevisionImpl
extends java.lang.Object
implements de.topicmapslab.majortom.model.revision.IRevision, java.lang.Comparable<de.topicmapslab.majortom.model.revision.IRevision>

Base implementation of IRevision


Field Summary
private  long id
           
private  de.topicmapslab.majortom.model.store.ITopicMapStore store
           
 
Constructor Summary
RevisionImpl(de.topicmapslab.majortom.model.store.ITopicMapStore store, long id)
          constructor
 
Method Summary
 void addMetaData(java.lang.String key, java.lang.String value)
          
 int compareTo(de.topicmapslab.majortom.model.revision.IRevision o)
          
 de.topicmapslab.majortom.model.revision.Changeset getChangeset()
          
 de.topicmapslab.majortom.model.event.TopicMapEventType getChangesetType()
          
 de.topicmapslab.majortom.model.revision.IRevision getFuture()
          
 long getId()
          
 java.util.Map<java.lang.String,java.lang.String> getMetadata()
          
 java.lang.String getMetaData(java.lang.String key)
          
 de.topicmapslab.majortom.model.revision.IRevision getPast()
          
 java.util.Calendar getTimestamp()
          
 org.w3c.dom.Node toXml(org.w3c.dom.Document doc)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

store

private final de.topicmapslab.majortom.model.store.ITopicMapStore store

id

private final long id
Constructor Detail

RevisionImpl

public RevisionImpl(de.topicmapslab.majortom.model.store.ITopicMapStore store,
                    long id)
constructor

Parameters:
store - the parent store
id - the version number
Method Detail

getTimestamp

public java.util.Calendar getTimestamp()

Specified by:
getTimestamp in interface de.topicmapslab.majortom.model.revision.IRevision

getFuture

public de.topicmapslab.majortom.model.revision.IRevision getFuture()

Specified by:
getFuture in interface de.topicmapslab.majortom.model.revision.IRevision

getPast

public de.topicmapslab.majortom.model.revision.IRevision getPast()

Specified by:
getPast in interface de.topicmapslab.majortom.model.revision.IRevision

getChangeset

public de.topicmapslab.majortom.model.revision.Changeset getChangeset()

Specified by:
getChangeset in interface de.topicmapslab.majortom.model.revision.IRevision

addMetaData

public void addMetaData(java.lang.String key,
                        java.lang.String value)

Specified by:
addMetaData in interface de.topicmapslab.majortom.model.revision.IRevision

getMetadata

public java.util.Map<java.lang.String,java.lang.String> getMetadata()

Specified by:
getMetadata in interface de.topicmapslab.majortom.model.revision.IRevision

getMetaData

public java.lang.String getMetaData(java.lang.String key)

Specified by:
getMetaData in interface de.topicmapslab.majortom.model.revision.IRevision

getId

public long getId()

Specified by:
getId in interface de.topicmapslab.majortom.model.revision.IRevision

compareTo

public int compareTo(de.topicmapslab.majortom.model.revision.IRevision o)

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

toXml

public org.w3c.dom.Node toXml(org.w3c.dom.Document doc)

Specified by:
toXml in interface de.topicmapslab.majortom.model.revision.IRevision

getChangesetType

public de.topicmapslab.majortom.model.event.TopicMapEventType getChangesetType()

Specified by:
getChangesetType in interface de.topicmapslab.majortom.model.revision.IRevision