|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.infodesire.infobit.external.impl.ImporterImpl
This class provides a straight-forward implementation to import infobits from
their XML representation, as defined by InfobitImporter.
| Constructor Summary | |
ImporterImpl()
Creates an instance ready to set the manager and to initialize. |
|
| Method Summary | |
InfobitManager |
getManager()
Gets the manager to work with. |
java.util.List |
importInfobits(java.io.Reader input,
java.lang.String path,
java.util.List diagnostics)
Recovers infobits from an XML representation as created by InfobitExporter.export, as specified for InfobitImporter. |
void |
init()
Prepares the instance to be used. |
com.infodesire.infobit.external.impl.InfobitNode |
lookup(java.lang.String name)
DOCUMENT METHOD |
void |
record(ImportMessage message)
DOCUMENT METHOD |
void |
register(com.infodesire.infobit.external.impl.InfobitNode node)
DOCUMENT METHOD |
void |
setAcl(Acl acl)
Defines the ACL used to create imported infobits and content |
void |
setManager(InfobitManager manager)
Defines the manager to work with. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImporterImpl()
initialize.
| Method Detail |
public InfobitManager getManager()
getManager in interface InfobitImporterpublic void setManager(InfobitManager manager)
setManager in interface InfobitImportermanager - The manager to access infobitspublic void setAcl(Acl acl)
setAcl in interface InfobitImporteracl - The new Acl value
public java.util.List importInfobits(java.io.Reader input,
java.lang.String path,
java.util.List diagnostics)
throws InfobitException,
InfobitSecurityException
InfobitExporter.export, as specified for InfobitImporter.
: This implementation returns infobits not imported but
referenced from imported ones.
importInfobits in interface InfobitImporter
input - Source from which to obtain the XML
document representing the infobits to importpath - System location of input
, used in diagnostic messagesdiagnostics - A list to be filled with ImportMessage instances providing diagnostic messages about errors
encountered during the import.
InfobitException - Generic processing error
InfobitSecurityException - Description of Exception
public void init()
throws InfobitException
init in interface InfobitImporterInfobitException - Description of Exceptionpublic void register(com.infodesire.infobit.external.impl.InfobitNode node)
register in interface com.infodesire.infobit.external.impl.InfobitDictionarynode - Description of Parameterpublic com.infodesire.infobit.external.impl.InfobitNode lookup(java.lang.String name)
lookup in interface com.infodesire.infobit.external.impl.InfobitDictionaryname - Description of Parameter
public void record(ImportMessage message)
record in interface com.infodesire.infobit.external.impl.ImportDiagnosticsmessage - Description of Parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||