Ontimize 5.2072EN

com.ontimize.util.extend
Class ExtendedFormXmlParser

java.lang.Object
  extended bycom.ontimize.util.extend.ExtendedXmlParser
      extended bycom.ontimize.util.extend.ExtendedFormXmlParser
Direct Known Subclasses:
ExtendedMenuXmlParser

public class ExtendedFormXmlParser
extends ExtendedXmlParser


Field Summary
 
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
 
Constructor Summary
ExtendedFormXmlParser()
           
 
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 com.ontimize.util.extend.ExtendedXmlParser
extractOperationNodes, getDocumentModel, getExtendedFile, getExtendedFile, getExtendedInput, getNodeOperation, isExtendedNode, parse, parseExtendedXml, printDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedFormXmlParser

public ExtendedFormXmlParser()
Method Detail

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 begins
parentType - Type of element to search
level - 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 made
attr - attr attribute of node searched
Returns:
the searched node or null if the node is not found

Ontimize