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,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
- Author:
- TMate Software Ltd.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String'author'tag.static final String'comment'tag.static final String'commit'tag.static final String'copied'attribute.static final String'created'tag.static final String'date'tag.static final String'entry'tag.static final String'expires'tag.static final String'item'attribute.static final String'lock'tag.static final String'owner'tag.static final String'path'attribute.static final String'props'attribute.static final String'repos-status'tag.static final String'revision'attribute.static final String'status'tag.static final String'switched'attribute.static final String'token'tag.static final String'wc-locked'attribute.static final String'wc-status'tag. -
Constructor Summary
ConstructorsConstructorDescriptionSVNXMLStatusHandler(ContentHandler saxHandler) Creates a new status handler.SVNXMLStatusHandler(ContentHandler saxHandler, org.tmatesoft.svn.util.ISVNDebugLog log) Creates a new status handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidendTarget(long revision) Closes the formatted XML with the revision against which the status is run.protected Stringprotected StringgetRelativePath(File path) protected StringvoidhandleStatus(SVNStatus status) Handles a nextstatusobject producing corresponding xml.voidstartTarget(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
-
Field Details
-
EXPIRES_TAG
'expires'tag.- See Also:
-
CREATED_TAG
'created'tag.- See Also:
-
COMMENT_TAG
'comment'tag.- See Also:
-
OWNER_TAG
'owner'tag.- See Also:
-
TOKEN_TAG
'token'tag.- See Also:
-
DATE_TAG
'date'tag.- See Also:
-
AUTHOR_TAG
'author'tag.- See Also:
-
REMOTE_STATUS_TAG
'repos-status'tag.- See Also:
-
LOCK_TAG
'lock'tag.- See Also:
-
COMMIT_TAG
'commit'tag.- See Also:
-
WC_STATUS_TAG
'wc-status'tag.- See Also:
-
ENTRY_TAG
'entry'tag.- See Also:
-
STATUS_TAG
'status'tag.- See Also:
-
REVISION_ATTR
'revision'attribute.- See Also:
-
SWITCHED_ATTR
'switched'attribute.- See Also:
-
COPIED_ATTR
'copied'attribute.- See Also:
-
WC_LOCKED_ATTR
'wc-locked'attribute.- See Also:
-
PROPS_ATTR
'props'attribute.- See Also:
-
ITEM_ATTR
'item'attribute.- See Also:
-
PATH_ATTR
'path'attribute.- See Also:
-
-
Constructor Details
-
SVNXMLStatusHandler
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
Begins an XML tree with the target path for which the status is run.- Parameters:
path- a WC target path
-
handleStatus
Handles a nextstatusobject producing corresponding xml.- Specified by:
handleStatusin 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
-
getRelativePath
-
getTargetPath
-
getHeaderName
- Specified by:
getHeaderNamein classAbstractXMLHandler
-