Package 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
public class BaseVirtualSystemHandler<T extends BaseVirtualSystem<T>,B extends BaseVirtualSystem.Builder<T>>
extends SectionHandler<T,B>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SectionHandlerprotected SectionHandlerprotected Map<String, javax.inject.Provider<? extends SectionHandler>> Fields inherited from class org.jclouds.ovf.xml.SectionHandler
builder, builderProvider, currentText -
Constructor Summary
ConstructorsConstructorDescriptionBaseVirtualSystemHandler(javax.inject.Provider<B> builderProvider, OperatingSystemSectionHandler osHandler, VirtualHardwareSectionHandler hardwareHandler, ProductSectionHandler productHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAdditionalSection(String qName, Section additionalSection) voidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String qName) protected voidsetExtensionHandlers(Map<String, javax.inject.Provider<? extends SectionHandler>> extensionHandlers) voidstartElement(String uri, String localName, String qName, Attributes attrs) Methods inherited from class org.jclouds.ovf.xml.SectionHandler
create, getResultMethods inherited from class org.jclouds.http.functions.ParseSax.HandlerWithResult
getRequest, setContextMethods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
defaultSectionHandler
-
extensionHandlers
-
extensionHandler
-
-
Constructor Details
-
BaseVirtualSystemHandler
@Inject public BaseVirtualSystemHandler(javax.inject.Provider<B> builderProvider, OperatingSystemSectionHandler osHandler, VirtualHardwareSectionHandler hardwareHandler, ProductSectionHandler productHandler)
-
-
Method Details
-
setExtensionHandlers
@Inject(optional=true) protected void setExtensionHandlers(@Named("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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classSectionHandler<T extends BaseVirtualSystem<T>,B extends BaseVirtualSystem.Builder<T>>
-
addAdditionalSection
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classSectionHandler<T extends BaseVirtualSystem<T>,B extends BaseVirtualSystem.Builder<T>>
-