Package org.jibx.binding.model
Class AttributeBase
- java.lang.Object
-
- org.jibx.binding.model.AttributeBase
-
- Direct Known Subclasses:
NameAttributes
,NestingAttributes
,ObjectAttributes
,PropertyAttributes
,StringAttributes
,StructureAttributes
public abstract class AttributeBase extends 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
Constructors Constructor Description AttributeBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
prevalidate(ValidationContext vctx)
Prevalidate attribute information.void
validate(ValidationContext vctx)
Validate attribute information.
-
-
-
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. Theprevalidate(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
-
-