schema2template
Class OutputFileListEntry

java.lang.Object
  extended by schema2template.OutputFileListEntry

public class OutputFileListEntry
extends Object

Belongs to FileListHandler. Represents one single entry in ouput filelist.

Author:
Hans-Peter Schaal

Nested Class Summary
static class OutputFileListEntry.EntryType
          Type of filelist entry (file or path)
 
Constructor Summary
OutputFileListEntry(OutputFileListEntry.EntryType type)
           
OutputFileListEntry(OutputFileListEntry.EntryType type, int lineNumber)
           
 
Method Summary
 String getAttribute(String key)
           
 Map<String,String> getAttributes()
           
 int getLineNumber()
           
 OutputFileListEntry.EntryType getType()
           
 void setAttribute(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputFileListEntry

public OutputFileListEntry(OutputFileListEntry.EntryType type)
Parameters:
type - Use FilelistEntry.EntryType.[FILE|PATH]

OutputFileListEntry

public OutputFileListEntry(OutputFileListEntry.EntryType type,
                           int lineNumber)
Parameters:
type - Use FilelistEntry.EntryType.[FILE|PATH]
lineNumber - number in filelist.xml for logging / error output.
Method Detail

getType

public OutputFileListEntry.EntryType getType()
Returns:
the entry type

getLineNumber

public int getLineNumber()
Returns:
line number in filelist.xml for logging / error output.

getAttribute

public String getAttribute(String key)
Parameters:
key - Attribute Key
Returns:
Attribute Value

getAttributes

public Map<String,String> getAttributes()
Returns:
Attributes as map

setAttribute

public void setAttribute(String key,
                         String value)
Parameters:
key - Attribute Key
value - Attribute Value. If null, delete the key.


Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.