org.openanzo.owl.dataset
Class DataRestrictionListenerAdapter

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

public class DataRestrictionListenerAdapter
extends java.lang.Object
implements DataRestrictionListener

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


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

Constructor Detail

DataRestrictionListenerAdapter

public DataRestrictionListenerAdapter()
Method Detail

cardinalityAdded

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

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

cardinalityRemoved

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

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

maxCardinalityAdded

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

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

maxCardinalityRemoved

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

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

minCardinalityAdded

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

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

minCardinalityRemoved

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

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

onPropertyChanged

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

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

onDataRangeChanged

public void onDataRangeChanged(DataRestriction source)
Called when onDataRange has changed

Specified by:
onDataRangeChanged in interface DataRestrictionListener
Parameters:
source - the affected instance of org.openanzo.owl.dataset.DataRestriction


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