org.jibx.binding.model
Class AttributeBase

java.lang.Object
  extended by org.jibx.binding.model.AttributeBase
Direct Known Subclasses:
NameAttributes, NestingAttributes, ObjectAttributes, PropertyAttributes, StringAttributes, StructureAttributes

public abstract class AttributeBase
extends java.lang.Object

Base class for all attribute group structures in binding definition model. This just provides the basic validation hooks.

Version:
1.0
Author:
Dennis M. Sosnoski

Constructor Summary
AttributeBase()
           
 
Method Summary
 void prevalidate(ValidationContext vctx)
          Prevalidate attribute information.
 void validate(ValidationContext vctx)
          Validate attribute information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeBase

public AttributeBase()
Method Detail

prevalidate

public void prevalidate(ValidationContext vctx)
Prevalidate attribute information. The prevalidation step is used to check attribute values in isolation, such as the settings for enumerated values and class file information. This empty base class implementation should be overridden by each subclass that requires prevalidation handling.

Parameters:
vctx - validation context

validate

public void validate(ValidationContext vctx)
Validate attribute information. The validation step is used for checking the interactions between attributes, such as references to named elements and namespace usage. The prevalidate(org.jibx.binding.model.ValidationContext) method will always be called for every component in the binding definition before this method is called for any component. This empty base class implementation should be overridden by each subclass that requires validation handling.

Parameters:
vctx - validation context


Project Web Site