|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.orchestranetworks.service.ImportSpec
Defines the features of an import.
For being valid, an instance of this class must at least define a XML source and a target adaptation.
ProcedureContext.doImport(ImportSpec)| Constructor Summary | |
ImportSpec()
|
|
| Method Summary | |
ImportSpecMode |
getImportMode()
Returns the import mode. |
File |
getSourceFile()
|
InputStream |
getSourceStream()
|
Adaptation |
getTargetAdaptation()
|
void |
setImportMode(ImportSpecMode mode)
Specifies the import mode : 'insert', 'insert or update', 'update only'. |
void |
setSourceFile(File aSource)
Specifies the XML document that serves as the source of the import. |
void |
setSourceStream(InputStream aSource)
Specifies that the import process must read the document from the stream specified. |
void |
setTargetAdaptation(Adaptation aTarget)
Specifies the target of the import (mandatory property). |
String |
toString()
|
String |
toStringInfo()
Returns information about the main attributes of this instance. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ImportSpec()
| Method Detail |
public Adaptation getTargetAdaptation()
setTargetAdaptation(Adaptation)public void setTargetAdaptation(Adaptation aTarget)
aTarget - the adaptation that will be updated with the imported XML content.public File getSourceFile()
setSourceFile(File)public void setSourceFile(File aSource)
aSource - the XML document to import.public InputStream getSourceStream()
setSourceStream(InputStream)public void setSourceStream(InputStream aSource)
The source stream is a more general alternative than the source file.
It is up to the caller of this method to provide a buffered input stream (if needed for performance).
aSource - the stream containing the XML content to import.public String toStringInfo()
public String toString()
public ImportSpecMode getImportMode()
setImportMode(ImportSpecMode)public void setImportMode(ImportSpecMode mode)
If not specified, the 'insert' mode is used.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.2 [0601:0004]
Copyright Orchestra Networks 2000-2008. All rights reserved.