public interface Field
A field having a name and a value.
The name and value of empty fields are null
. These fields
represents empty lines in the source / target.
The value can contain newlines.
Modifier and Type | Method and Description |
---|---|
String |
getFormattedValue()
Returns the value.
|
String |
getName()
Returns the name.
|
String |
getValue()
Returns the value.
|
boolean |
isEmpty()
Returns the flag if the field is an empty field.
|
boolean |
isNameless()
Returns the flag if the field has no name.
|
String getName()
Returns the name.
null
, if the field is an empty field or
a nameless field.isEmpty()
,
isNameless()
boolean isNameless()
Returns the flag if the field has no name.
An nameless field has no name, but a value.
true
, if the field has no name,
false
otherwise.getName()
String getValue()
Returns the value.
The value can contain newlines.
null
, if the field is an empty field.isEmpty()
String getFormattedValue()
Returns the value.
The value can contain newlines. All "." lines are replaced by empty lines.
null
, if the field is an empty field.isEmpty()
boolean isEmpty()
Returns the flag if the field is an empty field.
An empty field has no name and no value.
true
, if the field is an empty field.getName()
,
getValue()
Copyright © 2015–2019. All rights reserved.