|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.p13n.util.DomUtils
public class DomUtils
Field Summary | |
---|---|
static String |
XML_SCHEMA_INSTANCE_NS_URI
|
static String |
XMLNS_NS_PREFIX
|
static String |
XMLNS_NS_URI
|
Method Summary | |
---|---|
static List<Element> |
findAllChildElements(Element parent,
String localName)
Finds all child elements matching the local name, while ignoring the namespace URI. |
static List<Element> |
findAllChildElements(Element parent,
String localName,
String namespaceURI)
Find all child elements matching the given local name and namespace URI |
static Element |
findFirstChildElement(Element parent,
String localName)
Finds the first child element matching the given local name |
static boolean |
getBooleanValue(Element element)
|
static boolean |
getBooleanValue(String textValue)
|
static Element |
getChildElement(Element parent,
String localName)
Recursively find an element with the given local name. |
static Element |
getFirstChildElement(Element parent,
String namespaceUri,
String localName)
Find the first child element matching the given namespace URI and local name |
static Element |
getFirstChildElement(Element parent,
String namespaceUri,
String localName,
boolean createElement)
|
static String |
getLocalName(String qualifiedName)
Extracts the local qualifiedName from the given qualified qualifiedName |
static QName |
getQNameContent(Element element)
|
static QName |
getQNameContent(Element element,
String str)
|
static String |
getTextContent(Element element)
Returns the text content of an element, provided the first child of the element is a Text node. |
static boolean |
isChildNil(Element parent,
String localName)
Checks if the child element is missing or is nil. |
static boolean |
isNil(Element element)
Returns true if the given element is nillable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XML_SCHEMA_INSTANCE_NS_URI
public static final String XMLNS_NS_URI
public static final String XMLNS_NS_PREFIX
Method Detail |
---|
public static Element getChildElement(Element parent, String localName)
parent
- parentlocalName
- local name of the child
public static Element findFirstChildElement(Element parent, String localName)
parent
- parentlocalName
- local name of the child element
public static Element getFirstChildElement(Element parent, String namespaceUri, String localName)
parent
- parent elementnamespaceUri
- namespace URI of the childlocalName
- local name of the child
public static List<Element> findAllChildElements(Element parent, String localName)
public static List<Element> findAllChildElements(Element parent, String localName, String namespaceURI)
public static boolean isChildNil(Element parent, String localName)
parent
- parentlocalName
- local name of the child
public static boolean isNil(Element element)
element
- element
public static boolean getBooleanValue(Element element)
public static boolean getBooleanValue(String textValue)
public static String getTextContent(Element element)
element
- element
public static String getLocalName(String qualifiedName)
qualifiedName
- qualified name
public static QName getQNameContent(Element element)
public static QName getQNameContent(Element element, String str)
public static Element getFirstChildElement(Element parent, String namespaceUri, String localName, boolean createElement)
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |