public class SVNXMLDirEntryHandler extends AbstractXMLHandler implements ISVNDirEntryHandler, Comparator
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 |
CREATED_TAG
'created' tag. |
static String |
DATE_TAG
'date' tag. |
static String |
ENTRY_TAG
'entry' tag. |
static String |
EXPIRES_TAG
'expires' tag. |
static String |
LIST_TAG
'list' tag. |
static String |
LISTS_TAG
'lists' tag. |
static String |
LOCK_TAG
'lock' tag. |
static String |
NAME_TAG
'name' tag. |
static String |
OWNER_TAG
'owner' tag. |
static String |
PATH_ATTR
'path' attribute. |
static String |
REVISION_ATTR
'revision' attribute. |
static String |
SIZE_TAG
'size' tag. |
static String |
TOKEN_TAG
'tag' tag. |
Constructor and Description |
---|
SVNXMLDirEntryHandler(ContentHandler saxHandler)
Creates a new handler.
|
SVNXMLDirEntryHandler(ContentHandler saxHandler,
ISVNDebugLog log)
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2)
Compares two objects.
|
void |
endTarget()
Closes the formatted XML output.
|
protected String |
getHeaderName() |
void |
handleDirEntry(SVNDirEntry entry)
Handles a next dir
entry . |
void |
startTarget(String 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
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
'tag'
tag.public static final String LOCK_TAG
'lock'
tag.public static final String PATH_ATTR
'path'
attribute.public static final String REVISION_ATTR
'revision'
attribute.public static final String LISTS_TAG
'lists'
tag.public static final String LIST_TAG
'list'
tag.public static final String ENTRY_TAG
'entry'
tag.public static final String NAME_TAG
'name'
tag.public static final String SIZE_TAG
'size'
tag.public static final String COMMIT_TAG
'commit'
tag.public static final String DATE_TAG
'date'
tag.public static final String AUTHOR_TAG
'author'
tag.public SVNXMLDirEntryHandler(ContentHandler saxHandler)
saxHandler
- a ContentHandler to form
an XML treepublic SVNXMLDirEntryHandler(ContentHandler saxHandler, ISVNDebugLog log)
saxHandler
- a ContentHandler to form
an XML treelog
- a debug loggerpublic void startTarget(String path)
path
- a WC target path or URLpublic void handleDirEntry(SVNDirEntry entry) throws SVNException
entry
.handleDirEntry
in interface ISVNDirEntryHandler
entry
- dir entrySVNException
SVNDirEntry
public void endTarget()
protected String getHeaderName()
getHeaderName
in class AbstractXMLHandler
public int compare(Object o1, Object o2)
compare
in interface Comparator
o1
- the first object to compareo2
- the second object to compareo1
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 otherwiseCopyright © 2023. All rights reserved.