public final class TextField extends ConfigurationField
ConfigurationField
that consists of clear text information.ConfigurationField
Constructor and Description |
---|
TextField(String fieldName)
Creates a new field with an empty value
|
TextField(String fieldName,
String fieldValue)
Create a new field with the specified value
|
Modifier and Type | Method and Description |
---|---|
String |
getFieldValue()
Returns the value of the field
|
TextField |
withValue(String fieldValue)
Creates a new field, equivalent to this, but with the value set to the specified value.
|
getFieldName
public TextField(String fieldName)
fieldName
- the name of the fieldIllegalArgumentException
- if fieldName is null or emptypublic TextField(String fieldName, String fieldValue)
fieldName
- the unique identifier for this fieldfieldValue
- the field valueIllegalArgumentException
- if fieldName is null or empty or if fieldValue is null (fieldValue may be empty though)public String getFieldValue()
public TextField withValue(String fieldValue) throws IllegalArgumentException
fieldValue
- the new valueIllegalArgumentException
- if value is null (may be empty though)Copyright © 2024 Actian Corporation. All rights reserved.