Nodenet Problem Set Javadocs

nodenet.registrar
Class DestinationValidator

java.lang.Object
  extended bynodenet.registrar.DestinationValidator
All Implemented Interfaces:
java.util.EventListener, java.io.Serializable, java.beans.VetoableChangeListener

public class DestinationValidator
extends java.lang.Object
implements java.beans.VetoableChangeListener, java.io.Serializable

A quick implementation of a class that validates destination values for NodeConfigurationBeans. It is a singleton class of which there should never be more than one instance. FIXME: This should be broken out to a strategy pattern similar to the NodeNameRegistry class. This class is not in current use but may be used in future versions.

Version:
$Id: DestinationValidator.java,v 1.6 2004/01/14 20:23:21 gus Exp $
Author:
Patrick G. Heck, gus.heck@olin.edu
See Also:
Serialized Form

Method Summary
static DestinationValidator getInstance()
          Get the one, the only, the DestinationValidator.
 void vetoableChange(java.beans.PropertyChangeEvent pce)
          Decide whether or not to veto a change to the dest property of a NodeConfigurationBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DestinationValidator getInstance()
Get the one, the only, the DestinationValidator.

Returns:
The exact same DestinationValidator object on every call within a given instance of the VM.

vetoableChange

public void vetoableChange(java.beans.PropertyChangeEvent pce)
                    throws java.beans.PropertyVetoException
Decide whether or not to veto a change to the dest property of a NodeConfigurationBean.

Specified by:
vetoableChange in interface java.beans.VetoableChangeListener
Throws:
java.beans.PropertyVetoException

Nodenet Problem Set Javadocs