Ontimize 5.2072EN

com.ontimize.util.extend
Class ExtendedMenuXmlParser

java.lang.Object
  extended bycom.ontimize.util.extend.ExtendedXmlParser
      extended bycom.ontimize.util.extend.ExtendedFormXmlParser
          extended bycom.ontimize.util.extend.ExtendedMenuXmlParser

public class ExtendedMenuXmlParser
extends ExtendedFormXmlParser


Nested Class Summary
protected  class ExtendedMenuXmlParser.ExtendedMenuXmlOperation
          Implementation of REMOVE_SEPARATOR_OP extending super class
 
Field Summary
static java.lang.String MENU_ELEMENT
           
static java.lang.String MENU_SEPARATOR
           
static java.lang.String POSITION_ATRIBUTE
           
static java.lang.String REMOVE_SEPARATOR_OP
           
static java.lang.String TOOLBAR_ELEMENT
           
static java.lang.String TOOLBAR_SEPARATOR
           
 
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
ExtendedMenuXmlParser()
           
 
Method Summary
protected  void executeOperation(org.w3c.dom.Document originalForm, ExtendedXmlOperation operation)
          This method extends functionality of super method adding REMOVE_SEPARATOR_OP.
protected  ExtendedXmlOperation getNodeOperation(org.w3c.dom.Node node)
          Extends super method to add REMOVE_SEPARATOR_OP functionality
protected  boolean isExtendedNode(org.w3c.dom.Node node)
          The REMOVE_SEPARATOR_OP is an extend operation too
 
Methods inherited from class com.ontimize.util.extend.ExtendedFormXmlParser
searchNode, searchParentInLevel
 
Methods inherited from class com.ontimize.util.extend.ExtendedXmlParser
extractOperationNodes, getDocumentModel, getExtendedFile, getExtendedFile, getExtendedInput, parse, parseExtendedXml, printDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOVE_SEPARATOR_OP

public static final java.lang.String REMOVE_SEPARATOR_OP
See Also:
Constant Field Values

POSITION_ATRIBUTE

public static final java.lang.String POSITION_ATRIBUTE
See Also:
Constant Field Values

MENU_SEPARATOR

public static final java.lang.String MENU_SEPARATOR
See Also:
Constant Field Values

TOOLBAR_SEPARATOR

public static final java.lang.String TOOLBAR_SEPARATOR
See Also:
Constant Field Values

MENU_ELEMENT

public static final java.lang.String MENU_ELEMENT
See Also:
Constant Field Values

TOOLBAR_ELEMENT

public static final java.lang.String TOOLBAR_ELEMENT
See Also:
Constant Field Values
Constructor Detail

ExtendedMenuXmlParser

public ExtendedMenuXmlParser()
Method Detail

executeOperation

protected void executeOperation(org.w3c.dom.Document originalForm,
                                ExtendedXmlOperation operation)
                         throws java.lang.Exception
This method extends functionality of super method adding REMOVE_SEPARATOR_OP. This operation removes the element or without attr in original Xml

Overrides:
executeOperation in class ExtendedFormXmlParser
Throws:
java.lang.Exception

getNodeOperation

protected ExtendedXmlOperation getNodeOperation(org.w3c.dom.Node node)
                                         throws java.lang.Exception
Extends super method to add REMOVE_SEPARATOR_OP functionality

Overrides:
getNodeOperation in class ExtendedXmlParser
Parameters:
node - The node of operation
Returns:
An instance of class XmlExtendsOperation
Throws:
java.lang.Exception

isExtendedNode

protected boolean isExtendedNode(org.w3c.dom.Node node)
The REMOVE_SEPARATOR_OP is an extend operation too

Overrides:
isExtendedNode in class ExtendedXmlParser
Parameters:
node - the node to checl
Returns:
true or falsse

Ontimize