|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.persistence.MemberFilePersister
A base class file persister for project members.
| Constructor Summary | |
MemberFilePersister()
|
|
| Method Summary | |
protected void |
addXmlFileToWriter(PrintWriter writer,
File file,
int indent)
Send an existing file of XML to the PrintWriter. |
abstract String |
getMainTag()
Gets the tag name which is the root tag for this member. |
abstract void |
load(Project project,
InputStream inputStream)
Load the member based on instance variables which should have been setup in the constructor. |
abstract void |
save(ProjectMember member,
Writer writer,
Integer indent)
Save the projectmember as XML to the given writer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MemberFilePersister()
| Method Detail |
public abstract void load(Project project,
InputStream inputStream)
throws OpenException
project - the project to persistinputStream - the inputStream to parse to load the member.
OpenException - on any parsing errors.public abstract String getMainTag()
public abstract void save(ProjectMember member,
Writer writer,
Integer indent)
throws SaveException
member - The project member to save.writer - The Writer to which appen the save.indent - The offset to which to indent the XML
SaveException - if the save fails
protected void addXmlFileToWriter(PrintWriter writer,
File file,
int indent)
throws SaveException
writer - the PrintWriter.file - the Fileindent - How far to indent in the writer.
SaveException - on any errors.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |