Free Trial - Stylus Studio, The World's Best XML IDE!


com.saxonica.schema
Interface SchemaComponent

All Superinterfaces:
SchemaDeclaration
All Known Implementing Classes:
AttributeDecl, AttributeGroupDecl, AttributeGroupReference, Compositor, ElementDecl, ElementWildcard, Group, SimpleTypeDefinition, UserComplexType

public interface SchemaComponent
extends SchemaDeclaration

A SchemaComponent is an object in a schema. While the schema is being built, a list of such objects is maintained, and on completion, the fixup method is called to resolve forwards references. Subsequently, the validate method is called to invoke validation


Method Summary
 boolean fixup(Schema schema)
          Check references from this component to other components
 boolean validate(Schema schema)
          Checks the validity of this Schema component.
 

Method Detail

fixup

public boolean fixup(Schema schema)
              throws SchemaException
Check references from this component to other components

Parameters:
schema - The schema is used for reporting errors
Returns:
true if all is well, false if errors found
SchemaException

validate

public boolean validate(Schema schema)
                 throws javax.xml.transform.TransformerException
Checks the validity of this Schema component.

Parameters:
schema - if this is not null, any errors that are detected should be reported using the error() method of this schema.
Returns:
true when this Schema definition is valid, otherwise false.
Throws:
javax.xml.transform.TransformerException - if the ErrorListener decides that an error is fatal.


Stylus Studio features integrated development and debugging support for Saxon in the XQuery editor and XSLT editor.