Package org.jclouds.ovf.xml
Class SectionHandler<T extends Section<T>,B extends Section.Builder<T>>
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.ovf.xml.SectionHandler<T,B>
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<T>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Direct Known Subclasses:
BaseVirtualSystemHandler
,DeploymentOptionSectionHandler
,DiskSectionHandler
,NetworkSectionHandler
,OperatingSystemSectionHandler
,ProductSectionHandler
,VirtualHardwareSectionHandler
public class SectionHandler<T extends Section<T>,B extends Section.Builder<T>> extends ParseSax.HandlerWithResult<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected B
builder
protected javax.inject.Provider<? extends Section.Builder<T>>
builderProvider
protected StringBuilder
currentText
-
Constructor Summary
Constructors Constructor Description SectionHandler(javax.inject.Provider<B> builderProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
static SectionHandler
create()
void
endElement(String uri, String localName, String qName)
T
getResult()
-
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerWithResult
getRequest, setContext
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
builderProvider
protected final javax.inject.Provider<? extends Section.Builder<T extends Section<T>>> builderProvider
-
currentText
protected StringBuilder currentText
-
builder
protected B extends Section.Builder<T> builder
-
-
Constructor Detail
-
SectionHandler
public SectionHandler(javax.inject.Provider<B> builderProvider)
-
-
Method Detail
-
create
public static SectionHandler create()
-
getResult
public T getResult()
- Specified by:
getResult
in classParseSax.HandlerWithResult<T extends Section<T>>
-
endElement
public void endElement(String uri, String localName, String qName)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
-