org.jclouds.ovf.xml.internal
Class BaseVirtualSystemHandler<T extends BaseVirtualSystem<T>,B extends BaseVirtualSystem.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>
              extended by org.jclouds.ovf.xml.internal.BaseVirtualSystemHandler<T,B>
All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<T>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
VirtualSystemHandler, VMHandler

public class BaseVirtualSystemHandler<T extends BaseVirtualSystem<T>,B extends BaseVirtualSystem.Builder<T>>
extends SectionHandler<T,B>

Author:
Adrian Cole

Field Summary
protected  SectionHandler defaultSectionHandler
           
protected  SectionHandler extensionHandler
           
protected  Map<String,javax.inject.Provider<? extends SectionHandler>> extensionHandlers
           
 
Fields inherited from class org.jclouds.ovf.xml.SectionHandler
builder, builderProvider, currentText
 
Constructor Summary
BaseVirtualSystemHandler(javax.inject.Provider<B> builderProvider, OperatingSystemSectionHandler osHandler, VirtualHardwareSectionHandler hardwareHandler, ProductSectionHandler productHandler)
           
 
Method Summary
protected  void addAdditionalSection(String qName, Section additionalSection)
           
 void characters(char[] ch, int start, int length)
           
 void endElement(String uri, String localName, String qName)
           
protected  void setExtensionHandlers(Map<String,javax.inject.Provider<? extends SectionHandler>> extensionHandlers)
           
 void startElement(String uri, String localName, String qName, Attributes attrs)
           
 
Methods inherited from class org.jclouds.ovf.xml.SectionHandler
create, 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, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultSectionHandler

protected SectionHandler defaultSectionHandler

extensionHandlers

protected Map<String,javax.inject.Provider<? extends SectionHandler>> extensionHandlers

extensionHandler

protected SectionHandler extensionHandler
Constructor Detail

BaseVirtualSystemHandler

@Inject
public BaseVirtualSystemHandler(javax.inject.Provider<B> builderProvider,
                                       OperatingSystemSectionHandler osHandler,
                                       VirtualHardwareSectionHandler hardwareHandler,
                                       ProductSectionHandler productHandler)
Method Detail

setExtensionHandlers

@Inject(optional=true)
protected void setExtensionHandlers(@Named(value="VirtualSystem")
                                           Map<String,javax.inject.Provider<? extends SectionHandler>> extensionHandlers)

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attrs)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class SectionHandler<T extends BaseVirtualSystem<T>,B extends BaseVirtualSystem.Builder<T>>

addAdditionalSection

protected void addAdditionalSection(String qName,
                                    Section additionalSection)

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface ContentHandler
Overrides:
characters in class SectionHandler<T extends BaseVirtualSystem<T>,B extends BaseVirtualSystem.Builder<T>>


Copyright © 2009-2011 jclouds. All Rights Reserved.