Package schema2template.template
Class FileCreationListEntry
java.lang.Object
schema2template.template.FileCreationListEntry
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
Modifier and TypeClassDescriptionstatic enum
Type of file-creation-list entry (file or path) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String key) int
getType()
void
setAttribute
(String key, String value)
-
Constructor Details
-
FileCreationListEntry
- Parameters:
type
- Use FilelistEntry.EntryType.[FILE]
-
FileCreationListEntry
- Parameters:
type
- Use FilelistEntry.EntryType.[FILE]lineNumber
- number in .xml for logging / error output.
-
-
Method Details
-
getType
- Returns:
- the entry type
-
getLineNumber
public int getLineNumber()- Returns:
- line number in file-creation-list.xml for logging / error output.
-
getAttribute
- Parameters:
key
- Attribute Key- Returns:
- Attribute Value
-
getAttributes
- Returns:
- Attributes as map
-
setAttribute
- Parameters:
key
- Attribute Keyvalue
- Attribute Value. If null, delete the key.
-