|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.export.ImportExportDescriptor
public abstract class ImportExportDescriptor
An import export descriptor is an object that provides useful information to exporters and importers for performing their tasks. Information is carried through import and export process parameters.
Field Summary | |
---|---|
static String |
NO_FORMAT
A specific value for the export-import resource format indicating that no explicit format is defined. |
Constructor Summary | |
---|---|
ImportExportDescriptor()
|
Method Summary | ||
---|---|---|
String |
getFormat()
Gets the format in (or from) which the resource has to be exported (or imported). |
|
|
getParameter(String name)
Gets the parameter identified by the specified name. |
|
List<String> |
getParameters()
Gets a list of the parameter names from this descriptor. |
|
|
inFormat(String format)
Sets a format in which the resource to export will be or the resource to import is. |
|
boolean |
isParameterSet(String name)
Is the parameter identified by the specified name set within this descriptor? |
|
|
setParameter(String name,
T value)
Sets the specified process parameter with the specified value. |
|
|
withoutParameter(String name)
Removes the process parameter identified by the specified name. |
|
|
withParameter(String name,
T value)
Adds a new process parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NO_FORMAT
Constructor Detail |
---|
public ImportExportDescriptor()
Method Detail |
---|
public String getFormat()
public <O extends ImportExportDescriptor> O inFormat(String format)
format
- the export/import format to set.
public <T extends Serializable,O extends ImportExportDescriptor> O withParameter(String name, T value)
T
- the type of the parameter value.name
- the parameter name.value
- the parameter value.
public <T extends Serializable> void setParameter(String name, T value)
T
- the type of the parameter value to set.name
- the name of the parameter.value
- the parameter value to set.public <O extends ImportExportDescriptor> O withoutParameter(String name)
name
- the parameter name.
public <T> T getParameter(String name)
T
- the type of the parameter value.name
- the parameter name.
public List<String> getParameters()
public boolean isParameterSet(String name)
name
- the parameter name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |