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 SourceLocator
getSystemId
in interface Location
getSystemId
in interface Locator
public String getPublicId()
getPublicId
in interface SourceLocator
getPublicId
in interface Location
getPublicId
in interface Locator
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface Location
getLineNumber
in interface Locator
public int getColumnNumber()
getColumnNumber
in interface SourceLocator
getColumnNumber
in interface Location
getColumnNumber
in interface Locator
public Location saveLocation()
saveLocation
in interface Location
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, 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 compilerSchemaException
MissingComponentException
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 Function makeXPathExpressionPropertyRecord(String conditionText, NamespaceResolver nsResolver, String baseURI)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.