Package schema2template.template
Class FileCreationListEntry
- java.lang.Object
-
- schema2template.template.FileCreationListEntry
-
public class FileCreationListEntry extends Object
Is created by FileCreationListHandler. Every file that is generated by a Velocity template is a line in the file-creation-list. A future file is a single entry in the file-creation-list.- Author:
- Hans-Peter Schaal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileCreationListEntry.EntryType
Type of file-creation-list entry (file or path)
-
Constructor Summary
Constructors Constructor Description FileCreationListEntry(FileCreationListEntry.EntryType type)
FileCreationListEntry(FileCreationListEntry.EntryType type, int lineNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttribute(String key)
Map<String,String>
getAttributes()
int
getLineNumber()
FileCreationListEntry.EntryType
getType()
void
setAttribute(String key, String value)
-
-
-
Constructor Detail
-
FileCreationListEntry
public FileCreationListEntry(FileCreationListEntry.EntryType type)
- Parameters:
type
- Use FilelistEntry.EntryType.[FILE]
-
FileCreationListEntry
public FileCreationListEntry(FileCreationListEntry.EntryType type, int lineNumber)
- Parameters:
type
- Use FilelistEntry.EntryType.[FILE]lineNumber
- number in .xml for logging / error output.
-
-
Method Detail
-
getType
public FileCreationListEntry.EntryType getType()
- Returns:
- the entry type
-
getLineNumber
public int getLineNumber()
- Returns:
- line number in file-creation-list.xml for logging / error output.
-
getAttribute
public String getAttribute(String key)
- Parameters:
key
- Attribute Key- Returns:
- Attribute Value
-
-