Class InfoStructureModule

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

public class InfoStructureModule extends Object
This class is intended to store all information concerning one structure / module
  • Constructor Details

    • InfoStructureModule

      public InfoStructureModule(String code2, String name2)
      Construct an InfoStructure object
      Parameters:
      code2 - structure/module code
      name2 - structure/module name
  • Method Details

    • addFieldInfo

      public void addFieldInfo(String fieldName, int fieldLength, int fieldType)
      Add a field information (type, name, length) to the information concerning a structure/module
      Parameters:
      fieldName - field name
      fieldLength - field length
      fieldType - field type
    • getCode

      public String getCode()
      Get the structure/module code
      Returns:
      structure/module code
    • getName

      public String getName()
      Get the structure/module name
      Returns:
      structure/module name
    • getFieldsNames

      public Vector getFieldsNames()
      Get all the fields names used by a structure/module
      Returns:
      list of fields names
    • getFieldsLength

      public Vector getFieldsLength()
      Get all the fields length of the fields used by a structure/module
      Returns:
      list of length
    • getTotalLength

      public int getTotalLength()
      Get the structure or module total length in bytes
      Returns:
      total length
    • getFieldsTypes

      public Vector getFieldsTypes()
      Get all the fields types used by a structure/module
      Returns:
      list of types
    • toString

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