| java.lang.Object org.webdocwf.util.loader.OctopusXMLUtil
OctopusXMLUtil | public class OctopusXMLUtil (Code) | | Class has utility methods.
author: Zoran Milakovic version: 1.1 |
Method Summary | |
public static Vector | getAttributeValues(NodeList tags, String attrName, String defaultValue) Gets attribute values from specified tags. | public static Element | getDocumentFragment(Document doc, String tagName, int iCurrent, int iImportJobItem) | public static String | importAttribute(Document doc, String strTagName, String strAttrName, int iImportJobItem) Method importAttribute reads value for strAttrName attribute in strTagName tag.
This method return this value.
Parameters: doc - Parsed import XML file. Parameters: strTagName - The name of tag where attribute is situated. Parameters: strAttrName - The name of tag attribute which reads input value. Parameters: iImportJobItem - Number of ImportDefinition tag which is processed. | public static String | importAttributeValue(Document doc, String strTagName, String strAttrName, int iImportJobItem) Method importAttributeValue reads value for strAttrName attribute in strTagName tag.
This method return this value.
Parameters: doc - Parsed import XML file. Parameters: strTagName - The name of tag where attribute is situated. Parameters: strAttrName - The name of tag attribute which reads input value. Parameters: iImportJobItem - Number of ImportDefinition tag which is processed. | public static Vector | importValue(Document doc, String tagName, String strAttrName, int iImportJobItem) Method importValue reads values from desired XML tag and puts them into Vector.
Parameters: doc - Parsed import XML file. Parameters: tagName - The name of XML tag. Parameters: strAttrName - The name of tag attribute which reads input strValue. Parameters: iImportJobItem - Number of ImportDefinition tag which is processed. | public static Vector | importValue(Document doc, String tagName, String strAttrName, int iImportJobItem, String defaultValue) Method importValue reads values from desired XML tag and puts them into Vector.
Parameters: doc - Parsed import XML file. Parameters: tagName - The name of XML tag. Parameters: strAttrName - The name of tag attribute which reads input strValue. Parameters: iImportJobItem - Number of ImportDefinition tag which is processed. Parameters: defaultValue - The default value of strattrname attribute. | public static Vector | importValueForTransform(Element docFragment, String tagName, String strAttrName) Method importValue reads values from desired XML tag and puts them into Vector.
Parameters: docFragment - Parsed import XML file. Parameters: tagName - The name of XML tag. Parameters: strAttrName - The name of tag attribute which reads input strValue. |
getAttributeValues | public static Vector getAttributeValues(NodeList tags, String attrName, String defaultValue)(Code) | | Gets attribute values from specified tags.
Parameters: tags - NodeList of tags to check for attribute Parameters: attrName - name of attribute Parameters: defaultValue - defaultValue if attribute is not defined vector which contains values |
getDocumentFragment | public static Element getDocumentFragment(Document doc, String tagName, int iCurrent, int iImportJobItem)(Code) | | Vector of importing values. |
importAttribute | public static String importAttribute(Document doc, String strTagName, String strAttrName, int iImportJobItem)(Code) | | Method importAttribute reads value for strAttrName attribute in strTagName tag.
This method return this value.
Parameters: doc - Parsed import XML file. Parameters: strTagName - The name of tag where attribute is situated. Parameters: strAttrName - The name of tag attribute which reads input value. Parameters: iImportJobItem - Number of ImportDefinition tag which is processed. String - importing value. |
importAttributeValue | public static String importAttributeValue(Document doc, String strTagName, String strAttrName, int iImportJobItem)(Code) | | Method importAttributeValue reads value for strAttrName attribute in strTagName tag.
This method return this value.
Parameters: doc - Parsed import XML file. Parameters: strTagName - The name of tag where attribute is situated. Parameters: strAttrName - The name of tag attribute which reads input value. Parameters: iImportJobItem - Number of ImportDefinition tag which is processed. String - importing value. |
importValue | public static Vector importValue(Document doc, String tagName, String strAttrName, int iImportJobItem)(Code) | | Method importValue reads values from desired XML tag and puts them into Vector.
Parameters: doc - Parsed import XML file. Parameters: tagName - The name of XML tag. Parameters: strAttrName - The name of tag attribute which reads input strValue. Parameters: iImportJobItem - Number of ImportDefinition tag which is processed. Vector of importing values. |
importValue | public static Vector importValue(Document doc, String tagName, String strAttrName, int iImportJobItem, String defaultValue)(Code) | | Method importValue reads values from desired XML tag and puts them into Vector.
Parameters: doc - Parsed import XML file. Parameters: tagName - The name of XML tag. Parameters: strAttrName - The name of tag attribute which reads input strValue. Parameters: iImportJobItem - Number of ImportDefinition tag which is processed. Parameters: defaultValue - The default value of strattrname attribute. Vector of importing values. |
importValueForTransform | public static Vector importValueForTransform(Element docFragment, String tagName, String strAttrName)(Code) | | Method importValue reads values from desired XML tag and puts them into Vector.
Parameters: docFragment - Parsed import XML file. Parameters: tagName - The name of XML tag. Parameters: strAttrName - The name of tag attribute which reads input strValue. Vector of importing values. |
|
|