org.jclouds.ovf.xml
Class SectionHandler<T extends Section<T>,B extends Section.Builder<T>>

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
          extended by org.jclouds.ovf.xml.SectionHandler<T,B>
All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<T>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
BaseVirtualSystemHandler, DeploymentOptionSectionHandler, DiskSectionHandler, NetworkConfigSectionHandler, NetworkConnectionSectionHandler, NetworkSectionHandler, NetworkSectionHandler, OperatingSystemSectionHandler, ProductSectionHandler, VirtualHardwareSectionHandler

public class SectionHandler<T extends Section<T>,B extends Section.Builder<T>>
extends ParseSax.HandlerWithResult<T>

Author:
Adrian Cole

Field Summary
protected  B builder
           
protected  javax.inject.Provider<? extends Section.Builder<T>> builderProvider
           
protected  StringBuilder currentText
           
 
Constructor Summary
SectionHandler(javax.inject.Provider<B> builderProvider)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class ParseSax.HandlerWithResult<T extends Section<T>>

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler


Copyright © 2009-2011 jclouds. All Rights Reserved.