Class SvnInfoUtils.SvnInfoHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.sf.statsvn.util.SvnInfoUtils.SvnInfoHandler
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Direct Known Subclasses:
SvnKitInfo.SvnKitInfoHandler
- Enclosing class:
SvnInfoUtils
SAX parser for the svn info --xml command.
- Version:
- $Id: SvnInfoUtils.java 394 2009-08-10 20:08:46Z jkealey $
- Author:
- jkealey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Builds the string that was read; default implementation can invoke this function multiple times while reading the data.voidendElement(String uri, String localName, String qName) End of xml element.protected booleanisRootFolder(Attributes attributes) Is this the root of the workspace?protected static booleanisValidCommit(Attributes attributes) Is this a valid commit? Check to see if wec an read the revision number.protected static booleanisValidInfoEntry(Attributes attributes) Is this a valid info entry? Check to see if we can read path, kind and revision.voidstartElement(String uri, String localName, String qName, Attributes attributes) Start of XML element.Methods inherited from class DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Constructor Details
-
SvnInfoHandler
-
-
Method Details
-
getInfoUtils
-
characters
Builds the string that was read; default implementation can invoke this function multiple times while reading the data.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
endElement
End of xml element.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException Start of XML element.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
isRootFolder
Is this the root of the workspace?- Parameters:
attributes- the xml attributes- Returns:
- true if is the root folder.
-
isValidCommit
Is this a valid commit? Check to see if wec an read the revision number.- Parameters:
attributes- the xml attributes- Returns:
- true if is a valid commit.
-
isValidInfoEntry
Is this a valid info entry? Check to see if we can read path, kind and revision.- Parameters:
attributes- the xml attributes.- Returns:
- true if is a valid info entry.
-