Class FieldDataInfo

java.lang.Object
com.nt.udc.ei.node.amadirpei.configReader.FieldDataInfo

public class FieldDataInfo extends Object
This class is used to store a field info line from the AMA config file (ex: "BYTES myfield 4,")
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get a field length
    Get a field name
    int
    Get a field type
    void
    setLength(int length2)
    Set a field length
    void
    setName(String name2)
    Set a field name
    void
    setType(int type2)
    Set a field type Note : this shouldn't be used as we assume all types are "Bytes" (kept for a future version)
    boolean
    setType(String type2)
    Set a field type Note : this shouldn't be used as we assume all types are "String" (kept for a future version)
    Convert a FieldData object into a String (for debug purposes)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FieldDataInfo

      public FieldDataInfo()
  • Method Details

    • setType

      public void setType(int type2)
      Set a field type Note : this shouldn't be used as we assume all types are "Bytes" (kept for a future version)
      Parameters:
      type2 - field type
    • setType

      public boolean setType(String type2)
      Set a field type Note : this shouldn't be used as we assume all types are "String" (kept for a future version)
      Parameters:
      type2 - field type
      Returns:
      true : ok false : unrecognized type
    • setName

      public void setName(String name2)
      Set a field name
      Parameters:
      name2 - field name
    • setLength

      public void setLength(int length2)
      Set a field length
      Parameters:
      length2 - field length
    • getType

      public int getType()
      Get a field type
      Returns:
      field type
    • getName

      public String getName()
      Get a field name
      Returns:
      field name
    • getLength

      public int getLength()
      Get a field length
      Returns:
      Field length
    • toString

      public String toString()
      Convert a FieldData object into a String (for debug purposes)
      Overrides:
      toString in class Object
      Returns:
      String representation of the object