org.argouml.uml.generator
Class AbstractSection
java.lang.Object
org.argouml.uml.generator.AbstractSection
- public abstract class AbstractSection
- extends Object
Reading and writing preserved sections from the code
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Logger LOG
LINE_SEPARATOR
private static final String LINE_SEPARATOR
- System newline separator.
mAry
private Map mAry
AbstractSection
public AbstractSection()
- Creates a new instance of Section
generate
public static String generate(String id,
String indent)
- Parameters:
id
- the string to generateindent
- the current indentation
- Returns:
- the generated string
write
public void write(String filename,
String indent,
boolean outputLostSections)
- write TODO: Check if sections are not used within the file and
put them as comments at the end of the file.
Hint: use a second Map to compare with the used keys.
- Parameters:
filename
- the file nameindent
- the current indentationoutputLostSections
- true if lost sections are to be written
read
public void read(String filename)
- Parameters:
filename
- the filename to read from
getSectId
public static String getSectId(String line)
- Parameters:
line
- the given line
- Returns:
- the section identifier