|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.gene.exportgraph.ExportGraph
public final class ExportGraph
Describes full export graph, including processing description of not known namespaces.
In case of unknown namespace, a special exporter will be constructed, converting a XML to XSL-FO as an element tree, similar to opening the XML in a browser without any presentation layout (CSS) attached.
Constructor Summary | |
---|---|
ExportGraph(List<? extends GraphNode> regularGraphNodes,
List<? extends GraphNode> wildcardGraphNodes)
Constructor. |
Method Summary | |
---|---|
void |
addAllNodes(ExportGraph other,
boolean force)
Adds all nodes from the other graph. |
void |
addNode(GraphNode node,
boolean isRegular,
boolean force)
Registers given node. |
boolean |
containsRegularOnly()
Checks if this graph contains only regular paths. |
List<GraphNode> |
getAllNodes()
Returns all graph nodes. |
Map<String,GraphNode> |
getAllNodesAsMap()
Returns all graph nodes as a map. |
List<GraphNode> |
getRegularNodes()
Return unmodifiable list of all regular nodes. |
boolean |
isEmpty()
Returns true if this graph does not contain any node. |
boolean |
isRegular(GraphNode node)
Checks if given node is a regular graph node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExportGraph(List<? extends GraphNode> regularGraphNodes, List<? extends GraphNode> wildcardGraphNodes)
regularGraphNodes
- Nodes that are able to process the document
using regular exporters. May be null
.wildcardGraphNodes
- If no graph path for given document namespace
to a coordinator can't be found then a 'wildcard' exporter is used. This
exporter transforms any XML document into XSL-FO document. May be
null
.Method Detail |
---|
public boolean containsRegularOnly()
true
if no paths containing wildcard exporters are
present in the graph.public List<GraphNode> getAllNodes()
regularGraphNodes
and
wildcardGraphNodes
.public List<GraphNode> getRegularNodes()
public Map<String,GraphNode> getAllNodesAsMap()
public boolean isEmpty()
true
if this graph does not contain any node.
true
if the graph is empty.public boolean isRegular(GraphNode node)
node
- node to check.
true
if this node is regular, false
if it connects to a wildcard exporter.public void addAllNodes(ExportGraph other, boolean force)
other
- the other graph.force
- if true
then nodes are registered and
replaces previous node if necessary.public void addNode(GraphNode node, boolean isRegular, boolean force)
node
- the node to registerisRegular
- whether the node is regular or not.force
- if true
then the node is registered and
replaces previous node if necessary.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |