org.argouml.uml.generator
Class AbstractSection

java.lang.Object
  extended byorg.argouml.uml.generator.AbstractSection

public abstract class AbstractSection
extends Object

Reading and writing preserved sections from the code


Field Summary
private static String LINE_SEPARATOR
          System newline separator.
private static Logger LOG
           
private  Map mAry
           
 
Constructor Summary
AbstractSection()
          Creates a new instance of Section
 
Method Summary
static String generate(String id, String indent)
           
static String getSectId(String line)
           
 void read(String filename)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG

LINE_SEPARATOR

private static final String LINE_SEPARATOR
System newline separator.


mAry

private Map mAry
Constructor Detail

AbstractSection

public AbstractSection()
Creates a new instance of Section

Method Detail

generate

public static String generate(String id,
                              String indent)
Parameters:
id - the string to generate
indent - 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 name
indent - the current indentation
outputLostSections - 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


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook