org.sapia.archie.sync
Class SynchronizerAdapter
java.lang.Object
org.sapia.archie.sync.SynchronizerAdapter
- All Implemented Interfaces:
- Synchronizer
public class SynchronizerAdapter
- extends java.lang.Object
- implements Synchronizer
- Author:
- Yanick Duchesne
- Copyright:
- Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
- License:
- Read the license.txt file of the jar or visit the
license page at the Sapia OSS web site
|
Method Summary |
java.lang.Object |
onGetValue(Name nodeAbsolutePath,
NamePart valueName)
Called by a SynchronizedNode when a value could not be found
for a given name. |
void |
onPutValue(Name nodeAbsolutePath,
NamePart valueName,
java.lang.Object obj,
boolean overwrite)
Called when the putValue() method has been called on the
node that owns this instance. |
void |
onRemoveValue(Name nodeAbsolutePath,
NamePart valueName)
Called when the removeValue() method has been called on the
node that owns this instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynchronizerAdapter
public SynchronizerAdapter()
onGetValue
public java.lang.Object onGetValue(Name nodeAbsolutePath,
NamePart valueName)
- Description copied from interface:
Synchronizer
- Called by a
SynchronizedNode when a value could not be found
for a given name. This method should return the object that corresponds
to the given name, or null if it cannot find an object for
the given name.
- Specified by:
onGetValue in interface Synchronizer
- Parameters:
nodeAbsolutePath - the Name corresponding to the absolute path of the node that
could not find a value for the given name.valueName - the NamePart corresponding to the name of the searched object.
- Returns:
- the
Object corresponding to the given name, or null if
no object could be found for the given name. - See Also:
Synchronizer.onGetValue(org.sapia.archie.Name, org.sapia.archie.NamePart)
onPutValue
public void onPutValue(Name nodeAbsolutePath,
NamePart valueName,
java.lang.Object obj,
boolean overwrite)
- Description copied from interface:
Synchronizer
- Called when the
putValue() method has been called on the
node that owns this instance.
- Specified by:
onPutValue in interface Synchronizer
- Parameters:
nodeAbsolutePath - the Name corresponding to the absolute path of the node
in which a value was put.valueName - the NamePart corresponding to the name of object that was put
into the node.obj - the Object that was put into the node.- See Also:
Synchronizer.onPutValue(org.sapia.archie.Name, org.sapia.archie.NamePart, java.lang.Object, boolean)
onRemoveValue
public void onRemoveValue(Name nodeAbsolutePath,
NamePart valueName)
- Description copied from interface:
Synchronizer
- Called when the
removeValue() method has been called on the
node that owns this instance.
- Specified by:
onRemoveValue in interface Synchronizer
- Parameters:
nodeAbsolutePath - the Name corresponding to the absolute path of the node
from which a value was removed.valueName - the NamePart corresponding to the name of object that was removed
from the node.- See Also:
Synchronizer.onRemoveValue(org.sapia.archie.Name, org.sapia.archie.NamePart)
Copyright © 2010 Sapia OSS. All Rights Reserved.