|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.control.LyController
leon.control.content.LyImportContentController
leon.control.content.LyImportContentXmlController
public class LyImportContentXmlController
This class reads an XML File from export and create LyObjects from the import. The import is done within a context (may cancel) all the import. Imported objects may change the identifier of the imported objects (generate new identifiers) if overriden by the application Imported objetcs returned by the loadData or loadDataFile are juste created / set in memory : it is possible to commit/cancel import for objects following an object per object basis
LyImportController
,
LyImportTableController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Fields inherited from class leon.control.LyController |
---|
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP |
Constructor Summary | |
---|---|
LyImportContentXmlController(LySession session,
LyController parent,
LyAction action)
Constructor. |
Method Summary | |
---|---|
void |
addInternalObject(LyObject importedObject,
LyObject internalObject)
Accessor to the Internal objects (Struct objects) generated during the import. |
org.xml.sax.InputSource |
convertSourceVersion(org.xml.sax.InputSource source)
Apply XSLT Stylesheets to convert the source version of the XML File to latest version. |
LyObjectList |
getInternalObjectList(LyObject importedObject)
Accessor to the Internal objects (Struct objects) generated during the import This objects are used by imported objects in relations. |
LyViewController |
getViewController()
Accessor to the view controller (Frame or dialog controller) which is the container of this view. |
boolean |
isValidating()
Checks whether this parser is validating or not. |
LyObjectList |
loadData(org.xml.sax.InputSource source)
Load the XML data from the specified stream. |
LyObjectList |
loadData(java.io.InputStream istream)
Load the XML data from the specified stream. |
LyObjectList |
loadData(java.io.Reader reader)
Load the XML data from the specified stream. |
void |
setValidating(boolean validating)
Sets whether this parser is validating or not. |
Methods inherited from class leon.control.content.LyImportContentController |
---|
getAction, getClassInfo, getFields, getLastErrorMessage, loadData, loadDataFile, setClassInfo, setFields |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyImportContentXmlController(LySession session, LyController parent, LyAction action)
session
- current session associated to the controller. The controller automatically
registers on the specified session.parent
- parent controller (or null for 'root' controller).action
- related action.Method Detail |
---|
public LyObjectList loadData(java.io.InputStream istream)
loadData
in class LyImportContentController
istream
- current XML Stream to read
public LyObjectList loadData(java.io.Reader reader)
loadData
in class LyImportContentController
reader
- current XML Stream to read
public LyObjectList loadData(org.xml.sax.InputSource source)
source
- current XML Stream to read
public void addInternalObject(LyObject importedObject, LyObject internalObject)
importedObject
- real imported object which caused the creation of these internal
objectsinternalObject
- the new internal objectpublic LyObjectList getInternalObjectList(LyObject importedObject)
getInternalObjectList
in class LyImportContentController
importedObject
- real imported object which caused the creation of these internal
objects
public LyViewController getViewController()
getViewController
in class LyImportContentController
public boolean isValidating()
public void setValidating(boolean validating)
validating
- True if validating, false otherwise.public org.xml.sax.InputSource convertSourceVersion(org.xml.sax.InputSource source)
source
- source for parsing (input version)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |