- java.lang.Object
-
- com.pervasive.datarush.io.configuration.ConfigurationField
-
- com.pervasive.datarush.io.configuration.TextField
-
public final class TextField extends ConfigurationField
AConfigurationField
that consists of clear text information.- See Also:
ConfigurationField
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFieldValue()
Returns the value of the fieldTextField
withValue(String fieldValue)
Creates a new field, equivalent to this, but with the value set to the specified value.-
Methods inherited from class com.pervasive.datarush.io.configuration.ConfigurationField
getFieldName
-
-
-
-
Constructor Detail
-
TextField
public TextField(String fieldName)
Creates a new field with an empty value- Parameters:
fieldName
- the name of the field- Throws:
IllegalArgumentException
- if fieldName is null or empty
-
TextField
public TextField(String fieldName, String fieldValue)
Create a new field with the specified value- Parameters:
fieldName
- the unique identifier for this fieldfieldValue
- the field value- Throws:
IllegalArgumentException
- if fieldName is null or empty or if fieldValue is null (fieldValue may be empty though)
-
-
Method Detail
-
getFieldValue
public String getFieldValue()
Returns the value of the field- Returns:
- the value of the field
-
withValue
public TextField withValue(String fieldValue) throws IllegalArgumentException
Creates a new field, equivalent to this, but with the value set to the specified value.- Parameters:
fieldValue
- the new value- Returns:
- a new field with its settings modified
- Throws:
IllegalArgumentException
- if value is null (may be empty though)
-
-