Top Description Fields Constructors Methods
com.sun.xml.xsom.impl

public final Class ForeignAttributesImpl

extends AttributesImpl
implements ForeignAttributes
Class Inheritance
All Implemented Interfaces
com.sun.xml.xsom.ForeignAttributes, org.xml.sax.Attributes
Annotations
@SuppressWarnings:exports
Imports
com.sun.xml.xsom.ForeignAttributes, com.sun.tools.rngdatatype.ValidationContext, org.xml.sax.Locator, org.xml.sax.helpers.AttributesImpl

Remembers foreign attributes.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final ValidationContext
private final Locator
pack-priv final ForeignAttributesImpl
next

ForeignAttributes forms a linked list.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValidationContext
getContext()

Implements com.sun.xml.xsom.ForeignAttributes.getContext.

Returns context information of the element to which foreign attributes are attached.

public Locator
getLocator()

Implements com.sun.xml.xsom.ForeignAttributes.getLocator.

Returns the location of the element to which foreign attributes are attached.

Inherited from org.xml.sax.helpers.AttributesImpl:
addAttributecleargetIndexgetIndexgetLengthgetLocalNamegetQNamegetTypegetTypegetTypegetURIgetValuegetValuegetValueremoveAttributesetAttributesetAttributessetLocalNamesetQNamesetTypesetURIsetValue

Field Detail

contextback to summary
private final ValidationContext context
locatorback to summary
private final Locator locator
nextback to summary
pack-priv final ForeignAttributesImpl next

ForeignAttributes forms a linked list.

Constructor Detail

ForeignAttributesImplback to summary
public ForeignAttributesImpl(ValidationContext context, Locator locator, ForeignAttributesImpl next)

Method Detail

getContextback to summary
public ValidationContext getContext()

Implements com.sun.xml.xsom.ForeignAttributes.getContext.

Doc from com.sun.xml.xsom.ForeignAttributes.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).

getLocatorback to summary
public Locator getLocator()

Implements com.sun.xml.xsom.ForeignAttributes.getLocator.

Doc from com.sun.xml.xsom.ForeignAttributes.getLocator.

Returns the location of the element to which foreign attributes are attached.