Interface ForeignAttributes

  • All Superinterfaces:
    org.xml.sax.Attributes
    All Known Implementing Classes:
    ForeignAttributesImpl

    public interface ForeignAttributes
    extends org.xml.sax.Attributes
    Foreign attributes on schema elements.

    This is not a schema component as defined in the spec, but this is often useful for a schema processing application.

    Author:
    Kohsuke Kawaguchi
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.relaxng.datatype.ValidationContext getContext()
      Returns context information of the element to which foreign attributes are attached.
      org.xml.sax.Locator getLocator()
      Returns the location of the element to which foreign attributes are attached.
      • Methods inherited from interface org.xml.sax.Attributes

        getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue
    • Method Detail

      • getContext

        org.relaxng.datatype.ValidationContext getContext()
        Returns context information of the element to which foreign attributes are attached.

        For example, this can be used to resolve relative references to other resources (by using ValidationContext.getBaseUri()) or to resolve namespace prefixes in the attribute values (by using ValidationContext.resolveNamespacePrefix(String).

        Returns:
        always non-null.
      • getLocator

        org.xml.sax.Locator getLocator()
        Returns the location of the element to which foreign attributes are attached.