|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.utils.Utilities
public class Utilities
tools and utilities, mainly for working with XMLBeans and simplifying handling xsd:any
| Method Summary | ||
|---|---|---|
static void |
addHeaders(org.w3.x2003.x05.soapEnvelope.Header header,
org.apache.xmlbeans.XmlObject[] headers)
|
|
static void |
append(org.apache.xmlbeans.XmlObject[] what,
org.apache.xmlbeans.XmlObject toWhere)
|
|
static void |
append(org.apache.xmlbeans.XmlObject what,
org.apache.xmlbeans.XmlObject toWhere)
appends a XmlObject into another XML document, immediately before the end tag |
|
static org.apache.xmlbeans.XmlObject[] |
extractAny(org.apache.xmlbeans.XmlObject source,
QName q)
retrieve Xml content by QName (careful, this will not return XML documents, but XML fragments. |
|
static org.apache.xmlbeans.XmlObject[] |
extractAnyElements(org.apache.xmlbeans.XmlObject source,
QName q)
extract an array of XML elements identified by their qname from an XML source document. |
|
static
|
extractAnyElements(org.apache.xmlbeans.XmlObject source,
QName q,
Class<? extends org.apache.xmlbeans.XmlObject> asClass)
extract an array of XML elements identified by their qname from an XML source document. |
|
static String |
extractElementTextAsString(org.apache.xmlbeans.XmlObject source)
extract the text content of an XML element |
|
static String |
extractResourceID(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
|
|
static String |
extractResourceID(String id)
|
|
static org.apache.xmlbeans.XmlObject[] |
extractResourceProperty(org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyDocumentResponseDocument res,
QName q)
|
|
static org.apache.xmlbeans.XmlObject |
extractResourceProperty(org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyResponseDocument res)
get the resourceproperty from a GetResourcePropertyResponse |
|
static String |
extractServiceName(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
|
|
static String |
extractServiceName(String url)
|
|
static QName |
findAnyElementQName(org.apache.xmlbeans.XmlObject o)
for an element containing an xsd:any element, find the Qname of the xsd:any |
|
static void |
insertAny(org.apache.xmlbeans.XmlObject what,
org.apache.xmlbeans.XmlObject toWhere)
|
|
static String |
makeAddress(String serviceName)
builds an wsa Address for the given plain web service |
|
static String |
makeAddress(String serviceName,
String resourceID)
builds an wsa Address for the given service + resourceID |
|
static org.w3.x2005.x08.addressing.EndpointReferenceType |
makeEPR(String serviceName)
return the epr of the specified plain ws |
|
static org.w3.x2005.x08.addressing.EndpointReferenceType |
makeEPR(String serviceName,
String resourceID)
return the epr of the specified ws resource |
|
static String |
newUniqueID()
returns a new globally unique identifier |
|
static boolean |
skipToElement(org.apache.xmlbeans.XmlCursor cursor,
QName name)
fast-forward the cursor up to the element with the given QName |
|
static QName |
toQName(org.apache.xmlbeans.SchemaType type)
helper: converts XmlBeans schematype to QName |
|
static boolean |
validateIntegerRange(String value,
int minValue,
int maxValue)
validate that the given String value (interpreted as an Integer) is in the supplied range |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String makeAddress(String serviceName,
String resourceID)
serviceName - resourceID -
public static String makeAddress(String serviceName)
serviceName - resourceID -
public static org.w3.x2005.x08.addressing.EndpointReferenceType makeEPR(String serviceName,
String resourceID)
serviceName - resourceID -
public static org.w3.x2005.x08.addressing.EndpointReferenceType makeEPR(String serviceName)
serviceName -
public static String newUniqueID()
public static QName toQName(org.apache.xmlbeans.SchemaType type)
type -
public static org.apache.xmlbeans.XmlObject extractResourceProperty(org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyResponseDocument res)
throws IOException,
org.apache.xmlbeans.XmlException
res -
IOException
org.apache.xmlbeans.XmlException
public static org.apache.xmlbeans.XmlObject[] extractResourceProperty(org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyDocumentResponseDocument res,
QName q)
public static void append(org.apache.xmlbeans.XmlObject what,
org.apache.xmlbeans.XmlObject toWhere)
what - toWhere -
public static void append(org.apache.xmlbeans.XmlObject[] what,
org.apache.xmlbeans.XmlObject toWhere)
public static void insertAny(org.apache.xmlbeans.XmlObject what,
org.apache.xmlbeans.XmlObject toWhere)
public static org.apache.xmlbeans.XmlObject[] extractAny(org.apache.xmlbeans.XmlObject source,
QName q)
source - XmlObjectq - QName
public static org.apache.xmlbeans.XmlObject[] extractAnyElements(org.apache.xmlbeans.XmlObject source,
QName q)
source - - the xml fragmentq - - QName of elements to extract
public static <T> List<T> extractAnyElements(org.apache.xmlbeans.XmlObject source,
QName q,
Class<? extends org.apache.xmlbeans.XmlObject> asClass)
source - - the xml fragmentq - - QName of elements to extractasClass - - the XMLbeans class of the elements to extract
public static QName findAnyElementQName(org.apache.xmlbeans.XmlObject o)
o -
public static String extractElementTextAsString(org.apache.xmlbeans.XmlObject source)
source - the xml element
public static boolean skipToElement(org.apache.xmlbeans.XmlCursor cursor,
QName name)
cursor - name -
public static void addHeaders(org.w3.x2003.x05.soapEnvelope.Header header,
org.apache.xmlbeans.XmlObject[] headers)
public static String extractResourceID(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
public static String extractResourceID(String id)
public static String extractServiceName(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
public static String extractServiceName(String url)
public static boolean validateIntegerRange(String value,
int minValue,
int maxValue)
value - - String to be verifiedminValue - - minimummaxValue - - maximum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||