public abstract class BaseReservationHandler<T> extends ParseSax.HandlerForGeneratedRequestWithResult<T>
Modifier and Type | Field and Description |
---|---|
protected RunningInstance.Builder |
builder |
protected com.google.inject.Provider<RunningInstance.Builder> |
builderProvider |
protected StringBuilder |
currentText |
protected DateCodec |
dateCodec |
protected com.google.common.base.Supplier<String> |
defaultRegion |
protected boolean |
inGroupSet |
protected boolean |
inInstancesSet |
protected boolean |
inProductCodes |
protected int |
itemDepth |
Constructor and Description |
---|
BaseReservationHandler(DateCodecFactory dateCodecFactory,
com.google.common.base.Supplier<String> defaultRegion,
com.google.inject.Provider<RunningInstance.Builder> builderProvider) |
Modifier and Type | Method and Description |
---|---|
protected RunningInstance.Builder |
builder() |
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String name,
String qName) |
protected boolean |
endOfInstanceItem() |
protected void |
inItem() |
protected Reservation<? extends RunningInstance> |
newReservation() |
protected void |
refineBuilderBeforeAddingInstance() |
void |
startElement(String uri,
String name,
String qName,
Attributes attrs) |
getRequest, setContext
getResult
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected final DateCodec dateCodec
protected final com.google.common.base.Supplier<String> defaultRegion
protected final com.google.inject.Provider<RunningInstance.Builder> builderProvider
protected StringBuilder currentText
protected RunningInstance.Builder builder
protected int itemDepth
protected boolean inInstancesSet
protected boolean inProductCodes
protected boolean inGroupSet
@Inject public BaseReservationHandler(DateCodecFactory dateCodecFactory, com.google.common.base.Supplier<String> defaultRegion, com.google.inject.Provider<RunningInstance.Builder> builderProvider)
public void startElement(String uri, String name, String qName, Attributes attrs)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
public void endElement(String uri, String name, String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
protected void inItem()
protected void refineBuilderBeforeAddingInstance()
protected RunningInstance.Builder builder()
protected boolean endOfInstanceItem()
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
protected Reservation<? extends RunningInstance> newReservation()
Copyright © 2009-2013 jclouds. All Rights Reserved.