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
Fields Modifier and Type Field Description 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
Constructors Constructor Description BaseVirtualSystemHandler(javax.inject.Provider<B> builderProvider, OperatingSystemSectionHandler osHandler, VirtualHardwareSectionHandler hardwareHandler, ProductSectionHandler productHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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("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 interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classSectionHandler<T extends BaseVirtualSystem<T>,B extends BaseVirtualSystem.Builder<T>>
-
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>>
-
-