public class SVNXMLStatusHandler extends AbstractXMLHandler implements ISVNStatusHandler
Modifier and Type | Field and Description |
---|---|
static String |
AUTHOR_TAG
'author' tag. |
static String |
COMMENT_TAG
'comment' tag. |
static String |
COMMIT_TAG
'commit' tag. |
static String |
COPIED_ATTR
'copied' attribute. |
static String |
CREATED_TAG
'created' tag. |
static String |
DATE_TAG
'date' tag. |
static String |
ENTRY_TAG
'entry' tag. |
static String |
EXPIRES_TAG
'expires' tag. |
static String |
ITEM_ATTR
'item' attribute. |
static String |
LOCK_TAG
'lock' tag. |
static String |
OWNER_TAG
'owner' tag. |
static String |
PATH_ATTR
'path' attribute. |
static String |
PROPS_ATTR
'props' attribute. |
static String |
REMOTE_STATUS_TAG
'repos-status' tag. |
static String |
REVISION_ATTR
'revision' attribute. |
static String |
STATUS_TAG
'status' tag. |
static String |
SWITCHED_ATTR
'switched' attribute. |
static String |
TOKEN_TAG
'token' tag. |
static String |
WC_LOCKED_ATTR
'wc-locked' attribute. |
static String |
WC_STATUS_TAG
'wc-status' tag. |
Constructor and Description |
---|
SVNXMLStatusHandler(ContentHandler saxHandler)
Creates a new status handler.
|
SVNXMLStatusHandler(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 String |
getHeaderName() |
protected String |
getRelativePath(File path) |
protected String |
getTargetPath() |
void |
handleStatus(SVNStatus status)
Handles a next
status object producing corresponding xml. |
void |
startTarget(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 String EXPIRES_TAG
'expires'
tag.public static final String CREATED_TAG
'created'
tag.public static final String COMMENT_TAG
'comment'
tag.public static final String OWNER_TAG
'owner'
tag.public static final String TOKEN_TAG
'token'
tag.public static final String DATE_TAG
'date'
tag.public static final String AUTHOR_TAG
'author'
tag.public static final String REMOTE_STATUS_TAG
'repos-status'
tag.public static final String LOCK_TAG
'lock'
tag.public static final String COMMIT_TAG
'commit'
tag.public static final String WC_STATUS_TAG
'wc-status'
tag.public static final String ENTRY_TAG
'entry'
tag.public static final String STATUS_TAG
'status'
tag.public static final String REVISION_ATTR
'revision'
attribute.public static final String SWITCHED_ATTR
'switched'
attribute.public static final String COPIED_ATTR
'copied'
attribute.public static final String WC_LOCKED_ATTR
'wc-locked'
attribute.public static final String PROPS_ATTR
'props'
attribute.public static final String ITEM_ATTR
'item'
attribute.public static final String PATH_ATTR
'path'
attribute.public SVNXMLStatusHandler(ContentHandler saxHandler)
saxHandler
- a ContentHandler to form
an XML treepublic SVNXMLStatusHandler(ContentHandler saxHandler, ISVNDebugLog log)
saxHandler
- a ContentHandler to form
an XML treelog
- a debug loggerpublic void startTarget(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 String getTargetPath()
protected String getHeaderName()
getHeaderName
in class AbstractXMLHandler
Copyright © 2022. All rights reserved.