org.argouml.persistence
Class DiagramMemberFilePersister

java.lang.Object
  extended byorg.argouml.persistence.MemberFilePersister
      extended byorg.argouml.persistence.DiagramMemberFilePersister

public class DiagramMemberFilePersister
extends MemberFilePersister

The file persister for the diagram members.


Field Summary
private static Logger LOG
          Logger.
private static String PGML_TEE
          The tee file for persistence.
 
Constructor Summary
DiagramMemberFilePersister()
           
 
Method Summary
 String getMainTag()
          Gets the tag name which is the root tag for this member.
 void load(Project project, InputStream inputStream)
          Load the member based on instance variables which should have been setup in the constructor.
 void save(ProjectMember member, Writer writer, Integer indent)
          Write the diagram to the given writer.
 
Methods inherited from class org.argouml.persistence.MemberFilePersister
addXmlFileToWriter
 
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
Logger.


PGML_TEE

private static final String PGML_TEE
The tee file for persistence.

See Also:
Constant Field Values
Constructor Detail

DiagramMemberFilePersister

public DiagramMemberFilePersister()
Method Detail

load

public void load(Project project,
                 InputStream inputStream)
          throws OpenException
Description copied from class: MemberFilePersister
Load the member based on instance variables which should have been setup in the constructor.

Specified by:
load in class MemberFilePersister
Parameters:
project - the project to persist
inputStream - the inputStream to parse to load the member.
Throws:
OpenException - on any parsing errors.
See Also:
MemberFilePersister.load(org.argouml.kernel.Project, java.io.InputStream)

getMainTag

public String getMainTag()
Description copied from class: MemberFilePersister
Gets the tag name which is the root tag for this member.

Specified by:
getMainTag in class MemberFilePersister
Returns:
tag name.
See Also:
MemberFilePersister.getMainTag()

save

public void save(ProjectMember member,
                 Writer writer,
                 Integer indent)
          throws SaveException
Write the diagram to the given writer.

Specified by:
save in class MemberFilePersister
Parameters:
member - The project member to save.
writer - The Writer to which appen the save.
indent - The offset to which to indent the XML
Throws:
SaveException - if the save fails
See Also:
MemberFilePersister.save( org.argouml.kernel.ProjectMember, java.io.Writer, java.lang.Integer)


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