org.jclouds.deltacloud.xml
Class HardwarePropertyHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jclouds.http.functions.ParseSax.HandlerWithResult<HardwareProperty>
org.jclouds.deltacloud.xml.HardwarePropertyHandler
- All Implemented Interfaces:
- org.jclouds.rest.InvocationContext<org.jclouds.http.functions.ParseSax.HandlerWithResult<HardwareProperty>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class HardwarePropertyHandler
- extends org.jclouds.http.functions.ParseSax.HandlerWithResult<HardwareProperty>
- Author:
- Adrian Cole
| 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 |
HardwarePropertyHandler
public HardwarePropertyHandler()
getResult
public HardwareProperty getResult()
- resets state of the handler when called.
- Specified by:
getResult in class org.jclouds.http.functions.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 DefaultHandler
- Throws:
SAXException
stringOrNumber
public static Object stringOrNumber(String in)
Copyright © 2009-2012 jclouds. All Rights Reserved.