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 SectionHandler
protected SectionHandler
protected Map
<String, jakarta.inject.Provider<? extends SectionHandler>> Fields inherited from class org.jclouds.ovf.xml.SectionHandler
builder, builderProvider, currentText
-
Constructor Summary
ConstructorsConstructorDescriptionBaseVirtualSystemHandler
(jakarta.inject.Provider<B> builderProvider, OperatingSystemSectionHandler osHandler, VirtualHardwareSectionHandler hardwareHandler, ProductSectionHandler productHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, jakarta.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
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
defaultSectionHandler
-
extensionHandlers
-
extensionHandler
-
-
Constructor Details
-
BaseVirtualSystemHandler
@Inject public BaseVirtualSystemHandler(jakarta.inject.Provider<B> builderProvider, OperatingSystemSectionHandler osHandler, VirtualHardwareSectionHandler hardwareHandler, ProductSectionHandler productHandler)
-
-
Method Details
-
setExtensionHandlers
@Inject(optional=true) protected void setExtensionHandlers(@Named("VirtualSystem") Map<String, jakarta.inject.Provider<? extends SectionHandler>> extensionHandlers) -
startElement
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classSectionHandler<T extends BaseVirtualSystem<T>,
B extends BaseVirtualSystem.Builder<T>>
-
addAdditionalSection
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classSectionHandler<T extends BaseVirtualSystem<T>,
B extends BaseVirtualSystem.Builder<T>>
-