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


com.saxonica.schema
Class SchemaElement

java.lang.Object
  |
  +--com.saxonica.schema.SchemaElement
All Implemented Interfaces:
java.io.Serializable, javax.xml.transform.SourceLocator
Direct Known Subclasses:
AbstractParticle, AttributeDecl, AttributeGroup, IdentityConstraint, IdentityField, IdentitySelector, Schema, UnknownDef, Wildcard

public abstract class SchemaElement
extends java.lang.Object
implements java.io.Serializable, javax.xml.transform.SourceLocator

The base class for all XML Schema stuctures. Generally represents a schema component in the sense of the XML Schema specification, though the correspondence is not always one to one.

See Also:
Serialized Form

Field Summary
static short ANNOTATION
           
static short ANYTYPE
           
static short APPINFO
           
static short ATTRIBUTE
           
static short ATTRIBUTE_GROUP
           
static short COMPLEX_CONTENT
           
static short COMPLEX_TYPE
           
static short COMPOSITOR
           
static short DOCUMENTATION
           
static short ELEMENT
           
static short FACET
           
static short GROUP
           
static short IDENTITY_FIELD
           
static short IDENTITY_SELECTOR
           
static short KEY
           
static short KEYREF
           
static short LIST
           
static short REDEFINE
           
static short SCHEMA
           
static short SIMPLE_CONTENT
           
static short SIMPLE_TYPE
           
static short UNION
           
static short UNIQUE
           
static short UNKNOWN
           
static short WILDCARD_ATTRIBUTE
           
static short WILDCARD_ELEMENT
           
 
Constructor Summary
SchemaElement()
           
 
Method Summary
 int getColumnNumber()
          Get the column number of the element defining this schema component.
 int getLineNumber()
          Get the line number of the element defining this schema component, within its module.
 java.lang.String getPublicId()
          Get the public ID of the containing module, if known.
abstract  short getStructureType()
          Returns the type of this Schema Structure
 java.lang.String getSystemId()
          Get the system identifier (URI) of the schema module (XML document) containing the definition of this component.
 void setLocator(javax.xml.transform.SourceLocator locator)
          Set the location information for this schema component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANYTYPE

public static final short ANYTYPE
See Also:
Constant Field Values

ANNOTATION

public static final short ANNOTATION
See Also:
Constant Field Values

APPINFO

public static final short APPINFO
See Also:
Constant Field Values

ATTRIBUTE

public static final short ATTRIBUTE
See Also:
Constant Field Values

ATTRIBUTE_GROUP

public static final short ATTRIBUTE_GROUP
See Also:
Constant Field Values

COMPLEX_CONTENT

public static final short COMPLEX_CONTENT
See Also:
Constant Field Values

COMPLEX_TYPE

public static final short COMPLEX_TYPE
See Also:
Constant Field Values

DOCUMENTATION

public static final short DOCUMENTATION
See Also:
Constant Field Values

ELEMENT

public static final short ELEMENT
See Also:
Constant Field Values

FACET

public static final short FACET
See Also:
Constant Field Values

COMPOSITOR

public static final short COMPOSITOR
See Also:
Constant Field Values

IDENTITY_FIELD

public static final short IDENTITY_FIELD
See Also:
Constant Field Values

IDENTITY_SELECTOR

public static final short IDENTITY_SELECTOR
See Also:
Constant Field Values

KEY

public static final short KEY
See Also:
Constant Field Values

KEYREF

public static final short KEYREF
See Also:
Constant Field Values

LIST

public static final short LIST
See Also:
Constant Field Values

GROUP

public static final short GROUP
See Also:
Constant Field Values

REDEFINE

public static final short REDEFINE
See Also:
Constant Field Values

SCHEMA

public static final short SCHEMA
See Also:
Constant Field Values

SIMPLE_CONTENT

public static final short SIMPLE_CONTENT
See Also:
Constant Field Values

SIMPLE_TYPE

public static final short SIMPLE_TYPE
See Also:
Constant Field Values

UNION

public static final short UNION
See Also:
Constant Field Values

UNIQUE

public static final short UNIQUE
See Also:
Constant Field Values

WILDCARD_ATTRIBUTE

public static final short WILDCARD_ATTRIBUTE
See Also:
Constant Field Values

WILDCARD_ELEMENT

public static final short WILDCARD_ELEMENT
See Also:
Constant Field Values

UNKNOWN

public static final short UNKNOWN
See Also:
Constant Field Values
Constructor Detail

SchemaElement

public SchemaElement()
Method Detail

getStructureType

public abstract short getStructureType()
Returns the type of this Schema Structure

Returns:
the type of this Schema Structure. Uses the codes defined by static constants in this module, for example ELEMENT or WILDCARD_ATTRIBUTE.

getSystemId

public java.lang.String getSystemId()
Get the system identifier (URI) of the schema module (XML document) containing the definition of this component.

Specified by:
getSystemId in interface javax.xml.transform.SourceLocator
Returns:
the URI of the containing module.

getPublicId

public java.lang.String getPublicId()
Get the public ID of the containing module, if known.

Specified by:
getPublicId in interface javax.xml.transform.SourceLocator
Returns:
This information is not currently maintained, the method always returns null.

getLineNumber

public int getLineNumber()
Get the line number of the element defining this schema component, within its module. This will be as delivered by the SAX2 parser: that is, the line number of an element is generally the line number on which its start tag ends.

Specified by:
getLineNumber in interface javax.xml.transform.SourceLocator
Returns:
the line number where the relevant element can be found.

getColumnNumber

public int getColumnNumber()
Get the column number of the element defining this schema component.

Specified by:
getColumnNumber in interface javax.xml.transform.SourceLocator
Returns:
-1: this information is not maintained.

setLocator

public void setLocator(javax.xml.transform.SourceLocator locator)
Set the location information for this schema component. For internal use.

Parameters:
locator - the location information.


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