|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.extend.ExtendedClientApplicationParser
| Field Summary | |
static java.lang.String |
ATRIBUTE_OP
|
static java.lang.String |
DELETE_MANAGER_OP
|
static java.lang.String |
DELETE_OP
|
static java.lang.String |
FORM_ATRIBUTE
|
static java.lang.String |
ID_ATRIBUTE
|
static java.lang.String |
INSERT_MANAGER_OP
|
static java.lang.String |
INSERT_OP
|
static java.lang.String |
MODIFY_MANAGER_OP
|
static java.lang.String |
MODIFY_OP
|
static java.lang.String |
NAME_ATRIBUTE
|
static java.lang.String |
PARENT_ATRIBUTE
|
static java.lang.String |
REPLACE_OP
|
static java.lang.String |
TAGNAME
|
static java.lang.String |
VALUE_ATRIBUTE
|
| Constructor Summary | |
ExtendedClientApplicationParser()
|
|
| Method Summary | |
protected void |
executeOperation(org.w3c.dom.Document originalForm,
ExtendedClientApplicationOperation operation)
|
protected java.util.ArrayList |
extractOperationNodes(org.w3c.dom.Document extendDocument)
This method iterate along the extend document extracting all nodes of operations |
org.w3c.dom.Document |
getDocumentModel(java.io.File f)
|
protected InnerExtendedClientApplicationOperation |
getInternalNodeOperation(org.w3c.dom.Node node)
|
protected ExtendedClientApplicationOperation |
getNodeOperation(org.w3c.dom.Node node)
This method processes a node that contains an operaton and returns an instance of class XmlExtendsOperation with necessary information to apply this operation in original xml document |
protected boolean |
isExtendNode(org.w3c.dom.Node node)
Returns true or false if the node parameter is a operation node |
protected boolean |
isInternalOperationNode(org.w3c.dom.Node node)
|
protected org.w3c.dom.Document |
parse(org.w3c.dom.Document originalForm,
org.w3c.dom.Document extendDocument)
Executes all operations in extendDocument to modify the xml code in originalDocument |
org.w3c.dom.Document |
parseExtendedXml(org.w3c.dom.Document originalForm,
org.w3c.dom.Document extendDocument)
|
java.lang.String |
printDocument(org.w3c.dom.Document document)
|
protected org.w3c.dom.Node |
searchNodeByAttr(org.w3c.dom.Node node,
java.lang.String attrName,
java.lang.String attrValue)
Thes method makes a deep search of a node the by attr atribute. |
protected org.w3c.dom.Node |
searchNodeByElementName(org.w3c.dom.Node node,
java.lang.String name)
Thes method makes a deep search of a node the by element Name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String INSERT_OP
public static final java.lang.String MODIFY_OP
public static final java.lang.String REPLACE_OP
public static final java.lang.String DELETE_OP
public static final java.lang.String INSERT_MANAGER_OP
public static final java.lang.String DELETE_MANAGER_OP
public static final java.lang.String MODIFY_MANAGER_OP
public static final java.lang.String ATRIBUTE_OP
public static final java.lang.String PARENT_ATRIBUTE
public static final java.lang.String NAME_ATRIBUTE
public static final java.lang.String VALUE_ATRIBUTE
public static final java.lang.String FORM_ATRIBUTE
public static final java.lang.String ID_ATRIBUTE
public static final java.lang.String TAGNAME
| Constructor Detail |
public ExtendedClientApplicationParser()
| Method Detail |
public org.w3c.dom.Document parseExtendedXml(org.w3c.dom.Document originalForm,
org.w3c.dom.Document extendDocument)
protected void executeOperation(org.w3c.dom.Document originalForm,
ExtendedClientApplicationOperation operation)
throws java.lang.Exception
java.lang.Exception
protected org.w3c.dom.Node searchNodeByAttr(org.w3c.dom.Node node,
java.lang.String attrName,
java.lang.String attrValue)
node - The node in that the search is madeattrName - name of attribute of node searchedattrValue - value of attribute of node searched
protected org.w3c.dom.Node searchNodeByElementName(org.w3c.dom.Node node,
java.lang.String name)
node - The node in that the search is madename - element name of node searched
protected org.w3c.dom.Document parse(org.w3c.dom.Document originalForm,
org.w3c.dom.Document extendDocument)
originalForm - - The xml of the original fileextendDocument - - The xml containing the operations to apply in originalDocument
protected java.util.ArrayList extractOperationNodes(org.w3c.dom.Document extendDocument)
extendDocument -
protected ExtendedClientApplicationOperation getNodeOperation(org.w3c.dom.Node node)
throws java.lang.Exception
node - The node of operation
java.lang.Exception
protected InnerExtendedClientApplicationOperation getInternalNodeOperation(org.w3c.dom.Node node)
throws java.lang.Exception
java.lang.Exceptionprotected boolean isExtendNode(org.w3c.dom.Node node)
node - the node to checl
protected boolean isInternalOperationNode(org.w3c.dom.Node node)
public org.w3c.dom.Document getDocumentModel(java.io.File f)
public java.lang.String printDocument(org.w3c.dom.Document document)
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||