Package org.jibx.binding.model
Class AttributeBase
java.lang.Object
org.jibx.binding.model.AttributeBase
- Direct Known Subclasses:
NameAttributes
,NestingAttributes
,ObjectAttributes
,PropertyAttributes
,StringAttributes
,StructureAttributes
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
prevalidate
(ValidationContext vctx) Prevalidate attribute information.void
validate
(ValidationContext vctx) Validate attribute information.
-
Constructor Details
-
AttributeBase
public AttributeBase()
-
-
Method Details
-
prevalidate
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
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
-