Top Description Methods
com.sun.xml.xsom

public Interface ForeignAttributes

extends Attributes
Known Direct Implementers
com.sun.xml.xsom.impl.ForeignAttributesImpl
Annotations
@SuppressWarnings:exports
Imports
org.xml.sax.Attributes, .Locator, com.sun.tools.rngdatatype.ValidationContext

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

Modifier and TypeMethod and Description
public ValidationContext

Returns:

always non-null.
getContext
()

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

public Locator
getLocator()

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

Inherited from org.xml.sax.Attributes:
getIndexgetIndexgetLengthgetLocalNamegetQNamegetTypegetTypegetTypegetURIgetValuegetValuegetValue

Method Detail

getContextback to summary
public 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:ValidationContext

always non-null.

getLocatorback to summary
public Locator getLocator()

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