Interface ComponentReference

    • Method Detail

      • getConfiguration

        EnterpriseConfiguration getConfiguration()
        Determine the configuration containing this reference (and its target)
        Returns:
        the Saxon configuration
      • tryToResolve

        void tryToResolve​(SchemaCompiler compiler,
                          boolean fatal)
                   throws SchemaException
        Try to resolve the reference if possible, relative to components present in a given schema. If the reference cannot be resolved, the action depends on whether the schema compiler allows dangling references to absent components. If it does, we try to patch the schema up with a dummy component (where possible). If not, the method throws an exception
        Parameters:
        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 SchemaCompiler
        Throws:
        SchemaException - if the reference cannot be resolved or repaired.
      • isResolved

        boolean isResolved()
        Ask whether this reference has been resolved
        Returns:
        true if the reference has been resolved to a schema component
      • isDangling

        boolean isDangling()
        Ask whether this is known to be a dangling reference
        Returns:
        true if the target of this component reference is known to be absent, and if a warning has been issued to this effect
      • getTargetComponentName

        StructuredQName getTargetComponentName()
        Get the name of the target of this reference
        Returns:
        the component name of the target component
      • getSymbolSpace

        int getSymbolSpace()
        Get the symbol space of the target of this reference
        Returns:
        an integer code identifying the symbol space