org.tmatesoft.svn.core.wc.xml

Class SVNXMLStatusHandler

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.

Version: 1.1.1

Author: TMate Software Ltd.

Field Summary
static StringAUTHOR_TAG
static StringCOMMENT_TAG
static StringCOMMIT_TAG
static StringCOPIED_ATTR
static StringCREATED_TAG
static StringDATE_TAG
static StringENTRY_TAG
static StringEXPIRES_TAG
static StringITEM_ATTR
static StringLOCK_TAG
static StringOWNER_TAG
static StringPATH_ATTR
static StringPROPS_ATTR
static StringREMOTE_STATUS_TAG
static StringREVISION_ATTR
static StringSTATUS_TAG
static StringSWITCHED_ATTR
static StringTOKEN_TAG
static StringWC_LOCKED_ATTR
static StringWC_STATUS_TAG
Constructor Summary
SVNXMLStatusHandler(ContentHandler saxHandler)
Creates a new status handler.
SVNXMLStatusHandler(ContentHandler saxHandler, ISVNDebugLog log)
Creates a new status handler.
Method Summary
voidendTarget(long revision)
Closes the formatted XML with the revision against which the status is run.
protected StringgetHeaderName()
protected StringgetRelativePath(File path)
protected StringgetTargetPath()
voidhandleStatus(SVNStatus status)
voidstartTarget(File path)
Begins an XML tree with the target path for which the status is run.

Field Detail

AUTHOR_TAG

public static final String AUTHOR_TAG

COMMENT_TAG

public static final String COMMENT_TAG

COMMIT_TAG

public static final String COMMIT_TAG

COPIED_ATTR

public static final String COPIED_ATTR

CREATED_TAG

public static final String CREATED_TAG

DATE_TAG

public static final String DATE_TAG

ENTRY_TAG

public static final String ENTRY_TAG

EXPIRES_TAG

public static final String EXPIRES_TAG

ITEM_ATTR

public static final String ITEM_ATTR

LOCK_TAG

public static final String LOCK_TAG

OWNER_TAG

public static final String OWNER_TAG

PATH_ATTR

public static final String PATH_ATTR

PROPS_ATTR

public static final String PROPS_ATTR

REMOTE_STATUS_TAG

public static final String REMOTE_STATUS_TAG

REVISION_ATTR

public static final String REVISION_ATTR

STATUS_TAG

public static final String STATUS_TAG

SWITCHED_ATTR

public static final String SWITCHED_ATTR

TOKEN_TAG

public static final String TOKEN_TAG

WC_LOCKED_ATTR

public static final String WC_LOCKED_ATTR

WC_STATUS_TAG

public static final String WC_STATUS_TAG

Constructor Detail

SVNXMLStatusHandler

public SVNXMLStatusHandler(ContentHandler saxHandler)
Creates a new status handler.

Parameters: saxHandler a ContentHandler to form an XML tree

SVNXMLStatusHandler

public SVNXMLStatusHandler(ContentHandler saxHandler, ISVNDebugLog log)
Creates a new status handler.

Parameters: saxHandler a ContentHandler to form an XML tree log a debug logger

Method Detail

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

getHeaderName

protected String getHeaderName()

getRelativePath

protected String getRelativePath(File path)

getTargetPath

protected String getTargetPath()

handleStatus

public void handleStatus(SVNStatus status)

startTarget

public void startTarget(File path)
Begins an XML tree with the target path for which the status is run.

Parameters: path a WC target path

Copyright © 2004-2007 TMate Software Ltd. All Rights Reserved.