org.mbari.siam.distributed
Interface AttributeChecker


public interface AttributeChecker

AttributeChecker has callbacks that are invoked as attributes are parsed.


Method Summary
 void checkXXXXValues()
          Called when all attributes have been parsed.
 void missingAttributeCallback(java.lang.String attributeName)
          Called when specified attribute was not found.
 void setFieldCallback(java.lang.String attributeName, java.lang.String valueString)
          Called when specified attribute has been found.
 

Method Detail

missingAttributeCallback

void missingAttributeCallback(java.lang.String attributeName)
                              throws MissingPropertyException
Called when specified attribute was not found. Throw MissingPropertyException if specified attribute is mandatory.

Parameters:
attributeName - name of missing attribute
Throws:
MissingPropertyException

setFieldCallback

void setFieldCallback(java.lang.String attributeName,
                      java.lang.String valueString)
                      throws InvalidPropertyException
Called when specified attribute has been found. Throw InvalidPropertyException if specified attribute has invalid value.

Parameters:
attributeName - name of parsed attribute
Throws:
InvalidPropertyException

checkXXXXValues

void checkXXXXValues()
                     throws InvalidPropertyException
Called when all attributes have been parsed. Throw InvalidPropertyException if any invalid attribute values found

Throws:
InvalidPropertyException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.