Class FieldDataInfo
java.lang.Object
com.nt.udc.ei.node.amadirpei.configReader.FieldDataInfo
This class is used to store a field info line from the AMA config file (ex: "BYTES myfield 4,")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet a field lengthgetName()Get a field nameintgetType()Get a field typevoidsetLength(int length2) Set a field lengthvoidSet a field namevoidsetType(int type2) Set a field type Note : this shouldn't be used as we assume all types are "Bytes" (kept for a future version)booleanSet a field type Note : this shouldn't be used as we assume all types are "String" (kept for a future version)toString()Convert a FieldData object into a String (for debug purposes)
-
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
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
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
Get a field name- Returns:
- field name
-
getLength
public int getLength()Get a field length- Returns:
- Field length
-
toString
Convert a FieldData object into a String (for debug purposes)
-