org.opencms.workplace.comparison
Class CmsXmlDocumentComparison

java.lang.Object
  extended by org.opencms.workplace.comparison.CmsResourceComparison
      extended by org.opencms.workplace.comparison.CmsXmlDocumentComparison

public class CmsXmlDocumentComparison
extends CmsResourceComparison

A comparison of properties, attributes and elements of xml documents.

Author:
Jan Baudisch

Field Summary
 
Fields inherited from class org.opencms.workplace.comparison.CmsResourceComparison
TYPE_ADDED, TYPE_CHANGED, TYPE_REMOVED, TYPE_UNCHANGED
 
Constructor Summary
CmsXmlDocumentComparison(CmsObject cms, CmsFile res1, CmsFile res2)
          Creates a new xml document comparison.
 
Method Summary
 java.util.List getElements()
          Returns the elements.
 
Methods inherited from class org.opencms.workplace.comparison.CmsResourceComparison
compareAttributes, compareProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsXmlDocumentComparison

public CmsXmlDocumentComparison(CmsObject cms,
                                CmsFile res1,
                                CmsFile res2)
                         throws CmsException
Creates a new xml document comparison.

Parameters:
cms - the CmsObject to use
res1 - the first file to compare
res2 - the second file to compare
Throws:
CmsException - if something goes wrong
Method Detail

getElements

public java.util.List getElements()
Returns the elements.

Returns:
the elements