net.sf.colle.xml
Class DateMapper
java.lang.Object
net.sf.colle.xml.Mapper
net.sf.colle.xml.DateMapper
- class DateMapper
- extends Mapper
Maps java.util.Date objects.
Created: 15 Jul 2003
- Version:
- $Revision: 1.1 $, $Date: 2003/07/16 20:20:18 $
- Author:
- Dwayne Schultz
Constructor Summary |
(package private) |
DateMapper()
Constructs a mapper with the parent mapper. |
Method Summary |
protected void |
map(org.jdom.Element pxParent,
Object pxObject,
Set pxPaths,
String psPath)
Maps the object into a DOM document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateMapper
DateMapper()
- Constructs a mapper with the parent mapper. Sub-class mappers should
defer mapping of child objects to the parent mapper.
map
protected void map(org.jdom.Element pxParent,
Object pxObject,
Set pxPaths,
String psPath)
- Maps the object into a DOM document. This version is usually used by
generated mappers because it allows the caller to specify the path to the
object being mapped. This is important to determine if children objects
and expensive attributes should be mapped.
- Specified by:
map
in class Mapper
- Parameters:
pxParent
- parent element to add new elements ontopxObject
- object being mappedpxPaths
- paths to each explicitly requested objectpsPath
- xpath to the current object