arta.synergy.web.common.client.data.xml
Class CompareXMLFiles

java.lang.Object
  extended by arta.synergy.web.common.client.data.xml.CompareXMLFiles

public class CompareXMLFiles
extends java.lang.Object

Created by IntelliJ IDEA. User: artur Date: 10.07.13 Time: 9:39 To change this template use File | Settings | File Templates.


Constructor Summary
CompareXMLFiles()
           
 
Method Summary
 boolean diff(org.w3c.dom.Node node1, org.w3c.dom.Node node2, java.util.List<java.lang.String> diffs)
          Diff 2 nodes and put the diffs in the list
 boolean diff(java.lang.String xml1, java.lang.String xml2, java.util.List<java.lang.String> diffs)
           
 boolean diffAttributes(org.w3c.dom.Node node1, org.w3c.dom.Node node2, java.util.List<java.lang.String> diffs)
          Diff the nodes
 boolean diffNodeExists(org.w3c.dom.Node node1, org.w3c.dom.Node node2, java.util.List<java.lang.String> diffs)
          Check that the nodes exist
 boolean diffNodes(org.w3c.dom.Node node1, org.w3c.dom.Node node2, java.util.List<java.lang.String> diffs)
          Diff the nodes
 boolean diffNodeType(org.w3c.dom.Node node1, org.w3c.dom.Node node2, java.util.List<java.lang.String> diffs)
          Diff the Node Type
 boolean diffNodeValue(org.w3c.dom.Node node1, org.w3c.dom.Node node2, java.util.List<java.lang.String> diffs)
          Diff the Node Value
 java.lang.String getFirstFile()
          Извлекаем содержимое первого файла для последующего сравнения
 java.lang.String getPath(org.w3c.dom.Node node)
          Get the node path
 java.lang.String getSecondFile()
          Извлекаем содержимое второго файла для последующего сравнения
 void toAdd(org.w3c.dom.Node node1, org.w3c.dom.Node node2, java.util.List<java.lang.String> diffs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareXMLFiles

public CompareXMLFiles()
Method Detail

toAdd

public void toAdd(org.w3c.dom.Node node1,
                  org.w3c.dom.Node node2,
                  java.util.List<java.lang.String> diffs)

diff

public boolean diff(java.lang.String xml1,
                    java.lang.String xml2,
                    java.util.List<java.lang.String> diffs)
             throws java.lang.Exception
Throws:
java.lang.Exception

diff

public boolean diff(org.w3c.dom.Node node1,
                    org.w3c.dom.Node node2,
                    java.util.List<java.lang.String> diffs)
             throws java.lang.Exception
Diff 2 nodes and put the diffs in the list

Throws:
java.lang.Exception

diffNodes

public boolean diffNodes(org.w3c.dom.Node node1,
                         org.w3c.dom.Node node2,
                         java.util.List<java.lang.String> diffs)
                  throws java.lang.Exception
Diff the nodes

Throws:
java.lang.Exception

diffAttributes

public boolean diffAttributes(org.w3c.dom.Node node1,
                              org.w3c.dom.Node node2,
                              java.util.List<java.lang.String> diffs)
                       throws java.lang.Exception
Diff the nodes

Throws:
java.lang.Exception

diffNodeExists

public boolean diffNodeExists(org.w3c.dom.Node node1,
                              org.w3c.dom.Node node2,
                              java.util.List<java.lang.String> diffs)
                       throws java.lang.Exception
Check that the nodes exist

Throws:
java.lang.Exception

diffNodeType

public boolean diffNodeType(org.w3c.dom.Node node1,
                            org.w3c.dom.Node node2,
                            java.util.List<java.lang.String> diffs)
                     throws java.lang.Exception
Diff the Node Type

Throws:
java.lang.Exception

diffNodeValue

public boolean diffNodeValue(org.w3c.dom.Node node1,
                             org.w3c.dom.Node node2,
                             java.util.List<java.lang.String> diffs)
                      throws java.lang.Exception
Diff the Node Value

Throws:
java.lang.Exception

getPath

public java.lang.String getPath(org.w3c.dom.Node node)
Get the node path


getFirstFile

public java.lang.String getFirstFile()
Извлекаем содержимое первого файла для последующего сравнения

Returns:
возвращает содержиемое файла

getSecondFile

public java.lang.String getSecondFile()
Извлекаем содержимое второго файла для последующего сравнения

Returns:
возвращает содержиемое файла


Copyright © 2000 Dummy Corp. All Rights Reserved.