public class SVNXMLStatusHandler extends AbstractXMLHandler implements ISVNStatusHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHOR_TAG
'author' tag. |
static java.lang.String |
COMMENT_TAG
'comment' tag. |
static java.lang.String |
COMMIT_TAG
'commit' tag. |
static java.lang.String |
COPIED_ATTR
'copied' attribute. |
static java.lang.String |
CREATED_TAG
'created' tag. |
static java.lang.String |
DATE_TAG
'date' tag. |
static java.lang.String |
ENTRY_TAG
'entry' tag. |
static java.lang.String |
EXPIRES_TAG
'expires' tag. |
static java.lang.String |
ITEM_ATTR
'item' attribute. |
static java.lang.String |
LOCK_TAG
'lock' tag. |
static java.lang.String |
OWNER_TAG
'owner' tag. |
static java.lang.String |
PATH_ATTR
'path' attribute. |
static java.lang.String |
PROPS_ATTR
'props' attribute. |
static java.lang.String |
REMOTE_STATUS_TAG
'repos-status' tag. |
static java.lang.String |
REVISION_ATTR
'revision' attribute. |
static java.lang.String |
STATUS_TAG
'status' tag. |
static java.lang.String |
SWITCHED_ATTR
'switched' attribute. |
static java.lang.String |
TOKEN_TAG
'token' tag. |
static java.lang.String |
WC_LOCKED_ATTR
'wc-locked' attribute. |
static java.lang.String |
WC_STATUS_TAG
'wc-status' tag. |
Constructor and Description |
---|
SVNXMLStatusHandler(org.xml.sax.ContentHandler saxHandler)
Creates a new status handler.
|
SVNXMLStatusHandler(org.xml.sax.ContentHandler saxHandler,
ISVNDebugLog log)
Creates a new status handler.
|
Modifier and Type | Method and Description |
---|---|
void |
endTarget(long revision)
Closes the formatted XML with the revision against which
the status is run.
|
protected java.lang.String |
getHeaderName() |
protected java.lang.String |
getRelativePath(java.io.File path) |
protected java.lang.String |
getTargetPath() |
void |
handleStatus(SVNStatus status)
Handles a next
status object producing corresponding xml. |
void |
startTarget(java.io.File path)
Begins an XML tree with the target path for which the
status is run.
|
addAttribute, addTag, closeTag, endDocument, getColumnNumber, getDebugLog, getLineNumber, getPublicId, getSystemId, openTag, startDocument
public static final java.lang.String EXPIRES_TAG
'expires'
tag.public static final java.lang.String CREATED_TAG
'created'
tag.public static final java.lang.String COMMENT_TAG
'comment'
tag.public static final java.lang.String OWNER_TAG
'owner'
tag.public static final java.lang.String TOKEN_TAG
'token'
tag.public static final java.lang.String DATE_TAG
'date'
tag.public static final java.lang.String AUTHOR_TAG
'author'
tag.public static final java.lang.String REMOTE_STATUS_TAG
'repos-status'
tag.public static final java.lang.String LOCK_TAG
'lock'
tag.public static final java.lang.String COMMIT_TAG
'commit'
tag.public static final java.lang.String WC_STATUS_TAG
'wc-status'
tag.public static final java.lang.String ENTRY_TAG
'entry'
tag.public static final java.lang.String STATUS_TAG
'status'
tag.public static final java.lang.String REVISION_ATTR
'revision'
attribute.public static final java.lang.String SWITCHED_ATTR
'switched'
attribute.public static final java.lang.String COPIED_ATTR
'copied'
attribute.public static final java.lang.String WC_LOCKED_ATTR
'wc-locked'
attribute.public static final java.lang.String PROPS_ATTR
'props'
attribute.public static final java.lang.String ITEM_ATTR
'item'
attribute.public static final java.lang.String PATH_ATTR
'path'
attribute.public SVNXMLStatusHandler(org.xml.sax.ContentHandler saxHandler)
saxHandler
- a ContentHandler to form
an XML treepublic SVNXMLStatusHandler(org.xml.sax.ContentHandler saxHandler, ISVNDebugLog log)
saxHandler
- a ContentHandler to form
an XML treelog
- a debug loggerpublic void startTarget(java.io.File path)
path
- a WC target pathpublic void handleStatus(SVNStatus status) throws SVNException
status
object producing corresponding xml.handleStatus
in interface ISVNStatusHandler
status
- SVNException
public void endTarget(long revision)
revision
- a revision against which the status is runprotected java.lang.String getRelativePath(java.io.File path)
protected java.lang.String getTargetPath()
protected java.lang.String getHeaderName()
getHeaderName
in class AbstractXMLHandler
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.