org.openanzo.owl.dataset
Class RestrictionListenerAdapter

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

public class RestrictionListenerAdapter
extends java.lang.Object
implements RestrictionListener

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


Constructor Summary
RestrictionListenerAdapter()
           
 
Method Summary
 void allValuesFromAdded(Restriction source, DatasetThing newValue)
          Called when a value of allValuesFrom has been added
 void allValuesFromRemoved(Restriction source, DatasetThing oldValue)
          Called when a value of allValuesFrom has been removed
 void cardinalityAdded(Restriction source, java.lang.Integer newValue)
          Called when a value of cardinality has been added
 void cardinalityRemoved(Restriction source, java.lang.Integer oldValue)
          Called when a value of cardinality has been removed
 void hasValueChanged(Restriction source)
          Called when hasValue has changed
 void maxCardinalityAdded(Restriction source, java.lang.Integer newValue)
          Called when a value of maxCardinality has been added
 void maxCardinalityRemoved(Restriction source, java.lang.Integer oldValue)
          Called when a value of maxCardinality has been removed
 void minCardinalityAdded(Restriction source, java.lang.Integer newValue)
          Called when a value of minCardinality has been added
 void minCardinalityRemoved(Restriction source, java.lang.Integer oldValue)
          Called when a value of minCardinality has been removed
 void onPropertyChanged(Restriction source)
          Called when onProperty has changed
 void someValuesFromAdded(Restriction source, DatasetThing newValue)
          Called when a value of someValuesFrom has been added
 void someValuesFromRemoved(Restriction source, DatasetThing oldValue)
          Called when a value of someValuesFrom has been removed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestrictionListenerAdapter

public RestrictionListenerAdapter()
Method Detail

cardinalityAdded

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

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

cardinalityRemoved

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

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

maxCardinalityAdded

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

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

maxCardinalityRemoved

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

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

minCardinalityAdded

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

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

minCardinalityRemoved

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

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

onPropertyChanged

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

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

hasValueChanged

public void hasValueChanged(Restriction source)
Called when hasValue has changed

Specified by:
hasValueChanged in interface RestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.Restriction

allValuesFromAdded

public void allValuesFromAdded(Restriction source,
                               DatasetThing newValue)
Called when a value of allValuesFrom has been added

Specified by:
allValuesFromAdded in interface RestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.Restriction
newValue - the object representing the new value

allValuesFromRemoved

public void allValuesFromRemoved(Restriction source,
                                 DatasetThing oldValue)
Called when a value of allValuesFrom has been removed

Specified by:
allValuesFromRemoved in interface RestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.Restriction
oldValue - the object representing the removed value

someValuesFromAdded

public void someValuesFromAdded(Restriction source,
                                DatasetThing newValue)
Called when a value of someValuesFrom has been added

Specified by:
someValuesFromAdded in interface RestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.Restriction
newValue - the object representing the new value

someValuesFromRemoved

public void someValuesFromRemoved(Restriction source,
                                  DatasetThing oldValue)
Called when a value of someValuesFrom has been removed

Specified by:
someValuesFromRemoved in interface RestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.Restriction
oldValue - the object representing the removed value


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