net.sf.saxon.type
Interface SchemaDeclaration

All Known Implementing Classes:
AttributeDecl, ElementDecl

public interface SchemaDeclaration

This is a marker interface that acts as a surrogate for an object representing a global element or attribute declaration. The real implementation of these declarations is available in the schema-aware version of the Saxon product.


Method Summary
 SchemaType getType()
          Get the simple or complex type associated with the element or attribute declaration
 NodeTest makeSchemaNodeTest()
          Create a NodeTest that implements the semantics of schema-element(name) or schema-attribute(name) applied to this element or attribute declaration.
 

Method Detail

getType

public SchemaType getType()
Get the simple or complex type associated with the element or attribute declaration

Returns:
the simple or complex type

makeSchemaNodeTest

public NodeTest makeSchemaNodeTest()
Create a NodeTest that implements the semantics of schema-element(name) or schema-attribute(name) applied to this element or attribute declaration.