Package org.jclouds.sqs.xml
Class TextFromSingleElementHandler<V>
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<V>
-
- org.jclouds.sqs.xml.TextFromSingleElementHandler<V>
-
- All Implemented Interfaces:
com.google.common.base.Function<String,V>
,Function<String,V>
,InvocationContext<ParseSax.HandlerWithResult<V>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Direct Known Subclasses:
IdHandler
,ValueHandler
public abstract class TextFromSingleElementHandler<V> extends ParseSax.HandlerForGeneratedRequestWithResult<V> implements com.google.common.base.Function<String,V>
looks for a single value in the xml
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TextFromSingleElementHandler(String elementName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endElement(String uri, String name, String qName)
V
getResult()
-
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult
getRequest, setContext
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
TextFromSingleElementHandler
protected TextFromSingleElementHandler(String elementName)
-
-
Method Detail
-
getResult
public V getResult()
- Specified by:
getResult
in classParseSax.HandlerWithResult<V>
-
endElement
public void endElement(String uri, String name, String qName)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
-