Package org.tmatesoft.svn.core.wc.xml
Class SVNXMLStatusHandler
java.lang.Object
org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
org.tmatesoft.svn.core.wc.xml.SVNXMLStatusHandler
- All Implemented Interfaces:
ISVNStatusHandler
,org.xml.sax.Locator
This is an implementation of the ISVNStatusHandler interface
that writes XML formatted status information to a specified
ContentHandler.
- Since:
- 1.2
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final java.lang.String
static final java.lang.String
'author'
tag.static final java.lang.String
'comment'
tag.static final java.lang.String
'commit'
tag.static final java.lang.String
'copied'
attribute.static final java.lang.String
'created'
tag.static final java.lang.String
'date'
tag.static final java.lang.String
'entry'
tag.static final java.lang.String
'expires'
tag.static final java.lang.String
'item'
attribute.static final java.lang.String
'lock'
tag.private java.io.File
static final java.lang.String
'owner'
tag.static final java.lang.String
'path'
attribute.static final java.lang.String
'props'
attribute.static final java.lang.String
'repos-status'
tag.static final java.lang.String
'revision'
attribute.static final java.lang.String
'status'
tag.static final java.lang.String
'switched'
attribute.private static final java.lang.String
static final java.lang.String
'token'
tag.private static final java.lang.String
static final java.lang.String
'wc-locked'
attribute.static final java.lang.String
'wc-status'
tag. -
Constructor Summary
ConstructorsConstructorDescriptionSVNXMLStatusHandler
(org.xml.sax.ContentHandler saxHandler) Creates a new status handler.SVNXMLStatusHandler
(org.xml.sax.ContentHandler saxHandler, ISVNDebugLog log) Creates a new status handler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
endTarget
(long revision) Closes the formatted XML with the revision against which the status is run.protected java.lang.String
protected java.lang.String
getRelativePath
(java.io.File path) protected java.lang.String
void
handleStatus
(SVNStatus status) Handles a nextstatus
object producing corresponding xml.private void
sendToHandler
(SVNStatus status) void
startTarget
(java.io.File path) Begins an XML tree with the target path for which the status is run.Methods inherited from class org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
addAttribute, addTag, closeTag, endDocument, getColumnNumber, getDebugLog, getLineNumber, getPublicId, getSystemId, openTag, startDocument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
AGAINST_TAG
private static final java.lang.String AGAINST_TAG- See Also:
-
TARGET_TAG
private static final java.lang.String TARGET_TAG- See Also:
-
EXPIRES_TAG
public static final java.lang.String EXPIRES_TAG'expires'
tag.- See Also:
-
CREATED_TAG
public static final java.lang.String CREATED_TAG'created'
tag.- See Also:
-
COMMENT_TAG
public static final java.lang.String COMMENT_TAG'comment'
tag.- See Also:
-
OWNER_TAG
public static final java.lang.String OWNER_TAG'owner'
tag.- See Also:
-
TOKEN_TAG
public static final java.lang.String TOKEN_TAG'token'
tag.- See Also:
-
DATE_TAG
public static final java.lang.String DATE_TAG'date'
tag.- See Also:
-
AUTHOR_TAG
public static final java.lang.String AUTHOR_TAG'author'
tag.- See Also:
-
REMOTE_STATUS_TAG
public static final java.lang.String REMOTE_STATUS_TAG'repos-status'
tag.- See Also:
-
LOCK_TAG
public static final java.lang.String LOCK_TAG'lock'
tag.- See Also:
-
COMMIT_TAG
public static final java.lang.String COMMIT_TAG'commit'
tag.- See Also:
-
WC_STATUS_TAG
public static final java.lang.String WC_STATUS_TAG'wc-status'
tag.- See Also:
-
ENTRY_TAG
public static final java.lang.String ENTRY_TAG'entry'
tag.- See Also:
-
STATUS_TAG
public static final java.lang.String STATUS_TAG'status'
tag.- See Also:
-
REVISION_ATTR
public static final java.lang.String REVISION_ATTR'revision'
attribute.- See Also:
-
SWITCHED_ATTR
public static final java.lang.String SWITCHED_ATTR'switched'
attribute.- See Also:
-
COPIED_ATTR
public static final java.lang.String COPIED_ATTR'copied'
attribute.- See Also:
-
WC_LOCKED_ATTR
public static final java.lang.String WC_LOCKED_ATTR'wc-locked'
attribute.- See Also:
-
PROPS_ATTR
public static final java.lang.String PROPS_ATTR'props'
attribute.- See Also:
-
ITEM_ATTR
public static final java.lang.String ITEM_ATTR'item'
attribute.- See Also:
-
PATH_ATTR
public static final java.lang.String PATH_ATTR'path'
attribute.- See Also:
-
TRUE
private static final java.lang.String TRUE- See Also:
-
myTargetPath
private java.io.File myTargetPath
-
-
Constructor Details
-
SVNXMLStatusHandler
public SVNXMLStatusHandler(org.xml.sax.ContentHandler saxHandler) Creates a new status handler.- Parameters:
saxHandler
- a ContentHandler to form an XML tree
-
SVNXMLStatusHandler
Creates a new status handler.- Parameters:
saxHandler
- a ContentHandler to form an XML treelog
- a debug logger
-
-
Method Details
-
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
-
handleStatus
Handles a nextstatus
object producing corresponding xml.- Specified by:
handleStatus
in interfaceISVNStatusHandler
- Parameters:
status
-- Throws:
SVNException
-
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
-
sendToHandler
- Throws:
org.xml.sax.SAXException
-
getRelativePath
protected java.lang.String getRelativePath(java.io.File path) -
getTargetPath
protected java.lang.String getTargetPath() -
getHeaderName
protected java.lang.String getHeaderName()- Specified by:
getHeaderName
in classAbstractXMLHandler
-