public class BasicItem extends Object
Modifier and Type | Field and Description |
---|---|
protected List<String> |
data
It contains sub-items.
|
Constructor and Description |
---|
BasicItem() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(List<String> data)
It adds the value to the property or replaces it when data already contains a value.
|
void |
addItem(String data)
It adds a sub-item to the data property.
|
List<String> |
getData()
It retrieves the data property.
|
boolean |
hasData()
It retrieves that it has any item or it doesn't have.
|
public void addItem(List<String> data)
data
- It will be stored in the property.public void addItem(String data)
data
- It will be stored in the property.public boolean hasData()
Copyright © 2015. All rights reserved.