Class SVNXMLDirEntryHandler

  • All Implemented Interfaces:
    java.util.Comparator, ISVNDirEntryHandler, org.xml.sax.Locator

    public class SVNXMLDirEntryHandler
    extends AbstractXMLHandler
    implements ISVNDirEntryHandler, java.util.Comparator
    This is an implementation of the ISVNStatusHandler interface that writes XML formatted status information to a specified ContentHandler.
    Since:
    1.2
    Version:
    1.3
    Author:
    TMate Software Ltd.
    • Constructor Detail

      • SVNXMLDirEntryHandler

        public SVNXMLDirEntryHandler​(org.xml.sax.ContentHandler saxHandler)
        Creates a new handler.
        Parameters:
        saxHandler - a ContentHandler to form an XML tree
      • SVNXMLDirEntryHandler

        public SVNXMLDirEntryHandler​(org.xml.sax.ContentHandler saxHandler,
                                     ISVNDebugLog log)
        Creates a new handler.
        Parameters:
        saxHandler - a ContentHandler to form an XML tree
        log - a debug logger
    • Method Detail

      • startTarget

        public void startTarget​(java.lang.String path)
        Begins an XML tree with the target path for which the status is run.
        Parameters:
        path - a WC target path or URL
      • endTarget

        public void endTarget()
        Closes the formatted XML output.
      • compare

        public int compare​(java.lang.Object o1,
                           java.lang.Object o2)
        Compares two objects.
        Specified by:
        compare in interface java.util.Comparator
        Parameters:
        o1 - the first object to compare
        o2 - the second object to compare
        Returns:
        0 if objects are equal; -1 if o1 is null or if both o1 and o2 are SVNDirEntry objects and the relative path of the first object is lexicographically less than that of the second one; 1 otherwise