protected static class ArgHelper.DateMapping extends Object implements ArgHelper.Mapping
Represents the workings for a Date Mapping
Modifier | Constructor and Description |
---|---|
protected |
DateMapping() |
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) throws ValidationException
getInstance
in interface ArgHelper.Mapping
elem
- Element the element to parse into a Date.ValidationException
- DOCUMENT ME!NullPointerException
- DOCUMENT ME!ArgHelper.Mapping.getInstance(org.w3c.dom.Element)
public Object getInstance(String elem) throws ValidationException
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.ValidationException
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 Date.NullPointerException
- DOCUMENT ME!ClassCastException
- when obj is not of type DateArgHelper.Mapping.encode(java.lang.Object)
public String toString(Object o)
toString
in interface ArgHelper.Mapping
Copyright © 1996–2019 Geotools. All rights reserved.