de.topicmapslab.majortom.revision
Class RevisionChangeImpl

java.lang.Object
  extended by de.topicmapslab.majortom.revision.RevisionChangeImpl
All Implemented Interfaces:
de.topicmapslab.majortom.model.revision.IRevisionChange

public class RevisionChangeImpl
extends java.lang.Object
implements de.topicmapslab.majortom.model.revision.IRevisionChange

Base implementation of IRevisionChange

Author:
Sven Krosse

Field Summary
private  de.topicmapslab.majortom.model.core.IConstruct context
           
private  java.lang.Object newValue
           
private  java.lang.Object oldValue
           
private  de.topicmapslab.majortom.model.revision.IRevision revision
           
private  de.topicmapslab.majortom.model.event.TopicMapEventType type
           
 
Constructor Summary
RevisionChangeImpl(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.event.TopicMapEventType type, de.topicmapslab.majortom.model.core.IConstruct context, java.lang.Object newValue, java.lang.Object oldValue)
          constructor
 
Method Summary
 de.topicmapslab.majortom.model.core.IConstruct getContext()
          
 java.lang.Object getNewValue()
          
 java.lang.Object getOldValue()
          
 de.topicmapslab.majortom.model.revision.IRevision getRevision()
          
 de.topicmapslab.majortom.model.event.TopicMapEventType getType()
          
 java.lang.String toString()
          
 org.w3c.dom.Node toXml(org.w3c.dom.Document doc)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

revision

private final de.topicmapslab.majortom.model.revision.IRevision revision

oldValue

private final java.lang.Object oldValue

newValue

private final java.lang.Object newValue

context

private final de.topicmapslab.majortom.model.core.IConstruct context

type

private final de.topicmapslab.majortom.model.event.TopicMapEventType type
Constructor Detail

RevisionChangeImpl

public RevisionChangeImpl(de.topicmapslab.majortom.model.revision.IRevision revision,
                          de.topicmapslab.majortom.model.event.TopicMapEventType type,
                          de.topicmapslab.majortom.model.core.IConstruct context,
                          java.lang.Object newValue,
                          java.lang.Object oldValue)
constructor

Parameters:
revision - the revision
type - the kind of change
context - the context of change
newValue - the new value
oldValue - the old value
Method Detail

getContext

public de.topicmapslab.majortom.model.core.IConstruct getContext()

Specified by:
getContext in interface de.topicmapslab.majortom.model.revision.IRevisionChange

getNewValue

public java.lang.Object getNewValue()

Specified by:
getNewValue in interface de.topicmapslab.majortom.model.revision.IRevisionChange

getOldValue

public java.lang.Object getOldValue()

Specified by:
getOldValue in interface de.topicmapslab.majortom.model.revision.IRevisionChange

getType

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

Specified by:
getType in interface de.topicmapslab.majortom.model.revision.IRevisionChange

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

toXml

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

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

getRevision

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

Specified by:
getRevision in interface de.topicmapslab.majortom.model.revision.IRevisionChange