public class FileNames extends Entity
Constructor and Description |
---|
FileNames(java.lang.String type)
Constructs a file names entity for a given type.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Entity entity)
Adds a given entity to this one.
|
void |
add(java.lang.String fileName)
Adds a given file name to the list.
|
java.lang.String[] |
getArray()
Returns the file names (as an array).
|
java.util.List<java.lang.String> |
getList()
Returns the file names (as a list).
|
java.lang.String |
getType()
Returns the file names' extension (file type).
|
java.lang.String |
toString() |
equals, getEntityType, hashCode
public FileNames(java.lang.String type)
type
- the files' type (extension).public java.lang.String getType()
public void add(java.lang.String fileName)
fileName
- the file name to be added.public java.util.List<java.lang.String> getList()
public java.lang.String[] getArray()
public void add(Entity entity)
Entity