public abstract class BaseReservationHandler<T> extends ParseSax.HandlerForGeneratedRequestWithResult<T>
Modifier and Type | Field and Description |
---|---|
protected RunningInstance.Builder<?> |
builder |
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) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String name,
String qName) |
protected boolean |
endOfInstanceItem() |
protected void |
inItem() |
protected RunningInstance.Builder<?> |
newBuilder() |
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 RunningInstance.Builder<?> builder
protected StringBuilder currentText
protected int itemDepth
protected boolean inInstancesSet
protected boolean inProductCodes
protected boolean inGroupSet
@Inject public BaseReservationHandler(DateCodecFactory dateCodecFactory, com.google.common.base.Supplier<String> defaultRegion)
protected RunningInstance.Builder<?> newBuilder()
protected void inItem()
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 refineBuilderBeforeAddingInstance()
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-2016 The Apache Software Foundation. All Rights Reserved.