public interface ComponentReference extends Location
Modifier and Type | Method and Description |
---|---|
EnterpriseConfiguration |
getConfiguration()
Determine the configuration containing this reference (and its target)
|
int |
getSymbolSpace()
Get the symbol space of the target of this reference
|
SchemaComponent |
getTarget()
Get the schema component identified by this reference.
|
StructuredQName |
getTargetComponentName()
Get the name of the target of this reference
|
boolean |
isDangling()
Ask whether this is known to be a dangling reference
|
boolean |
isResolved()
Ask whether this reference has been resolved
|
void |
tryToResolve(SchemaCompiler compiler,
boolean fatal)
Try to resolve the reference if possible, relative to components present in a given schema.
|
getColumnNumber, getLineNumber, getPublicId, getSystemId, saveLocation
EnterpriseConfiguration getConfiguration()
void tryToResolve(SchemaCompiler compiler, boolean fatal) throws SchemaException
compiler
- The compiler being used to compile the referring component.fatal
- True if a failure to resolve should be treated as fatal, irrespective of any settings
in the SchemaCompilerSchemaException
- if the reference cannot be resolved or repaired.boolean isResolved()
boolean isDangling()
SchemaComponent getTarget() throws MissingComponentException
MissingComponentException
- if the reference has not been resolved.StructuredQName getTargetComponentName()
int getSymbolSpace()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.