public abstract class SchemaStructure extends java.lang.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
|
java.lang.String |
getGeneratedId()
Get the generated ID, used to test whether two components are "identical"
|
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.
|
int |
getRedefinitionLevel()
Get the redefinition level.
|
java.lang.String |
getSchemaDocumentURI()
Get the base URI of the containing xs:schema element.
|
java.lang.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
|
boolean |
hasSameLocation(SchemaStructure other)
Ask whether this schema component should be considered identical to another schema component
|
void |
lookForCycles(java.util.Stack references,
SchemaCompiler compiler)
This method is called to look for cycles.
|
protected static Function |
makeXPathExpressionPropertyRecord(java.lang.String conditionText,
NamespaceResolver nsResolver,
java.lang.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 |
setGeneratedId(java.lang.String generatedId)
Set the generated ID, used to test whether two components are "identical"
|
void |
setLineNumber(int lineNumber)
Set the line number
|
void |
setLocator(javax.xml.transform.SourceLocator locator)
Set the location information for this schema component.
|
void |
setRedefinitionLevel(int level)
Set the redefinition level.
|
void |
setSchemaDocumentURI(java.lang.String uri)
Set the base URI of the containing xs:schema element.
|
void |
setSystemId(java.lang.String systemId)
Set the system Id
|
void |
setValidationStatus(int status)
Set the validation status
|
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in interface Location
getSystemId
in interface org.xml.sax.Locator
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.transform.SourceLocator
getPublicId
in interface Location
getPublicId
in interface org.xml.sax.Locator
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in interface Location
getLineNumber
in interface org.xml.sax.Locator
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in interface Location
getColumnNumber
in interface org.xml.sax.Locator
public Location saveLocation()
saveLocation
in interface Location
public void setLocator(javax.xml.transform.SourceLocator locator)
locator
- the location information.public void setSystemId(java.lang.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 setGeneratedId(java.lang.String generatedId)
public java.lang.String getGeneratedId()
public void setSchemaDocumentURI(java.lang.String uri)
uri
- the base URI of the schema documentpublic java.lang.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(java.util.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(java.lang.String conditionText, NamespaceResolver nsResolver, java.lang.String baseURI)
public boolean hasSameLocation(SchemaStructure other)
other
- the other schema componentCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.