|
||||||||||
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)
Deprecated. please use OMElement.getFirstChildWithName(qname) instead! |
static String |
getContentID(XMLStreamReader parser)
|
static String |
getContentID(XMLStreamReader parser,
String charsetEncoding)
Deprecated. use getContentID(XMLStreamReader) instead (see AXIOM-129) |
static String |
getContentIDFromHref(String href)
Extract the content ID from a href attribute value, i.e. from a URI following the cid: scheme defined by RFC2392. |
static Reader |
getTextAsStream(OMElement element,
boolean cache)
Deprecated. Use OMElement.getTextAsStream(boolean) instead. |
static OMElement |
importOMElement(OMElement omElement,
OMFactory omFactory)
Some times two OMElements needs to be added to the same object tree. |
QName |
resolveQName(String qname)
Deprecated. The algorithm used by this method is incorrect. See AXIOM-356 for more details. |
QName |
resolveQName(String qname,
boolean defaultToParentNameSpace)
Deprecated. The algorithm used by this method is incorrect. See AXIOM-356 for more details. |
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. |
static void |
writeTextTo(OMElement element,
Writer out,
boolean cache)
Deprecated. Use OMElement.writeTextTo(Writer, boolean) instead. |
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 QName resolveQName(String qname, boolean defaultToParentNameSpace)
public QName resolveQName(String qname)
public static void setNewElement(OMElement parent, OMElement myElement, OMElement newElement)
public static OMElement getChildWithName(OMElement parent, String childName)
public static String getContentID(XMLStreamReader parser, String charsetEncoding)
getContentID(XMLStreamReader)
instead (see AXIOM-129)
public static String getContentID(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
public static Reader getTextAsStream(OMElement element, boolean cache)
OMElement.getTextAsStream(boolean)
instead.
public static void writeTextTo(OMElement element, Writer out, boolean cache) throws XMLStreamException, IOException
OMElement.writeTextTo(Writer, boolean)
instead.
XMLStreamException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |