public class NamelessField extends AbstractField
A nameless field.
| Constructor and Description | 
|---|
NamelessField(String value)
 Creates a nameless field. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getName()
 Returns the name. 
 | 
String | 
getValue()
 Returns the value. 
 | 
formatValue, getFormattedValue, isEmpty, isNamelesspublic NamelessField(String value)
Creates a nameless field.
value - The value.IllegalArgumentException - If the value is null.public String getName()
FieldReturns the name.
null, if the field is an empty field or
         a nameless field.Field.isEmpty(), 
Field.isNameless()public String getValue()
FieldReturns the value.
The value can contain newlines.
null, if the field is an empty field.Field.isEmpty()Copyright © 2015–2019. All rights reserved.