Package com.sun.xml.xsom.impl
Class ForeignAttributesImpl
- java.lang.Object
-
- org.xml.sax.helpers.AttributesImpl
-
- com.sun.xml.xsom.impl.ForeignAttributesImpl
-
- All Implemented Interfaces:
ForeignAttributes
,org.xml.sax.Attributes
public final class ForeignAttributesImpl extends org.xml.sax.helpers.AttributesImpl implements ForeignAttributes
Remembers foreign attributes.
-
-
Field Summary
Fields Modifier and Type Field Description private org.relaxng.datatype.ValidationContext
context
private org.xml.sax.Locator
locator
(package private) ForeignAttributesImpl
next
ForeignAttributes
forms a linked list.
-
Constructor Summary
Constructors Constructor Description ForeignAttributesImpl(org.relaxng.datatype.ValidationContext context, org.xml.sax.Locator locator, ForeignAttributesImpl next)
-
Method Summary
All Methods Instance Methods Concrete 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 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
-
-
-
-
Field Detail
-
context
private final org.relaxng.datatype.ValidationContext context
-
locator
private final org.xml.sax.Locator locator
-
next
final ForeignAttributesImpl next
ForeignAttributes
forms a linked list.
-
-
Constructor Detail
-
ForeignAttributesImpl
public ForeignAttributesImpl(org.relaxng.datatype.ValidationContext context, org.xml.sax.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 usingValidationContext.resolveNamespacePrefix(String)
.- Specified by:
getContext
in interfaceForeignAttributes
- Returns:
- always non-null.
-
getLocator
public org.xml.sax.Locator getLocator()
Description copied from interface:ForeignAttributes
Returns the location of the element to which foreign attributes are attached.- Specified by:
getLocator
in interfaceForeignAttributes
-
-