|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.persistence.ProfileConfigurationFilePersister
public class ProfileConfigurationFilePersister
Persister for project's profile configuration.
Constructor Summary | |
---|---|
ProfileConfigurationFilePersister()
|
Method Summary | |
---|---|
protected void |
addXmlFileToWriter(java.io.PrintWriter writer,
java.io.File file)
Send an existing file of XML to the PrintWriter. |
java.lang.String |
getMainTag()
Gets the tag name which is the root tag for this member. |
void |
load(Project project,
org.xml.sax.InputSource inputSource)
Load a project member from a SAX InputSource. |
void |
load(Project project,
java.io.InputStream inputStream)
Load a project member from an InputStream. |
void |
load(Project project,
java.net.URL url)
Load a project member from a URL. |
void |
save(ProjectMember member,
java.io.OutputStream stream)
Save the project member as XML to the given output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileConfigurationFilePersister()
Method Detail |
---|
public java.lang.String getMainTag()
public void load(Project project, java.io.InputStream inputStream) throws OpenException
project
- the project to persistinputStream
- the inputStream to parse to load the member.
OpenException
- on any parsing errors.public void load(Project project, org.xml.sax.InputSource inputSource) throws OpenException
project
- the project to persistinputSource
- the InputSource to load from
OpenException
- on any parsing errors.public void save(ProjectMember member, java.io.OutputStream stream) throws SaveException
member
- The project member to save.stream
- The OutputStream to write the contents to.
SaveException
- if the save failspublic void load(Project project, java.net.URL url) throws OpenException
project
- the project to persisturl
- the URL to open and parse to load the member.
OpenException
- on any parsing errors.protected void addXmlFileToWriter(java.io.PrintWriter writer, java.io.File file) throws SaveException
writer
- the PrintWriter.file
- the File
SaveException
- on any errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |