|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.util.ElementHelper
public class ElementHelper
Helper class to provide extra utility stuff against elements. The code is designed to work with any element implementation.
Constructor Summary | |
---|---|
ElementHelper(OMElement element)
Constructs and binds to an element. |
Method Summary | |
---|---|
static OMElement |
getChildWithName(OMElement parent,
String childName)
|
static String |
getContentID(javax.xml.stream.XMLStreamReader parser)
|
static String |
getContentID(javax.xml.stream.XMLStreamReader parser,
String charsetEncoding)
Deprecated. use getContentID(XMLStreamReader) instead (see WSCOMMONS-429) |
static String |
getContentIDFromHref(String href)
Extract the content ID from a href attribute value, i.e. |
static OMElement |
importOMElement(OMElement omElement,
OMFactory omFactory)
Some times two OMElements needs to be added to the same object tree. |
javax.xml.namespace.QName |
resolveQName(String qname)
Turns a prefix:local qname string into a proper QName, evaluating it in the OMElement context. |
javax.xml.namespace.QName |
resolveQName(String qname,
boolean defaultToParentNameSpace)
Turns a prefix:local qname string into a proper QName, evaluating it in the OMElement context. |
static void |
setNewElement(OMElement parent,
OMElement myElement,
OMElement newElement)
|
static SOAPHeaderBlock |
toSOAPHeaderBlock(OMElement omElement,
SOAPFactory factory)
This is a method to convert regular OMElements to SOAPHeaderBlocks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementHelper(OMElement element)
element
- element to work withMethod Detail |
---|
public javax.xml.namespace.QName resolveQName(String qname, boolean defaultToParentNameSpace)
qname
- qname to resolvedefaultToParentNameSpace
- flag that controls behaviour when there is no namespace.
public javax.xml.namespace.QName resolveQName(String qname)
qname
- prefixed qname string to resolve
public static void setNewElement(OMElement parent, OMElement myElement, OMElement newElement)
public static OMElement getChildWithName(OMElement parent, String childName)
parent
- childName
-
public static String getContentID(javax.xml.stream.XMLStreamReader parser, String charsetEncoding)
getContentID(XMLStreamReader)
instead (see WSCOMMONS-429)
public static String getContentID(javax.xml.stream.XMLStreamReader parser)
public static String getContentIDFromHref(String href)
href
- the value of the href attribute
public static OMElement importOMElement(OMElement omElement, OMFactory omFactory)
to convert instances of
OMAttribute
public static SOAPHeaderBlock toSOAPHeaderBlock(OMElement omElement, SOAPFactory factory) throws Exception
omElement
- factory
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |