public class SVNXMLDirEntryHandler extends AbstractXMLHandler implements ISVNDirEntryHandler, java.util.Comparator
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 |
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 |
LIST_TAG
'list' tag. |
static java.lang.String |
LISTS_TAG
'lists' tag. |
static java.lang.String |
LOCK_TAG
'lock' tag. |
static java.lang.String |
NAME_TAG
'name' tag. |
static java.lang.String |
OWNER_TAG
'owner' tag. |
static java.lang.String |
PATH_ATTR
'path' attribute. |
static java.lang.String |
REVISION_ATTR
'revision' attribute. |
static java.lang.String |
SIZE_TAG
'size' tag. |
static java.lang.String |
TOKEN_TAG
'tag' tag. |
Constructor and Description |
---|
SVNXMLDirEntryHandler(org.xml.sax.ContentHandler saxHandler)
Creates a new handler.
|
SVNXMLDirEntryHandler(org.xml.sax.ContentHandler saxHandler,
ISVNDebugLog log)
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two objects.
|
void |
endTarget()
Closes the formatted XML output.
|
protected java.lang.String |
getHeaderName() |
void |
handleDirEntry(SVNDirEntry entry)
Handles a next dir
entry . |
void |
startTarget(java.lang.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
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
'tag'
tag.public static final java.lang.String LOCK_TAG
'lock'
tag.public static final java.lang.String PATH_ATTR
'path'
attribute.public static final java.lang.String REVISION_ATTR
'revision'
attribute.public static final java.lang.String LISTS_TAG
'lists'
tag.public static final java.lang.String LIST_TAG
'list'
tag.public static final java.lang.String ENTRY_TAG
'entry'
tag.public static final java.lang.String NAME_TAG
'name'
tag.public static final java.lang.String SIZE_TAG
'size'
tag.public static final java.lang.String COMMIT_TAG
'commit'
tag.public static final java.lang.String DATE_TAG
'date'
tag.public static final java.lang.String AUTHOR_TAG
'author'
tag.public SVNXMLDirEntryHandler(org.xml.sax.ContentHandler saxHandler)
saxHandler
- a ContentHandler to form
an XML treepublic SVNXMLDirEntryHandler(org.xml.sax.ContentHandler saxHandler, ISVNDebugLog log)
saxHandler
- a ContentHandler to form
an XML treelog
- a debug loggerpublic void startTarget(java.lang.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 java.lang.String getHeaderName()
getHeaderName
in class AbstractXMLHandler
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.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 © 2004-2012 TMate Software Ltd. All Rights Reserved.