|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.gene.GeneDataProvider
public final class GeneDataProvider
Acts as a GENE coordinator. Collects GENE output, instantiates and initializes renderers, and fires events on document change.
The object produces a special tree (using the
Coordinator#partialResultEvent(DocumentFragment, NamespacePath, Source, String, CoordinatorInputKey)
function), that is processed by the object itself on
Coordinator#finishExport()
function. This tree is intended to capture
the tree structure of nametrees in output document (and renderers, rendering
these nametrees).
Each
Coordinator#partialResultEvent(DocumentFragment, NamespacePath, Source, String, CoordinatorInputKey)
constructs (or updates) a renderer, associates it with the
key
and produces some elements. These elements
must be able to provide:
emp:mark
element) to the key (we must be able to provide child
renderers to a renderer, that uses ID as their identification key), andThese elements are produced:
ref
element - serves for identification of the renderer.
Contains attribute id
that uniquely identifies key in the
renderer tree.emp:mark
element is copied and placed in
child-renderer
, whose ID attribute identifies the child
nametree (it is a copy of emp:id
element placed in the
emp:mark
element).
ref
element will receive same namespace as the input of the
renderer it references. All child child-renderer
elements will
have same namespace as their parent ref
. This will allow GENE
to provide correct namespace paths.
Following this algorithm (when GENE resolves all emp:mark
elements) we receive this document in the finishExport()
method: root element is keyref
identifying root renderer. Each
keyref
contains zero or more child-renderer
elements, containing ids of children renderers. Each
child-renderer
contains one keyref
element,
identifying this renderer, etc.
Nested Class Summary | |
---|---|
class |
GeneDataProvider.RendererSite
Represents the renderer with its environment. |
Constructor Summary | |
---|---|
GeneDataProvider(RendererSelector selector,
XMLAccess xmlAccess,
IEditorDataReceiver edr)
Constructor. |
Method Summary | |
---|---|
sk.baka.xml.gene.ICoordinator |
getCoordinator()
Returns the coordinator instance - this object receives GENE output. |
sk.baka.xml.gene.CoordinatorInfo |
getCoordinatorInfo()
Returns the coordinator information instance for the GENE coordinator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneDataProvider(RendererSelector selector, XMLAccess xmlAccess, IEditorDataReceiver edr)
selector
- the renderer selector.xmlAccess
- the transformed document.edr
- the data receiver.Method Detail |
---|
public sk.baka.xml.gene.ICoordinator getCoordinator()
public sk.baka.xml.gene.CoordinatorInfo getCoordinatorInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |