org.jclouds.ovf.xml.internal
Class BaseVirtualSystemHandler<T extends BaseVirtualSystem<T>,B extends BaseVirtualSystem.Builder<T>>
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
org.jclouds.ovf.xml.SectionHandler<T,B>
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
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 |
defaultSectionHandler
protected SectionHandler defaultSectionHandler
extensionHandlers
protected Map<String,javax.inject.Provider<? extends SectionHandler>> extensionHandlers
extensionHandler
protected SectionHandler extensionHandler
BaseVirtualSystemHandler
@Inject
public BaseVirtualSystemHandler(javax.inject.Provider<B> builderProvider,
OperatingSystemSectionHandler osHandler,
VirtualHardwareSectionHandler hardwareHandler,
ProductSectionHandler productHandler)
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.