com.oakgrovesystems.xml
Class XMLComparison

java.lang.Object
  |
  +--com.oakgrovesystems.xml.XMLComparison

public class XMLComparison
extends java.lang.Object


Field Summary
protected  java.lang.Boolean different
           
protected  java.lang.StringBuffer message
           
protected  com.oakgrovesystems.xml.XMLObject xmlObjectA
           
protected  com.oakgrovesystems.xml.XMLObject xmlObjectB
           
 
Constructor Summary
XMLComparison(com.oakgrovesystems.xml.XMLObject a, com.oakgrovesystems.xml.XMLObject b)
           
 
Method Summary
 void compare()
           
 java.lang.String getDifferences()
           
static java.lang.String getDifferences(java.io.File fileA, java.io.File fileB)
           
 boolean hasDifferences()
           
static void main(java.lang.String[] args)
           
static java.io.File[] parseArgs(java.lang.String[] args)
           
protected static java.lang.String readFile(java.io.File file)
           
protected  boolean sameAttributes(org.jdom.Element elementA, org.jdom.Element elementB)
           
protected  boolean sameChildren(org.jdom.Element parentA, org.jdom.Element parentB)
           
protected  boolean sameContent(org.jdom.Element elementA, org.jdom.Element elementB)
           
protected  boolean sameElements(org.jdom.Element a, org.jdom.Element b)
           
protected  boolean sameNames(org.jdom.Element elementA, org.jdom.Element elementB)
           
protected  boolean sameNamespaces(org.jdom.Element elementA, org.jdom.Element elementB)
           
protected  java.lang.String toString(org.jdom.Namespace ns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlObjectA

protected com.oakgrovesystems.xml.XMLObject xmlObjectA

xmlObjectB

protected com.oakgrovesystems.xml.XMLObject xmlObjectB

different

protected java.lang.Boolean different

message

protected java.lang.StringBuffer message
Constructor Detail

XMLComparison

public XMLComparison(com.oakgrovesystems.xml.XMLObject a,
                     com.oakgrovesystems.xml.XMLObject b)
Method Detail

getDifferences

public static java.lang.String getDifferences(java.io.File fileA,
                                              java.io.File fileB)
                                       throws java.io.IOException
java.io.IOException

compare

public void compare()
             throws org.jdom.JDOMException
org.jdom.JDOMException

hasDifferences

public boolean hasDifferences()

getDifferences

public java.lang.String getDifferences()

sameElements

protected boolean sameElements(org.jdom.Element a,
                               org.jdom.Element b)

sameNames

protected boolean sameNames(org.jdom.Element elementA,
                            org.jdom.Element elementB)

sameNamespaces

protected boolean sameNamespaces(org.jdom.Element elementA,
                                 org.jdom.Element elementB)

toString

protected java.lang.String toString(org.jdom.Namespace ns)

sameAttributes

protected boolean sameAttributes(org.jdom.Element elementA,
                                 org.jdom.Element elementB)

sameContent

protected boolean sameContent(org.jdom.Element elementA,
                              org.jdom.Element elementB)

sameChildren

protected boolean sameChildren(org.jdom.Element parentA,
                               org.jdom.Element parentB)

readFile

protected static java.lang.String readFile(java.io.File file)
                                    throws java.io.IOException
java.io.IOException

parseArgs

public static java.io.File[] parseArgs(java.lang.String[] args)

main

public static void main(java.lang.String[] args)


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.