public abstract class SchemaStructure extends Object implements Location
| 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 Function |
makeXPathExpressionPropertyRecord(String conditionText,
NamespaceResolver nsResolver,
String baseURI)
Helper method to make an XPathExpression property record
|
Location |
saveLocation()
Get an immutable copy of this Location object.
|
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 SourceLocatorgetSystemId in interface LocationgetSystemId in interface Locatorpublic String getPublicId()
getPublicId in interface SourceLocatorgetPublicId in interface LocationgetPublicId in interface Locatorpublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface Locatorpublic int getColumnNumber()
getColumnNumber in interface SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface Locatorpublic Location saveLocation()
saveLocation in interface Locationpublic 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, MissingComponentException
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 compilerSchemaExceptionMissingComponentExceptionpublic boolean fixup(SchemaCompiler compiler) throws SchemaException
compiler - the SchemaCompiler, used primarily for reporting errorsSchemaExceptionpublic void elaborate(SchemaCompiler compiler) throws SchemaException
compiler - SchemaExceptionprotected static Function makeXPathExpressionPropertyRecord(String conditionText, NamespaceResolver nsResolver, String baseURI)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.