org.globus.wsrf.impl.security.descriptor.util
Class ElementParser

java.lang.Object
  extended byorg.globus.wsrf.impl.security.descriptor.util.ElementParser
All Implemented Interfaces:
ElementHandler, java.io.Serializable
Direct Known Subclasses:
ClientSecurityDescriptor, GSIAuthMethodParserImpl, GSISecureMsgParserImpl, GSITransportParserImpl, MethodParser, SecurityDescriptor

public class ElementParser
extends java.lang.Object
implements ElementHandler

See Also:
Serialized Form

Field Summary
protected  java.util.Map elementHandlers
           
private  javax.xml.namespace.QName elemName
           
private static org.globus.util.I18n i18n
           
 
Constructor Summary
protected ElementParser()
           
  ElementParser(javax.xml.namespace.QName elemName)
           
 
Method Summary
static void checkElement(org.w3c.dom.Element configElement, javax.xml.namespace.QName expectedName)
           
static org.w3c.dom.Node getFirstChildElement(org.w3c.dom.Node elem)
           
static javax.xml.namespace.QName getQName(org.w3c.dom.Node node)
           
 void parse(org.w3c.dom.Element configElement)
           
 void register(javax.xml.namespace.QName name, ElementHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i18n

private static org.globus.util.I18n i18n

elementHandlers

protected transient java.util.Map elementHandlers

elemName

private javax.xml.namespace.QName elemName
Constructor Detail

ElementParser

protected ElementParser()

ElementParser

public ElementParser(javax.xml.namespace.QName elemName)
Method Detail

register

public void register(javax.xml.namespace.QName name,
                     ElementHandler handler)

parse

public void parse(org.w3c.dom.Element configElement)
           throws ElementParserException
Specified by:
parse in interface ElementHandler
Throws:
ElementParserException

getQName

public static javax.xml.namespace.QName getQName(org.w3c.dom.Node node)

checkElement

public static void checkElement(org.w3c.dom.Element configElement,
                                javax.xml.namespace.QName expectedName)
                         throws ElementParserException
Throws:
ElementParserException

getFirstChildElement

public static org.w3c.dom.Node getFirstChildElement(org.w3c.dom.Node elem)