|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nci.mageom.util.XMLUtility
public class XMLUtility
XMLUtility Utilities for working with XMLInterface objects. Can produce String representations of XML based on element hierarchies.
| Constructor Summary | |
|---|---|
XMLUtility()
|
|
| Method Summary | |
|---|---|
org.w3c.dom.Element |
buildXMLMethods(org.w3c.dom.Element element,
java.util.Hashtable associationMethods,
java.util.ArrayList fillOutValues,
java.lang.Object theObject,
org.w3c.dom.Document doc)
buildXMLMethods() |
org.w3c.dom.Element |
createAssociationElement(gov.nih.nci.common.util.XMLMethodDescriptor xmlMethDesc,
java.lang.Object id,
org.w3c.dom.Document doc)
|
static org.w3c.dom.Element |
CreateURL(java.lang.String objectName,
java.util.Hashtable criteria,
org.w3c.dom.Document doc)
|
static org.w3c.dom.Element |
CreateURL(java.lang.String objectName,
java.lang.String tagName,
java.util.Hashtable criteria,
org.w3c.dom.Document doc)
|
static java.lang.String |
elem2String(org.w3c.dom.Node elem)
elem2String() |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
makeHeavyXMLStringDoc(gov.nih.nci.common.util.XMLInterface[] objects)
makeHeavyXMLStringDoc() |
static java.lang.String |
makeXMLStringDoc(gov.nih.nci.common.search.SearchResult searchResult,
java.util.ArrayList fillInObjects,
boolean heavy)
makeXMLStringDoc() |
static java.lang.String |
makeXMLStringDoc(gov.nih.nci.common.search.SearchResult searchResult,
boolean heavy)
makeXMLStringDoc() |
static java.lang.String |
makeXMLStringDoc(gov.nih.nci.common.util.XMLInterface[] objects)
makeXMLStringDoc() |
static java.lang.String |
makeXMLStringDoc(gov.nih.nci.common.util.XMLInterface[] objects,
java.util.ArrayList fillInObjects)
makeSelectedXMLStringDoc() |
static java.lang.String |
makeXMLStringTreeDoc(gov.nih.nci.common.util.XMLInterface[] objects,
gov.nih.nci.common.util.XMLInterface[] children)
makeXMLStringTreeDoc() |
static java.lang.String |
makeXMLStringTreeDoc(gov.nih.nci.common.util.XMLInterface[] objects,
gov.nih.nci.common.util.XMLInterface[][] children)
makeXMLStringTreeDoc() |
static void |
setXlinkNameSpace(org.w3c.dom.Element element)
|
static void |
toHeavyXML(gov.nih.nci.common.util.XMLInterface[] myObject,
org.w3c.dom.Node parent,
org.w3c.dom.Document doc)
|
static void |
toSelectedXML(gov.nih.nci.common.util.XMLInterface[] myObject,
java.util.ArrayList fillInNodes,
org.w3c.dom.Node parent,
org.w3c.dom.Document doc)
|
static void |
toXML(gov.nih.nci.common.util.XMLInterface[] myObject,
org.w3c.dom.Node parent,
org.w3c.dom.Document doc)
|
static void |
xmlStart(gov.nih.nci.common.util.XMLInterface myObject)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLUtility()
| Method Detail |
|---|
public static void toXML(gov.nih.nci.common.util.XMLInterface[] myObject,
org.w3c.dom.Node parent,
org.w3c.dom.Document doc)
public static void toHeavyXML(gov.nih.nci.common.util.XMLInterface[] myObject,
org.w3c.dom.Node parent,
org.w3c.dom.Document doc)
public static void toSelectedXML(gov.nih.nci.common.util.XMLInterface[] myObject,
java.util.ArrayList fillInNodes,
org.w3c.dom.Node parent,
org.w3c.dom.Document doc)
public static void xmlStart(gov.nih.nci.common.util.XMLInterface myObject)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static org.w3c.dom.Element CreateURL(java.lang.String objectName,
java.util.Hashtable criteria,
org.w3c.dom.Document doc)
public static org.w3c.dom.Element CreateURL(java.lang.String objectName,
java.lang.String tagName,
java.util.Hashtable criteria,
org.w3c.dom.Document doc)
public static void setXlinkNameSpace(org.w3c.dom.Element element)
public static java.lang.String makeXMLStringDoc(gov.nih.nci.common.util.XMLInterface[] objects)
throws org.apache.soap.SOAPException
Creates a string representation of each element in objects array.
objects - the array of elements
org.apache.soap.SOAPException
public static java.lang.String makeHeavyXMLStringDoc(gov.nih.nci.common.util.XMLInterface[] objects)
throws org.apache.soap.SOAPException
Creates a string representation of each element in objects array. The individual objects produce the "heavy" version of their XML
objects - the array of elements
org.apache.soap.SOAPException
public static java.lang.String makeXMLStringDoc(gov.nih.nci.common.util.XMLInterface[] objects,
java.util.ArrayList fillInObjects)
throws org.apache.soap.SOAPException
Creates a string representation of each element in objects array. The individual objects produce the "heavy" version of their XML based upon elements in the fillInObjects arraylist
objects - the array of elementsfillInObjects - objects in the XML to fill in
org.apache.soap.SOAPException
public static java.lang.String makeXMLStringDoc(gov.nih.nci.common.search.SearchResult searchResult,
boolean heavy)
throws org.apache.soap.SOAPException
Creates a string representation of each element in a search result.
search - resultif - heavy xml is requested
org.apache.soap.SOAPException
public static java.lang.String makeXMLStringDoc(gov.nih.nci.common.search.SearchResult searchResult,
java.util.ArrayList fillInObjects,
boolean heavy)
throws org.apache.soap.SOAPException
Creates a string representation of each element in a search result.
search - resultarraylist - of objects to fill inif - heavy xml is requested
org.apache.soap.SOAPException
public static java.lang.String makeXMLStringTreeDoc(gov.nih.nci.common.util.XMLInterface[] objects,
gov.nih.nci.common.util.XMLInterface[][] children)
throws org.apache.soap.SOAPException
Creates a string representation of an Element hierarchy in which objects and children have a one-to-one correspondence; for each object element, an array of children elements exist.
objects - the array of parent elementschildren - the multidimensional array of children elements (one array of children elements per parent element)
org.apache.soap.SOAPException
public static java.lang.String makeXMLStringTreeDoc(gov.nih.nci.common.util.XMLInterface[] objects,
gov.nih.nci.common.util.XMLInterface[] children)
throws org.apache.soap.SOAPException
Creates a string representation of an Element hierarchy in which objects and children have a one-to-one correspondence; for each object element, one child element exists.
objects - the array of parent elementschildren - the array of children elements (one child per parent)
org.apache.soap.SOAPException
public static java.lang.String elem2String(org.w3c.dom.Node elem)
throws org.apache.soap.SOAPException
Converts an XML element to a string representation
elem - the element to translate into a String
org.apache.soap.SOAPException
public org.w3c.dom.Element buildXMLMethods(org.w3c.dom.Element element,
java.util.Hashtable associationMethods,
java.util.ArrayList fillOutValues,
java.lang.Object theObject,
org.w3c.dom.Document doc)
Conveniance for the beans this method will return the XML for the methods associated with the bean
elem - the element to have the XML appendedassociatedMethods - a hash table of method descriptors for the beanfillOutValues - an ArrayList of methods that should have the XML filled in completelytheObject - a reference to the Object so methods may be invokeddoc - a document to work with
public org.w3c.dom.Element createAssociationElement(gov.nih.nci.common.util.XMLMethodDescriptor xmlMethDesc,
java.lang.Object id,
org.w3c.dom.Document doc)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||