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 Bbuilderprotected javax.inject.Provider<? extends Section.Builder<T>>builderProviderprotected StringBuildercurrentText
-
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 voidcharacters(char[] ch, int start, int length)static SectionHandlercreate()voidendElement(String uri, String localName, String qName)TgetResult()-
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:
getResultin classParseSax.HandlerWithResult<T extends Section<T>>
-
endElement
public void endElement(String uri, String localName, String qName)
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length)- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
-