org.jibx.schema
Interface IComponent

All Known Implementing Classes:
AllElement, AnnotatedBase, AnnotationElement, AnnotationItem, AnyAttributeElement, AnyElement, AppInfoElement, AttributeBase, AttributeElement, AttributeGroupElement, AttributeGroupRefElement, ChoiceElement, CommonComplexModification, CommonCompositorBase, CommonCompositorDefinition, CommonContentBase, CommonSimpleModification, CommonTypeDefinition, CommonTypeDerivation, ComplexContentElement, ComplexExtensionElement, ComplexRestrictionElement, ComplexTypeElement, DefRefAttributeGroup, DocumentationElement, ElementElement, FacetElement, FacetElement.Enumeration, FacetElement.FixedFacet, FacetElement.FractionDigits, FacetElement.Length, FacetElement.MaxExclusive, FacetElement.MaxInclusive, FacetElement.MaxLength, FacetElement.MinExclusive, FacetElement.MinInclusive, FacetElement.MinLength, FacetElement.NoFixedFacet, FacetElement.NumFacet, FacetElement.Pattern, FacetElement.TextFacet, FacetElement.TotalDigits, FacetElement.WhiteSpace, FormChoiceAttribute, GroupElement, GroupRefElement, ImportElement, IncludeElement, KeyBase, KeyBase.KeyElement, KeyBase.KeyrefElement, KeyBase.UniqueElement, ListElement, NotationElement, OccursAttributeGroup, OpenAttrBase, RedefineElement, SchemaBase, SchemaElement, SchemaLocationBase, SchemaLocationRequiredBase, SchemaTypes.SchemaSimpleType, SelectionBase, SelectionBase.FieldElement, SelectionBase.SelectorElement, SequenceElement, SimpleContentElement, SimpleExtensionElement, SimpleRestrictionElement, SimpleTypeElement, TypeAttribute, UnionElement, WildcardBase

public interface IComponent

Schema component interface. This just provides validation method hooks. The validation contract says that the prevalidate(ValidationContext) method will always be called for every component in the schema definition before the validate(ValidationContext) method is called for any component. These two methods represent the beginning and end phases of the validation process - other steps (such as registration) may be handled in between these two phases.

Author:
Dennis M. Sosnoski

Field Summary
static java.lang.String SCHEMA_NAMESPACE
          Schema namespace URI.
 
Method Summary
 void prevalidate(ValidationContext vctx)
          Prevalidate component information.
 void validate(ValidationContext vctx)
          Validate component information.
 

Field Detail

SCHEMA_NAMESPACE

static final java.lang.String SCHEMA_NAMESPACE
Schema namespace URI.

See Also:
Constant Field Values
Method Detail

prevalidate

void prevalidate(ValidationContext vctx)
Prevalidate component information. The prevalidation step is used to check isolated aspects of a component, such as the settings for enumerated values.

Parameters:
vctx - validation context

validate

void validate(ValidationContext vctx)
Validate component information. The validation step is used for checking the interactions between components, such as name references to other components. The validation contract says that the prevalidate(ValidationContext) method will always be called for every component in the schema definition before this method is called for any component.

Parameters:
vctx - validation context


Project Web Site