org.jostraca.resource
Class SimpleDataObject

java.lang.Object
  extended byorg.jostraca.resource.SimpleDataObject

public class SimpleDataObject
extends java.lang.Object

Imutable description of a simple data object which encodes the meta data: ObjectName Field1Item1 Field1Item2 Field1ItemN Field2Item1 Field2Item2 Field2ItemN ... FieldNItem1 FieldNItem2 FieldNItemN Whitespace is ignored.


Field Summary
static int DEFAULT_NumItemsPerField
           
 
Constructor Summary
SimpleDataObject(java.lang.String pBasicDescription)
           
SimpleDataObject(java.lang.String pBasicDescription, int pNumItemsPerField)
          Creates meta data description from text format.
 
Method Summary
 java.lang.String getEighth()
           
 java.lang.String getFieldName()
          Get name of current field
 java.lang.String getFieldType()
          Get type of current field
 java.lang.String getFifth()
           
 java.lang.String getFirst()
           
 java.lang.String getFourth()
           
 java.lang.String getItem(int pItem)
          Get specific item value
 java.lang.String getName()
          Get Name of data object
static java.lang.String[] getNames(SimpleDataObject[] pSDOs)
          Get the list of names of the objects as a String array
 java.lang.String getNinth()
           
 java.lang.String getSecond()
           
 java.lang.String getSeventh()
           
 java.lang.String getSixth()
           
 java.lang.String getTenth()
           
 java.lang.String getThird()
           
 boolean nextField()
          Moves to next field in list of fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NumItemsPerField

public static final int DEFAULT_NumItemsPerField
See Also:
Constant Field Values
Constructor Detail

SimpleDataObject

public SimpleDataObject(java.lang.String pBasicDescription)

SimpleDataObject

public SimpleDataObject(java.lang.String pBasicDescription,
                        int pNumItemsPerField)
Creates meta data description from text format.

Parameters:
pBasicDescription - Text format describing meta data.
Method Detail

getName

public java.lang.String getName()
Get Name of data object


getFieldName

public java.lang.String getFieldName()
Get name of current field

See Also:
getFirst()

getFieldType

public java.lang.String getFieldType()
Get type of current field

See Also:
getSecond()

getFirst

public java.lang.String getFirst()

getSecond

public java.lang.String getSecond()

getThird

public java.lang.String getThird()

getFourth

public java.lang.String getFourth()

getFifth

public java.lang.String getFifth()

getSixth

public java.lang.String getSixth()

getSeventh

public java.lang.String getSeventh()

getEighth

public java.lang.String getEighth()

getNinth

public java.lang.String getNinth()

getTenth

public java.lang.String getTenth()

getItem

public java.lang.String getItem(int pItem)
Get specific item value

Parameters:
pItem - index of item

nextField

public boolean nextField()
Moves to next field in list of fields. Call before processing a field.


getNames

public static java.lang.String[] getNames(SimpleDataObject[] pSDOs)
Get the list of names of the objects as a String array



Copyright © 2000-2002 Richard Rodger