protected static class ArgHelper.DoubleMapping extends Object implements ArgHelper.Mapping
Represents the workings for a Double Mapping
Modifier | Constructor and Description |
---|---|
protected |
DoubleMapping() |
Modifier and Type | Method and Description |
---|---|
String |
encode(Object obj)
Implementation of encode.
|
String |
getElementName()
Implementation of getElementName.
|
Object |
getInstance(Element elem)
Implementation of getInstance.
|
Object |
getInstance(String elem)
getInstance purpose.
|
String |
getType()
Implementation of getType.
|
boolean |
isClass(Class c) |
boolean |
isClassInstance(Object c)
Implementation of isClassInstance.
|
String |
toString(Object o) |
public String getType()
getType
in interface ArgHelper.Mapping
ArgHelper.Mapping.getType()
public String getElementName()
getElementName
in interface ArgHelper.Mapping
ArgHelper.Mapping.getElementName()
public Object getInstance(Element elem)
getInstance
in interface ArgHelper.Mapping
elem
- Element the element to parse into a Double.NullPointerException
- DOCUMENT ME!ArgHelper.Mapping.getInstance(org.w3c.dom.Element)
public Object getInstance(String elem)
ArgHelper.Mapping
Creates an instance of the appropriate type for this Mapping. This is where type-dependant magic occurs
getInstance
in interface ArgHelper.Mapping
elem
- The Element to interpret.public boolean isClassInstance(Object c)
isClassInstance
in interface ArgHelper.Mapping
c
- The Object to testArgHelper.Mapping.isClassInstance(java.lang.Object)
public boolean isClass(Class c)
isClass
in interface ArgHelper.Mapping
public String encode(Object obj)
encode
in interface ArgHelper.Mapping
obj
- An object to encode as a Double.NullPointerException
- DOCUMENT ME!ClassCastException
- when obj is not of type DoubleArgHelper.Mapping.encode(java.lang.Object)
public String toString(Object o)
toString
in interface ArgHelper.Mapping
Copyright © 1996–2019 Geotools. All rights reserved.