com.ontimize.util.extend
Class ExtendedFormXmlParser
java.lang.Object
com.ontimize.util.extend.ExtendedXmlParser
com.ontimize.util.extend.ExtendedFormXmlParser
- Direct Known Subclasses:
- ExtendedMenuXmlParser
- public class ExtendedFormXmlParser
- extends ExtendedXmlParser
| Fields inherited from class com.ontimize.util.extend.ExtendedXmlParser |
ATTR_ATRIBUTE, CONTAINER_ATRIBUTE, DEBUG, FORM_EXTENDS, INSERT_AFTER_OP, INSERT_BEFORE_OP, LEVELS_ATRIBUTE, MENU_EXTENDS, REMOVE_OP, REPLACE_OP, TOOLBAR_EXTENDS |
|
Method Summary |
protected void |
executeOperation(org.w3c.dom.Document originalForm,
ExtendedXmlOperation operation)
|
protected org.w3c.dom.Node |
searchNode(org.w3c.dom.Node node,
java.lang.String attr)
The method makes a deep search of a node the by attr attribute. |
protected org.w3c.dom.Node |
searchParentInLevel(org.w3c.dom.Node node,
java.lang.String parentType,
int level)
Recursive method that searches in a node an element of type parentType and
itīs in the exact level beginning the count of levels in the node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedFormXmlParser
public ExtendedFormXmlParser()
executeOperation
protected void executeOperation(org.w3c.dom.Document originalForm,
ExtendedXmlOperation operation)
throws java.lang.Exception
- Specified by:
executeOperation in class ExtendedXmlParser
- Throws:
java.lang.Exception
searchParentInLevel
protected org.w3c.dom.Node searchParentInLevel(org.w3c.dom.Node node,
java.lang.String parentType,
int level)
- Recursive method that searches in a node an element of type parentType and
itīs in the exact level beginning the count of levels in the node. The
method makes an inverse deep search of an element in a node
- Parameters:
node - The node in which search operation is made and in which the search
beginsparentType - Type of element to searchlevel - Number of elements of type parentType than exist before the
searched element
- Returns:
- the searched node or null if itīs not found
searchNode
protected org.w3c.dom.Node searchNode(org.w3c.dom.Node node,
java.lang.String attr)
- The method makes a deep search of a node the by attr attribute.
- Parameters:
node - The node in that the search is madeattr - attr attribute of node searched
- Returns:
- the searched node or null if the node is not found