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
,Attributes
Remembers foreign attributes.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
ConstructorDescriptionForeignAttributesImpl
(org.relaxng.datatype.ValidationContext context, Locator locator, ForeignAttributesImpl next) -
Method Summary
Modifier and TypeMethodDescriptionorg.relaxng.datatype.ValidationContext
Returns context information of the element to which foreign attributes are attached.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
-
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 usingValidationContext.resolveNamespacePrefix(String)
.- Specified by:
getContext
in interfaceForeignAttributes
- Returns:
- always non-null.
-
getLocator
Description copied from interface:ForeignAttributes
Returns the location of the element to which foreign attributes are attached.- Specified by:
getLocator
in interfaceForeignAttributes
-