Class SVNXMLStatusHandler

  • All Implemented Interfaces:
    ISVNStatusHandler, org.xml.sax.Locator

    public class SVNXMLStatusHandler
    extends AbstractXMLHandler
    implements ISVNStatusHandler
    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.
    • Field Detail

      • EXPIRES_TAG

        public static final java.lang.String EXPIRES_TAG
        'expires' tag.
        See Also:
        Constant Field Values
      • CREATED_TAG

        public static final java.lang.String CREATED_TAG
        'created' tag.
        See Also:
        Constant Field Values
      • COMMENT_TAG

        public static final java.lang.String COMMENT_TAG
        'comment' tag.
        See Also:
        Constant Field Values
      • AUTHOR_TAG

        public static final java.lang.String AUTHOR_TAG
        'author' tag.
        See Also:
        Constant Field Values
      • REMOTE_STATUS_TAG

        public static final java.lang.String REMOTE_STATUS_TAG
        'repos-status' tag.
        See Also:
        Constant Field Values
      • COMMIT_TAG

        public static final java.lang.String COMMIT_TAG
        'commit' tag.
        See Also:
        Constant Field Values
      • WC_STATUS_TAG

        public static final java.lang.String WC_STATUS_TAG
        'wc-status' tag.
        See Also:
        Constant Field Values
      • STATUS_TAG

        public static final java.lang.String STATUS_TAG
        'status' tag.
        See Also:
        Constant Field Values
      • REVISION_ATTR

        public static final java.lang.String REVISION_ATTR
        'revision' attribute.
        See Also:
        Constant Field Values
      • SWITCHED_ATTR

        public static final java.lang.String SWITCHED_ATTR
        'switched' attribute.
        See Also:
        Constant Field Values
      • COPIED_ATTR

        public static final java.lang.String COPIED_ATTR
        'copied' attribute.
        See Also:
        Constant Field Values
      • WC_LOCKED_ATTR

        public static final java.lang.String WC_LOCKED_ATTR
        'wc-locked' attribute.
        See Also:
        Constant Field Values
      • PROPS_ATTR

        public static final java.lang.String PROPS_ATTR
        'props' attribute.
        See Also:
        Constant Field Values
      • ITEM_ATTR

        public static final java.lang.String ITEM_ATTR
        'item' attribute.
        See Also:
        Constant Field Values
      • PATH_ATTR

        public static final java.lang.String PATH_ATTR
        'path' attribute.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SVNXMLStatusHandler

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

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

      • startTarget

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

        public void endTarget​(long revision)
        Closes the formatted XML with the revision against which the status is run.
        Parameters:
        revision - a revision against which the status is run
      • getRelativePath

        protected java.lang.String getRelativePath​(java.io.File path)
      • getTargetPath

        protected java.lang.String getTargetPath()