org.openanzo.owl.dataset
Class ObjectRestrictionListenerAdapter

java.lang.Object
  extended by org.openanzo.owl.dataset.ObjectRestrictionListenerAdapter
All Implemented Interfaces:
ThingListener, ObjectRestrictionListener

public class ObjectRestrictionListenerAdapter
extends java.lang.Object
implements ObjectRestrictionListener

Implementations of this listener may be registered with instances of org.openanzo.owl.dataset.ObjectRestriction to receive notification when properties changed, added or removed.


Constructor Summary
ObjectRestrictionListenerAdapter()
           
 
Method Summary
 void cardinalityAdded(ObjectRestriction source, java.lang.Integer newValue)
          Called when a value of cardinality has been added
 void cardinalityRemoved(ObjectRestriction source, java.lang.Integer oldValue)
          Called when a value of cardinality has been removed
 void maxCardinalityAdded(ObjectRestriction source, java.lang.Integer newValue)
          Called when a value of maxCardinality has been added
 void maxCardinalityRemoved(ObjectRestriction source, java.lang.Integer oldValue)
          Called when a value of maxCardinality has been removed
 void minCardinalityAdded(ObjectRestriction source, java.lang.Integer newValue)
          Called when a value of minCardinality has been added
 void minCardinalityRemoved(ObjectRestriction source, java.lang.Integer oldValue)
          Called when a value of minCardinality has been removed
 void onClassChanged(ObjectRestriction source)
          Called when onClass has changed
 void onPropertyChanged(ObjectRestriction source)
          Called when onProperty has changed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectRestrictionListenerAdapter

public ObjectRestrictionListenerAdapter()
Method Detail

cardinalityAdded

public void cardinalityAdded(ObjectRestriction source,
                             java.lang.Integer newValue)
Called when a value of cardinality has been added

Specified by:
cardinalityAdded in interface ObjectRestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.ObjectRestriction
newValue - the object representing the new value

cardinalityRemoved

public void cardinalityRemoved(ObjectRestriction source,
                               java.lang.Integer oldValue)
Called when a value of cardinality has been removed

Specified by:
cardinalityRemoved in interface ObjectRestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.ObjectRestriction
oldValue - the object representing the removed value

maxCardinalityAdded

public void maxCardinalityAdded(ObjectRestriction source,
                                java.lang.Integer newValue)
Called when a value of maxCardinality has been added

Specified by:
maxCardinalityAdded in interface ObjectRestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.ObjectRestriction
newValue - the object representing the new value

maxCardinalityRemoved

public void maxCardinalityRemoved(ObjectRestriction source,
                                  java.lang.Integer oldValue)
Called when a value of maxCardinality has been removed

Specified by:
maxCardinalityRemoved in interface ObjectRestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.ObjectRestriction
oldValue - the object representing the removed value

minCardinalityAdded

public void minCardinalityAdded(ObjectRestriction source,
                                java.lang.Integer newValue)
Called when a value of minCardinality has been added

Specified by:
minCardinalityAdded in interface ObjectRestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.ObjectRestriction
newValue - the object representing the new value

minCardinalityRemoved

public void minCardinalityRemoved(ObjectRestriction source,
                                  java.lang.Integer oldValue)
Called when a value of minCardinality has been removed

Specified by:
minCardinalityRemoved in interface ObjectRestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.ObjectRestriction
oldValue - the object representing the removed value

onPropertyChanged

public void onPropertyChanged(ObjectRestriction source)
Called when onProperty has changed

Specified by:
onPropertyChanged in interface ObjectRestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.ObjectRestriction

onClassChanged

public void onClassChanged(ObjectRestriction source)
Called when onClass has changed

Specified by:
onClassChanged in interface ObjectRestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.ObjectRestriction


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.