|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttreebolic.provider.xml.dom.DocumentAdapter
public class DocumentAdapter
Document adapter to model/graph
| Nested Class Summary | |
|---|---|
(package private) class |
DocumentAdapter.MountTask
Mount task (protracted) |
| Field Summary | |
|---|---|
private java.util.Map<java.lang.String,MutableNode> |
theIdToNodeMap
Id to node map |
private java.util.List<DocumentAdapter.MountTask> |
theMountTasks
Protracted mount tasks |
private IProvider |
theProvider
Provider (used to generate mounted trees) |
| Constructor Summary | |
|---|---|
DocumentAdapter()
Constructor |
|
DocumentAdapter(IProvider thisProvider)
Constructor |
|
| Method Summary | |
|---|---|
private static org.w3c.dom.Element |
getFirstElementByTagName(org.w3c.dom.Element thisElement,
java.lang.String thisTagName)
Find DOM element with given tag |
private static org.w3c.dom.Element |
getFirstLevel1ElementByTagName(org.w3c.dom.Element thisElement,
java.lang.String thisTagName)
Find DOM element with given tag among first level children |
java.util.Map<java.lang.String,MutableNode> |
getIdToNodeMap()
Get id to node map |
private static java.util.List<org.w3c.dom.Element> |
getLevel1ChildElementsByTagName(org.w3c.dom.Element thisElement,
java.lang.String thisTagName)
Find DOM elements with given tag among first level children |
protected MutableEdge |
makeEdge(MutableNode thisFromNode,
MutableNode thisToNode)
Make model edge |
Model |
makeModel(org.w3c.dom.Document thisDocument)
Make model from document |
protected MutableNode |
makeNode(MutableNode thisParent,
java.lang.String thisId)
Make model node |
Tree |
makeTree(org.w3c.dom.Document thisDocument)
Make tree from document |
private MutableEdge |
toEdge(org.w3c.dom.Element thisEdgeElement)
Make model edge |
private java.util.List<IEdge> |
toEdges(org.w3c.dom.Document thisDocument)
Make list of model edges |
private static MenuItem |
toMenuItem(org.w3c.dom.Element thisElement)
Make menu item |
private MutableNode |
toNode(org.w3c.dom.Element thisNodeElement,
MutableNode thisParent)
Make model node |
private static Settings |
toSettings(org.w3c.dom.Document thisDocument)
Make settings |
private Tree |
toTree(org.w3c.dom.Document thisDocument)
Make graph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.List<DocumentAdapter.MountTask> theMountTasks
private IProvider theProvider
private java.util.Map<java.lang.String,MutableNode> theIdToNodeMap
| Constructor Detail |
|---|
public DocumentAdapter(IProvider thisProvider)
thisProvider - provider (used in recursion)public DocumentAdapter()
| Method Detail |
|---|
public java.util.Map<java.lang.String,MutableNode> getIdToNodeMap()
public Model makeModel(org.w3c.dom.Document thisDocument)
thisDocument - document
public Tree makeTree(org.w3c.dom.Document thisDocument)
thisDocument - document
protected MutableNode makeNode(MutableNode thisParent,
java.lang.String thisId)
thisParent - model parentthisId - id
protected MutableEdge makeEdge(MutableNode thisFromNode,
MutableNode thisToNode)
thisFromNode - model from-node endthisToNode - model to-node end
private Tree toTree(org.w3c.dom.Document thisDocument)
thisDocument - document
private MutableNode toNode(org.w3c.dom.Element thisNodeElement,
MutableNode thisParent)
thisNodeElement - starting DOM elementthisParent - model parent node
private MutableEdge toEdge(org.w3c.dom.Element thisEdgeElement)
thisEdgeElement - edge DOM element
private java.util.List<IEdge> toEdges(org.w3c.dom.Document thisDocument)
thisDocument - DOM document
private static Settings toSettings(org.w3c.dom.Document thisDocument)
thisDocument - DOM document
private static MenuItem toMenuItem(org.w3c.dom.Element thisElement)
thisElement - menu item DOM element
private static org.w3c.dom.Element getFirstElementByTagName(org.w3c.dom.Element thisElement,
java.lang.String thisTagName)
thisElement - starting DOM elementthisTagName - tag
private static org.w3c.dom.Element getFirstLevel1ElementByTagName(org.w3c.dom.Element thisElement,
java.lang.String thisTagName)
thisElement - starting DOM elementthisTagName - tag
private static java.util.List<org.w3c.dom.Element> getLevel1ChildElementsByTagName(org.w3c.dom.Element thisElement,
java.lang.String thisTagName)
thisElement - starting DOM elementthisTagName - tag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||