org.semanticweb.kaon2.api
Class OntologyChangeEvent

java.lang.Object
  extended by org.semanticweb.kaon2.api.OntologyChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class OntologyChangeEvent
extends java.lang.Object
implements java.io.Serializable

The information about a change in the ontology.

See Also:
Serialized Form

Nested Class Summary
static class OntologyChangeEvent.ChangeType
          The type of change.
 
Field Summary
protected  Axiom m_axiom
          The axiom.
protected  OntologyChangeEvent.ChangeType m_changeType
          The type of change.
 
Constructor Summary
OntologyChangeEvent(Axiom axiom, OntologyChangeEvent.ChangeType changeType)
          Creates an instance of this class.
 
Method Summary
 boolean equals(java.lang.Object that)
          Overridden to allow for easy comparison of events.
 Axiom getAxiom()
          Returns the axiom that was added or removed.
 OntologyChangeEvent.ChangeType getChangeType()
          Returns the type of change.
 int hashCode()
          Overridden to provide adequate hashcodes.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_axiom

protected final Axiom m_axiom
The axiom.


m_changeType

protected final OntologyChangeEvent.ChangeType m_changeType
The type of change.

Constructor Detail

OntologyChangeEvent

public OntologyChangeEvent(Axiom axiom,
                           OntologyChangeEvent.ChangeType changeType)
Creates an instance of this class.

Method Detail

getAxiom

public Axiom getAxiom()
Returns the axiom that was added or removed.

Returns:
the axiom that was added or removed

getChangeType

public OntologyChangeEvent.ChangeType getChangeType()
Returns the type of change.

Returns:
the type of change

equals

public boolean equals(java.lang.Object that)
Overridden to allow for easy comparison of events.

Overrides:
equals in class java.lang.Object
Parameters:
that - the other event

hashCode

public int hashCode()
Overridden to provide adequate hashcodes.

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode