public class BasicValueModel extends Object implements ValueModel
Representation of a property value.
| Modifier and Type | Field and Description |
|---|---|
protected Comment |
comments |
(package private) static String |
lineSeparator |
protected char |
separator |
private static long |
serialVersionUID |
protected List<String> |
values |
| Constructor and Description |
|---|
BasicValueModel() |
BasicValueModel(char sep,
String... value) |
BasicValueModel(Comment comments,
char sep,
List<String> values) |
BasicValueModel(Comment comments,
char sep,
String[] values) |
BasicValueModel(Comment comments,
List<String> values) |
BasicValueModel(Comment comments,
String[] values) |
BasicValueModel(String... value) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(String line) |
void |
addComments(List<String> comments) |
void |
addValue(String value) |
void |
addValues(List<String> values) |
void |
clearComments() |
void |
clearValues() |
boolean |
equals(Object obj) |
Comment |
getComments() |
char |
getSeparator() |
String |
getValue()
Concatenates the values
|
List<String> |
getValues() |
int |
hashCode() |
void |
setSeparator(char separator) |
String |
toString() |
private static final long serialVersionUID
static final String lineSeparator
protected final Comment comments
protected char separator
public BasicValueModel()
public BasicValueModel(String... value)
public BasicValueModel(char sep,
String... value)
public char getSeparator()
getSeparator in interface ValueModelpublic void setSeparator(char separator)
public Comment getComments()
getComments in interface ValueModelpublic List<String> getValues()
getValues in interface ValueModelpublic void addValue(String value)
public void addComment(String line)
public void clearComments()
public void clearValues()
public String getValue()
ValueModelgetValue in interface ValueModelCopyright © 2011–2016 David R. Smith. All rights reserved.