Class InfoStructureModule
java.lang.Object
com.nt.udc.ei.node.amadirpei.configReader.InfoStructureModule
This class is intended to store all information concerning one structure / module
-
Constructor Summary
ConstructorsConstructorDescriptionInfoStructureModule(String code2, String name2) Construct an InfoStructure object -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFieldInfo(String fieldName, int fieldLength, int fieldType) Add a field information (type, name, length) to the information concerning a structure/modulegetCode()Get the structure/module codeGet all the fields length of the fields used by a structure/moduleGet all the fields names used by a structure/moduleGet all the fields types used by a structure/modulegetName()Get the structure/module nameintGet the structure or module total length in bytestoString()Returns a String representation of the object for debug purposes
-
Constructor Details
-
InfoStructureModule
Construct an InfoStructure object- Parameters:
code2- structure/module codename2- structure/module name
-
-
Method Details
-
addFieldInfo
Add a field information (type, name, length) to the information concerning a structure/module- Parameters:
fieldName- field namefieldLength- field lengthfieldType- field type
-
getCode
Get the structure/module code- Returns:
- structure/module code
-
getName
Get the structure/module name- Returns:
- structure/module name
-
getFieldsNames
Get all the fields names used by a structure/module- Returns:
- list of fields names
-
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
Get all the fields types used by a structure/module- Returns:
- list of types
-
toString
Returns a String representation of the object for debug purposes
-