com.sun.xml.xsom.impl
Class ForeignAttributesImpl

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

public final class ForeignAttributesImpl
extends org.xml.sax.helpers.AttributesImpl
implements ForeignAttributes

Remembers foreign attributes.

Author:
Kohsuke Kawaguchi

Constructor Summary
ForeignAttributesImpl(org.relaxng.datatype.ValidationContext context, Locator locator, ForeignAttributesImpl next)
           
 
Method Summary
 org.relaxng.datatype.ValidationContext getContext()
          Returns context information of the element to which foreign attributes are attached.
 Locator getLocator()
          Returns the location of the element to which foreign attributes are attached.
 
Methods inherited from class org.xml.sax.helpers.AttributesImpl
addAttribute, clear, getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue, removeAttribute, setAttribute, setAttributes, setLocalName, setQName, setType, setURI, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.Attributes
getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue
 

Constructor Detail

ForeignAttributesImpl

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

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


Copyright © 2012 Oracle. All Rights Reserved.