|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.etools.iseries.edit.preferences.templates.ISeriesTemplateSet
public class ISeriesTemplateSet
ISeriesTemplateSet manages a collection of templates and makes them
persistent.
| Field Summary | |
|---|---|
static String |
Copyright
|
| Constructor Summary | |
|---|---|
ISeriesTemplateSet()
|
|
| Method Summary | |
|---|---|
void |
add(ISeriesTemplate template)
Adds a template to the set. |
void |
addFromFile(File file,
boolean checkVersion)
Convenience method for reading templates from a file. |
void |
addFromStream(InputStream stream,
boolean checkVersion)
Reads templates from a XML stream and adds them to the template set. |
void |
addFromStream(InputStream stream,
boolean checkVersion,
String[] validContexts)
|
void |
clear()
Empties the set. |
void |
clear(String[] validContexts)
Clears the templates that have the specified contexts |
ISeriesTemplate[] |
getTemplates()
Returns all templates. |
ISeriesTemplate[] |
getTemplates(String name)
Returns all templates with a given name. |
void |
remove(ISeriesTemplate template)
Removes a template to the set. |
void |
saveToFile(File file)
Convenience method for saving to a file. |
void |
saveToStream(OutputStream stream)
Saves the template set as XML. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String Copyright
| Constructor Detail |
|---|
public ISeriesTemplateSet()
| Method Detail |
|---|
public void addFromFile(File file,
boolean checkVersion)
throws CoreException
CoreException#addFromStream(InputStream)
public void addFromStream(InputStream stream,
boolean checkVersion)
throws CoreException
CoreException
public void addFromStream(InputStream stream,
boolean checkVersion,
String[] validContexts)
throws CoreException
CoreException
public void saveToFile(File file)
throws CoreException
CoreExceptionsaveToStream(OutputStream)
public void saveToStream(OutputStream stream)
throws CoreException
CoreExceptionpublic void add(ISeriesTemplate template)
public void remove(ISeriesTemplate template)
public void clear()
public void clear(String[] validContexts)
validContexts - the contexts to clearpublic ISeriesTemplate[] getTemplates()
public ISeriesTemplate[] getTemplates(String name)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||