com.sun.xml.xsom
Interface ForeignAttributes

All Superinterfaces:
Attributes
All Known Implementing Classes:
ForeignAttributesImpl

public interface ForeignAttributes
extends Attributes

Foreign attributes on schema elements.

This is not a schema component as defined in the spec, but this is often useful for a schema processing application.

Author:
Kohsuke Kawaguchi

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 interface org.xml.sax.Attributes
getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue
 

Method Detail

getContext

org.relaxng.datatype.ValidationContext 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).

Returns:
always non-null.

getLocator

Locator getLocator()
Returns the location of the element to which foreign attributes are attached.



Copyright © 2012 Oracle. All Rights Reserved.