|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.util.XmlBeanUtils
Generic utility methods for working with Apache XMLBeans.
Constructor Summary | |
XmlBeanUtils()
|
Method Summary | |
static org.apache.xmlbeans.XmlObject |
addChildElement(org.apache.xmlbeans.XmlObject parent,
javax.xml.namespace.QName name)
Creates a new XmlBean named name and adds it as the last child of the XmlBean parent . |
static org.apache.xmlbeans.XmlObject |
addChildElement(org.apache.xmlbeans.XmlObject parent,
org.apache.xmlbeans.XmlObject newChild)
Adds a copy of the XmlBean newChild as the last child of the XmlBean parent . |
static org.apache.xmlbeans.XmlObject |
copyXmlBean(org.apache.xmlbeans.XmlObject srcXBean)
Makes and returns a copy of the specified XMLBean. |
static org.apache.xmlbeans.XmlObject[] |
copyXmlBeans(org.apache.xmlbeans.XmlObject[] srcXBeans)
Makes and returns a copy of the specified XMLBean array. |
static org.apache.xmlbeans.XmlObject |
createElement(javax.xml.namespace.QName elemName)
DOCUMENT_ME |
static java.lang.String |
getAttributeValue(org.apache.xmlbeans.XmlObject xBean,
javax.xml.namespace.QName attribName)
|
static javax.xml.namespace.QName |
getAttributeValueAsQName(org.apache.xmlbeans.XmlObject xBean,
javax.xml.namespace.QName attribName)
|
static org.apache.xmlbeans.XmlObject[] |
getChildElements(org.apache.xmlbeans.XmlObject xBean)
Returns an array containing all child elements of the specified XMLBean. |
static org.apache.xmlbeans.XmlObject[] |
getChildElements(org.apache.xmlbeans.XmlObject xBean,
javax.xml.namespace.QName name)
Returns an array containing all child elements, with the specified name, of the specified XMLBean. |
static org.apache.xmlbeans.XmlObject |
getDocument(org.apache.xmlbeans.XmlObject xBean)
Returns the document XmlBean that is associated with the specified XmlBean. |
static javax.xml.namespace.QName |
getName(org.apache.xmlbeans.XmlCursor xCursor)
Note. |
static javax.xml.namespace.QName |
getName(org.apache.xmlbeans.XmlObject xBean)
|
static org.apache.xmlbeans.XmlObject |
getRootElement(org.apache.xmlbeans.XmlObject docXBean)
Returns the root element of the specified document XMLBean. |
static java.lang.String |
getValue(org.apache.xmlbeans.XmlObject xBean)
|
static javax.xml.namespace.QName |
getValueAsQName(org.apache.xmlbeans.XmlObject xBean)
|
static java.util.Map |
getXmlBeanAnyMap(org.apache.xmlbeans.XmlObject xmlObjectToSearch)
Returns a Map keyed on Element QName to a List containing the "Any" XmlObjects types. |
static boolean |
isDocument(org.apache.xmlbeans.XmlObject xBean)
Returns true if the specified XMLBean represents an XML document, or false if it does not. |
org.apache.xmlbeans.XmlObject |
newInstance(javax.xml.namespace.QName elemName)
Creates a new XMLBean element with the specified name. |
static void |
remove(org.apache.xmlbeans.XmlObject xBean)
Removes the specifed XMLBean from its parent element. |
static boolean |
removeChildElements(org.apache.xmlbeans.XmlObject xBean)
Removes all child elements of the specified XMLBean. |
static boolean |
removeChildElements(org.apache.xmlbeans.XmlObject xBean,
javax.xml.namespace.QName name)
Removes all child elements, with the specified name, from the specified XMLBean. |
static void |
setName(org.apache.xmlbeans.XmlCursor xCursor,
javax.xml.namespace.QName name)
Note. |
static void |
setName(org.apache.xmlbeans.XmlObject xBean,
javax.xml.namespace.QName name)
|
static void |
setValue(org.apache.xmlbeans.XmlObject xBean,
java.lang.String value)
|
static void |
setValueAsQName(org.apache.xmlbeans.XmlObject xBean,
javax.xml.namespace.QName qName)
|
static javax.xml.soap.SOAPElement |
toSOAPElement(org.apache.xmlbeans.XmlObject xBean)
|
static javax.xml.soap.SOAPElement[] |
toSOAPElementArray(org.apache.xmlbeans.XmlObject[] elems)
DOCUMENT_ME |
static org.apache.xmlbeans.XmlObject |
toXmlObject(java.lang.Object obj)
If possible, converts the specified object to an XMLBean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlBeanUtils()
Method Detail |
public static java.lang.String getAttributeValue(org.apache.xmlbeans.XmlObject xBean, javax.xml.namespace.QName attribName)
xBean
- attribName
-
public static javax.xml.namespace.QName getAttributeValueAsQName(org.apache.xmlbeans.XmlObject xBean, javax.xml.namespace.QName attribName)
xBean
-
public static org.apache.xmlbeans.XmlObject[] getChildElements(org.apache.xmlbeans.XmlObject xBean, javax.xml.namespace.QName name)
xBean
- an XMLBean that represents an XML elementname
- the name to look for, or null to return all child elements
public static org.apache.xmlbeans.XmlObject[] getChildElements(org.apache.xmlbeans.XmlObject xBean)
xBean
- an XMLBean that represents an XML element
public static org.apache.xmlbeans.XmlObject getDocument(org.apache.xmlbeans.XmlObject xBean)
xBean
- an XmlBean
public static boolean isDocument(org.apache.xmlbeans.XmlObject xBean)
xBean
- an XMLBean
public static void setName(org.apache.xmlbeans.XmlObject xBean, javax.xml.namespace.QName name)
xBean
- public static void setName(org.apache.xmlbeans.XmlCursor xCursor, javax.xml.namespace.QName name)
xCursor
- public static javax.xml.namespace.QName getName(org.apache.xmlbeans.XmlObject xBean)
xBean
-
public static javax.xml.namespace.QName getName(org.apache.xmlbeans.XmlCursor xCursor)
xCursor
-
public static org.apache.xmlbeans.XmlObject getRootElement(org.apache.xmlbeans.XmlObject docXBean)
docXBean
- a document XMLBean
public static void setValue(org.apache.xmlbeans.XmlObject xBean, java.lang.String value)
xBean
- value
- public static java.lang.String getValue(org.apache.xmlbeans.XmlObject xBean)
xBean
-
public static void setValueAsQName(org.apache.xmlbeans.XmlObject xBean, javax.xml.namespace.QName qName)
xBean
- qName
- public static javax.xml.namespace.QName getValueAsQName(org.apache.xmlbeans.XmlObject xBean)
xBean
-
public static java.util.Map getXmlBeanAnyMap(org.apache.xmlbeans.XmlObject xmlObjectToSearch)
xmlObjectToSearch
- The XmlObject to find the Any elements in.
public static org.apache.xmlbeans.XmlObject addChildElement(org.apache.xmlbeans.XmlObject parent, org.apache.xmlbeans.XmlObject newChild)
newChild
as the last child of the XmlBean parent
.
parent
- the XmlBean to be added to; must represent an element or a documentnewChild
- the XmlBean to be added; must represent an element or a documentpublic static org.apache.xmlbeans.XmlObject addChildElement(org.apache.xmlbeans.XmlObject parent, javax.xml.namespace.QName name)
name
and adds it as the last child of the XmlBean parent
.
parent
- the XmlBean to be added to; must represent an element or a documentname
- the name of the new XmlBean to be addedpublic static org.apache.xmlbeans.XmlObject copyXmlBean(org.apache.xmlbeans.XmlObject srcXBean)
srcXBean
- the XMLBean to be copied
public static org.apache.xmlbeans.XmlObject[] copyXmlBeans(org.apache.xmlbeans.XmlObject[] srcXBeans)
srcXBeans
- the array of XMLBeans to be copied
public static org.apache.xmlbeans.XmlObject createElement(javax.xml.namespace.QName elemName)
elemName
- DOCUMENT_ME
public static void remove(org.apache.xmlbeans.XmlObject xBean)
xBean
- an XMLBeanpublic static boolean removeChildElements(org.apache.xmlbeans.XmlObject xBean, javax.xml.namespace.QName name)
xBean
- an XMLBean
public static boolean removeChildElements(org.apache.xmlbeans.XmlObject xBean)
xBean
- an XMLBean
public static javax.xml.soap.SOAPElement toSOAPElement(org.apache.xmlbeans.XmlObject xBean) throws java.lang.Exception
xBean
-
java.lang.Exception
public static javax.xml.soap.SOAPElement[] toSOAPElementArray(org.apache.xmlbeans.XmlObject[] elems) throws java.lang.Exception
elems
- DOCUMENT_ME
java.lang.Exception
- DOCUMENT_MEpublic static org.apache.xmlbeans.XmlObject toXmlObject(java.lang.Object obj) throws java.lang.Exception
obj
- an object
java.lang.Exception
- if the object cannot be converted to an XMLBeanpublic org.apache.xmlbeans.XmlObject newInstance(javax.xml.namespace.QName elemName)
elemName
- the element name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |