public class Field extends SMYLDObject implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected String |
Name |
protected String |
Value |
NEW_LINE, OS_NEW_LINE| Constructor and Description |
|---|
Field()
Empty constructor to initialize the object
|
Field(String FieldName,
String FieldValue)
Taking the required parameters to initialize the object
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Field comparedField)
Overrides the equals of the parent object class to compare the object
according to the field name
|
String |
getName()
Getting the name of the field
|
String |
getValue()
Getting the value of the field
|
int |
hashCode()
Overrides the hash code of the parent object class to indentify the
object according to the field name
|
void |
printInstanceValues()
Print the current instance values in order to use it with toString()
method
|
void |
reset() |
void |
setName(String FieldName)
Setting the Name of the field
|
void |
setValue(String FieldValue)
Setting the value of the field
|
debug, getLenName, insertInstanceValue, toStringpublic String getValue()
public void setValue(String FieldValue)
FieldValue - the new field valuepublic String getName()
public void setName(String FieldName)
FieldName - the new field namepublic int hashCode()
public boolean equals(Field comparedField)
public void printInstanceValues()
printInstanceValues in class SMYLDObjectpublic void reset()
Copyright © 2019 SMYLD. All rights reserved.