org.jclouds.deltacloud.xml
Class HardwarePropertyHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jclouds.http.functions.ParseSax.HandlerWithResult<HardwareProperty>
          extended by org.jclouds.deltacloud.xml.HardwarePropertyHandler
All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<HardwareProperty>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class HardwarePropertyHandler
extends ParseSax.HandlerWithResult<HardwareProperty>

Author:
Adrian Cole

Constructor Summary
HardwarePropertyHandler()
           
 
Method Summary
 HardwareProperty getResult()
          resets state of the handler when called.
static Number parseNumberOrNull(String in)
           
 void startElement(String uri, String localName, String qName, Attributes attrs)
           
static Object stringOrNumber(String in)
           
 
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerWithResult
getRequest, setContext
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, 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
 

Constructor Detail

HardwarePropertyHandler

public HardwarePropertyHandler()
Method Detail

getResult

public HardwareProperty getResult()
resets state of the handler when called.

Specified by:
getResult in class ParseSax.HandlerWithResult<HardwareProperty>
Returns:
property or null

parseNumberOrNull

@Nullable
public static Number parseNumberOrNull(String in)

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attrs)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

stringOrNumber

public static Object stringOrNumber(String in)


Copyright © 2009-2011 jclouds. All Rights Reserved.