Modifier and Type | Field and Description |
---|---|
private String |
name
the name of the tag
|
private List<String> |
values
the list of values
|
Constructor and Description |
---|
TagModel()
constructor
|
TagModel(String name)
constructor
|
TagModel(String name,
String value)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(String value) |
void |
clearValues()
removes all values from the list of values
|
String |
getName() |
String |
getValue() |
int |
getValueCount() |
List<String> |
getValues() |
boolean |
hasValue(String value) |
void |
removeValue(String value)
removes a value from the list of values.
|
void |
setName(String name)
sets the name.
|
void |
setValue(String value)
sets a unique value for this tag.
|
public TagModel()
public final void setName(String name)
name
- the tag namepublic void clearValues()
public final void setValue(String value)
value
- the value.public boolean hasValue(String value)
value
- the value to be checked; converted to "" if nullvalue
; false otherwisepublic void removeValue(String value)
value
- the valuepublic int getValueCount()