org.pf.tools.cda.core.io.workset
Class WorksetWriter

java.lang.Object
  extended by org.pf.tools.cda.core.io.workset.WorksetWriter
All Implemented Interfaces:
WorksetXMLConstants

public class WorksetWriter
extends java.lang.Object
implements WorksetXMLConstants

Writer that is able to convert a Workset to its XML representation and write it to a file.

Version:
1.7
Author:
Manfred Duchrow

Field Summary
 
Fields inherited from interface org.pf.tools.cda.core.io.workset.WorksetXMLConstants
ATTR_ALIAS, ATTR_AUTO_RELOAD, ATTR_COMPONENT_NAME, ATTR_CP_PART_SUPPLEMENTARY, ATTR_CP_PART_TYPE, ATTR_IS_ACTIVE, ATTR_JAVA_VERSION, ATTR_NAME_SUFFIX, ATTR_SHORT_CONTAINER_NAMES, ATTR_THIRD_PARTY_LIB, ATTR_VAR_NAME, ATTR_VAR_VALUE, ATTR_VERSION, SCHEMA_FILENAME, SCHEMA_NAME, SCHEMA_URI, SCHEMA_URI_BASE, SCHEMA_VERSION, TAG_ARCHITECTURE, TAG_CLASSPATH, TAG_CLASSPATH_PART, TAG_COMPONENT, TAG_COMPONENT_MODEL, TAG_CONTAINER, TAG_CONTAINER_INFO, TAG_DEPENDENCIES, TAG_DESCRIPTION, TAG_FILTER, TAG_IGNORE_FILTERS, TAG_OPTIONS, TAG_PACKAGE_PATTERN, TAG_VARIABLE, TAG_VARIABLES, TAG_VIEW_FILTERS, TAG_WORKSET, TAG_WORKSET_NAME, VAL_FALSE, VAL_TRUE, VAL_TYPE_BIN_CLASS, VAL_TYPE_ODEM_XML, WORKSET_DTD_FILENAME, WORKSET_FILE_EXTENSION, XML_ENCODING
 
Constructor Summary
WorksetWriter()
          Initialize the new instance with default values.
 
Method Summary
 void saveWorkset(Workset workset)
          Stores the given workset in the file it was originally loaded from or creates a new filename (in the current work directory).
 void saveWorksetAs(Workset workset, java.lang.String filename)
          Stores the given workset in the file with the given name.
static void storeWorkset(Workset workset)
          Stores the given workset in the file it was originally loaded from or creates a new filename (in the current work directory).
static void storeWorksetAs(Workset workset, java.lang.String filename)
          Stores the given workset in the file it was originally loaded from or creates a new filename (in the current work directory).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorksetWriter

public WorksetWriter()
Initialize the new instance with default values.

Method Detail

storeWorkset

public static void storeWorkset(Workset workset)
                         throws WorksetWriterException
Stores the given workset in the file it was originally loaded from or creates a new filename (in the current work directory). The filename then is the workset name + extension ".ws".

Parameters:
workset - The workset to be stored
Throws:
WorksetWriterException

storeWorksetAs

public static void storeWorksetAs(Workset workset,
                                  java.lang.String filename)
                           throws WorksetWriterException
Stores the given workset in the file it was originally loaded from or creates a new filename (in the current work directory). The filename then is the workset name + extension ".ws".

Parameters:
workset - The workset to be stored
filename - The full name (incl. path) of the workset file
Throws:
WorksetWriterException

saveWorkset

public void saveWorkset(Workset workset)
                 throws WorksetWriterException
Stores the given workset in the file it was originally loaded from or creates a new filename (in the current work directory). The filename then is the workset name + extension ".ws".

Parameters:
workset - The workset to be saved
Throws:
WorksetWriterException

saveWorksetAs

public void saveWorksetAs(Workset workset,
                          java.lang.String filename)
                   throws WorksetWriterException
Stores the given workset in the file with the given name.

Parameters:
workset - The workset to be saved
filename - The full name (incl. path) of the workset file
Throws:
WorksetWriterException