umich.cac.data
Class DateField

java.lang.Object
  extended byumich.cac.data.Field
      extended byumich.cac.data.DateField

public class DateField
extends Field

This class encapsulates Date fields. PBS encodes the date as "10/12/07 10:23:01" all in the same field. This type of date is split into TWO fields using child fields in this field: the DAY portion, and the TIME portion. The resulting XML will thus look similar to

  <date> <day>10/12/07</day> <time>10:23:01</time> </date>
 

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/doc/javadoc/umich/cac/data/DateField.html,v 1.6 2003/10/21 20:33:47 rodmach Exp $
Author:
rmach@umich.edu

Field Summary
 
Fields inherited from class umich.cac.data.Field
childrenFields, fieldName, fieldType, nl, rawValue
 
Constructor Summary
DateField(FieldName fieldName, java.lang.String rawValue)
          Constructor for DateField field
 
Methods inherited from class umich.cac.data.Field
addAttribute, addChild, getAttributes, getChildren, getFieldName, getFieldType, getRawValue, setRawValue, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateField

public DateField(FieldName fieldName,
                 java.lang.String rawValue)
Constructor for DateField field

Parameters:
fieldName - FieldName The name of the field
rawValue - The raw date value from PBS