public abstract class SchemaStructure extends Object implements Serializable, SourceLocator
Constructor and Description |
---|
SchemaStructure() |
Modifier and Type | Method and Description |
---|---|
void |
elaborate(SchemaCompiler compiler)
Elaborate the schema component: after reloading a serialized schema component model,
this expands the component with derived information needed during validation episodes.
|
boolean |
fixup(SchemaCompiler compiler)
Fixup references from this schema component to others
|
int |
getColumnNumber()
Get the column number of the element defining this schema component.
|
EnterpriseConfiguration |
getConfiguration()
Get the schema containing this structure
|
int |
getFixupStatus()
Get the current fixup status
|
int |
getLineNumber()
Get the line number of the element defining this schema component, within its
module.
|
String |
getPublicId()
Get the public ID of the containing module, if known.
|
int |
getRedefinitionLevel()
Get the redefinition level.
|
String |
getSchemaDocumentURI()
Get the base URI of the containing xs:schema element.
|
String |
getSystemId()
Get the system identifier (URI) of the schema module (XML document) containing
the definition of this component.
|
int |
getValidationStatus()
Get the current validation status
|
void |
lookForCycles(Stack references,
SchemaCompiler compiler)
This method is called to look for cycles.
|
protected static FunctionItem |
makeXPathExpressionPropertyRecord(String conditionText,
NamespaceResolver nsResolver,
String baseURI)
Helper method to make an XPathExpression property record
|
void |
setConfiguration(EnterpriseConfiguration config)
Set the configuration containing this structure
|
void |
setFixupStatus(int status)
Set the fixup status
|
void |
setLineNumber(int lineNumber)
Set the line number
|
void |
setLocator(SourceLocator locator)
Set the location information for this schema component.
|
void |
setRedefinitionLevel(int level)
Set the redefinition level.
|
void |
setSchemaDocumentURI(String uri)
Set the base URI of the containing xs:schema element.
|
void |
setSystemId(String systemId)
Set the system Id
|
void |
setValidationStatus(int status)
Set the validation status
|
public String getSystemId()
getSystemId
in interface SourceLocator
public String getPublicId()
getPublicId
in interface SourceLocator
public int getLineNumber()
getLineNumber
in interface SourceLocator
public int getColumnNumber()
getColumnNumber
in interface SourceLocator
public void setLocator(SourceLocator locator)
locator
- the location information.public void setSystemId(String systemId)
systemId
- the systemId (the URI of the schema document in which the component is declared)public void setLineNumber(int lineNumber)
lineNumber
- the line number of the declaration of the component within its schema documentpublic void setSchemaDocumentURI(String uri)
uri
- the base URI of the schema documentpublic String getSchemaDocumentURI()
public int getValidationStatus()
public void setValidationStatus(int status)
status
- an integer code indicating whether validation has not yet been started, is underway,
has completed successfully, or has completed unsuccessfullypublic int getFixupStatus()
public void setFixupStatus(int status)
status
- an integer code indicating whether fixup of component references has not yet been started, is underway,
has completed successfully, or has completed unsuccessfullypublic void setConfiguration(EnterpriseConfiguration config)
config
- the Saxon configurationpublic EnterpriseConfiguration getConfiguration()
public void setRedefinitionLevel(int level)
level
- the redefinition levelpublic int getRedefinitionLevel()
public void lookForCycles(Stack references, SchemaCompiler compiler) throws SchemaException, UnresolvedReferenceException
references
- A stack of objects that contain direct or indirect references
to this object, and that must therefore not be referred to from this object.compiler
- the schema compilerSchemaException
UnresolvedReferenceException
public boolean fixup(SchemaCompiler compiler) throws SchemaException
compiler
- the SchemaCompiler, used primarily for reporting errorsSchemaException
public void elaborate(SchemaCompiler compiler) throws SchemaException
compiler
- SchemaException
protected static FunctionItem makeXPathExpressionPropertyRecord(String conditionText, NamespaceResolver nsResolver, String baseURI)
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.