APIdia Launch Partner
Top Description Constructors Methods
com.sun.org.apache.xml.internal.security.utils

public final Class IdResolver

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
org.w3c.dom.Attr, .Document, .Element

Deprecated

Purpose of this class is to enable the XML Parser to keep track of ID attributes. This is done by 'registering' attributes of type ID at the IdResolver.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Element

Returns:

the element obtained by the id, or null if it is not found.
getElementById
(Document
the document
doc
,
String
the value of the ID
id
)

Method getElementById

public static void
registerElementById(Element
the element to register
element
,
Attr
the ID attribute
id
)

Method registerElementById

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IdResolverback to summary
private IdResolver()

Method Detail

getElementByIdback to summary
public static Element getElementById(Document doc, String id)

Method getElementById

Parameters
doc:Document

the document

id:String

the value of the ID

Returns:Element

the element obtained by the id, or null if it is not found.

registerElementByIdback to summary
public static void registerElementById(Element element, Attr id)

Method registerElementById

Parameters
element:Element

the element to register

id:Attr

the ID attribute