Class ForeignAttributesImpl

java.lang.Object
org.xml.sax.helpers.AttributesImpl
com.sun.xml.xsom.impl.ForeignAttributesImpl
All Implemented Interfaces:
ForeignAttributes, Attributes

public final class ForeignAttributesImpl extends AttributesImpl implements ForeignAttributes
Remembers foreign attributes.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • ForeignAttributesImpl

      public ForeignAttributesImpl(org.relaxng.datatype.ValidationContext context, Locator locator, ForeignAttributesImpl next)
  • Method Details

    • getContext

      public org.relaxng.datatype.ValidationContext getContext()
      Description copied from interface: ForeignAttributes
      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).

      Specified by:
      getContext in interface ForeignAttributes
      Returns:
      always non-null.
    • getLocator

      public Locator getLocator()
      Description copied from interface: ForeignAttributes
      Returns the location of the element to which foreign attributes are attached.
      Specified by:
      getLocator in interface ForeignAttributes