org.tmatesoft.svn.core.wc.xml

Class SVNXMLDirEntryHandler

public class SVNXMLDirEntryHandler extends AbstractXMLHandler implements ISVNDirEntryHandler, Comparator

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 StringCREATED_TAG
static StringDATE_TAG
static StringENTRY_TAG
static StringEXPIRES_TAG
static StringLISTS_TAG
static StringLIST_TAG
static StringLOCK_TAG
static StringNAME_TAG
static StringOWNER_TAG
static StringPATH_ATTR
static StringREVISION_ATTR
static StringSIZE_TAG
static StringTOKEN_TAG
Constructor Summary
SVNXMLDirEntryHandler(ContentHandler saxHandler)
Creates a new handler.
SVNXMLDirEntryHandler(ContentHandler saxHandler, ISVNDebugLog log)
Creates a new handler.
Method Summary
intcompare(Object o1, Object o2)
Compares two objects.
voidendTarget()
Closes the formatted XML output.
protected StringgetHeaderName()
voidhandleDirEntry(SVNDirEntry entry)
voidstartTarget(String 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

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

LISTS_TAG

public static final String LISTS_TAG

LIST_TAG

public static final String LIST_TAG

LOCK_TAG

public static final String LOCK_TAG

NAME_TAG

public static final String NAME_TAG

OWNER_TAG

public static final String OWNER_TAG

PATH_ATTR

public static final String PATH_ATTR

REVISION_ATTR

public static final String REVISION_ATTR

SIZE_TAG

public static final String SIZE_TAG

TOKEN_TAG

public static final String TOKEN_TAG

Constructor Detail

SVNXMLDirEntryHandler

public SVNXMLDirEntryHandler(ContentHandler saxHandler)
Creates a new handler.

Parameters: saxHandler a ContentHandler to form an XML tree

SVNXMLDirEntryHandler

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

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

Method Detail

compare

public int compare(Object o1, Object o2)
Compares two objects.

Parameters: o1 the first object to compare o2 the second object to compare

Returns: 0 if objects are equal; -1 if o1 is null or if both o1 and o2 are SVNDirEntry objects and the relative path of the first object is lexicographically less than that of the second one; 1 otherwise

endTarget

public void endTarget()
Closes the formatted XML output.

getHeaderName

protected String getHeaderName()

handleDirEntry

public void handleDirEntry(SVNDirEntry entry)

startTarget

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

Parameters: path a WC target path or URL

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