org.argouml.uml.generator
Class AbstractSection
java.lang.Object
org.argouml.uml.generator.AbstractSection
public abstract class AbstractSection
- extends java.lang.Object
Reading and writing preserved sections from the code.
|
Method Summary |
static java.lang.String |
generate(java.lang.String id,
java.lang.String indent)
|
static java.lang.String |
getSectId(java.lang.String line)
|
void |
read(java.lang.String filename)
|
void |
write(java.lang.String filename,
java.lang.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSection
public AbstractSection()
- Creates a new instance of Section.
generate
public static java.lang.String generate(java.lang.String id,
java.lang.String indent)
- Parameters:
id - the string to generateindent - the current indentation
- Returns:
- the generated string
write
public void write(java.lang.String filename,
java.lang.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(java.lang.String filename)
- Parameters:
filename - the filename to read from
getSectId
public static java.lang.String getSectId(java.lang.String line)
- Parameters:
line - the given line
- Returns:
- the section identifier