Package org.tmatesoft.svn.core.wc.xml
Class SVNXMLDirEntryHandler
java.lang.Object
org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
org.tmatesoft.svn.core.wc.xml.SVNXMLDirEntryHandler
- All Implemented Interfaces:
Comparator,ISVNDirEntryHandler,Locator
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.
- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String'author'tag.static final String'comment'tag.static final String'commit'tag.static final String'created'tag.static final String'date'tag.static final String'entry'tag.static final String'expires'tag.static final String'list'tag.static final String'lists'tag.static final String'lock'tag.static final String'name'tag.static final String'owner'tag.static final String'path'attribute.static final String'revision'attribute.static final String'size'tag.static final String'tag'tag. -
Constructor Summary
ConstructorsConstructorDescriptionSVNXMLDirEntryHandler(ContentHandler saxHandler) Creates a new handler.SVNXMLDirEntryHandler(ContentHandler saxHandler, org.tmatesoft.svn.util.ISVNDebugLog log) Creates a new handler. -
Method Summary
Modifier and TypeMethodDescriptionintCompares two objects.voidCloses the formatted XML output.protected StringvoidhandleDirEntry(SVNDirEntry entry) Handles a next direntry.voidstartTarget(String path) Begins an XML tree with the target path for which the status is run.Methods inherited from class org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
addAttribute, addTag, closeTag, endDocument, getColumnNumber, getDebugLog, getLineNumber, getPublicId, getSystemId, openTag, startDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
EXPIRES_TAG
'expires'tag.- See Also:
-
CREATED_TAG
'created'tag.- See Also:
-
COMMENT_TAG
'comment'tag.- See Also:
-
OWNER_TAG
'owner'tag.- See Also:
-
TOKEN_TAG
'tag'tag.- See Also:
-
LOCK_TAG
'lock'tag.- See Also:
-
PATH_ATTR
'path'attribute.- See Also:
-
REVISION_ATTR
'revision'attribute.- See Also:
-
LISTS_TAG
'lists'tag.- See Also:
-
LIST_TAG
'list'tag.- See Also:
-
ENTRY_TAG
'entry'tag.- See Also:
-
NAME_TAG
'name'tag.- See Also:
-
SIZE_TAG
'size'tag.- See Also:
-
COMMIT_TAG
'commit'tag.- See Also:
-
DATE_TAG
'date'tag.- See Also:
-
AUTHOR_TAG
'author'tag.- See Also:
-
-
Constructor Details
-
SVNXMLDirEntryHandler
Creates a new handler.- Parameters:
saxHandler- a ContentHandler to form an XML tree
-
SVNXMLDirEntryHandler
Creates a new handler.- Parameters:
saxHandler- a ContentHandler to form an XML treelog- a debug logger
-
-
Method Details
-
startTarget
Begins an XML tree with the target path for which the status is run.- Parameters:
path- a WC target path or URL
-
handleDirEntry
Handles a next direntry.- Specified by:
handleDirEntryin interfaceISVNDirEntryHandler- Parameters:
entry- dir entry- Throws:
SVNException- See Also:
-
endTarget
public void endTarget()Closes the formatted XML output. -
getHeaderName
- Specified by:
getHeaderNamein classAbstractXMLHandler
-
compare
Compares two objects.- Specified by:
comparein interfaceComparator- Parameters:
o1- the first object to compareo2- the second object to compare- Returns:
- 0 if objects are equal; -1 if
o1is null or if botho1ando2are SVNDirEntry objects and the relative path of the first object is lexicographically less than that of the second one; 1 otherwise
-