|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttreebolic.generator.ModelToDocumentTransformer
public class ModelToDocumentTransformer
Model to document transformer
| Field Summary | |
|---|---|
private static boolean |
validate
|
| Constructor Summary | |
|---|---|
ModelToDocumentTransformer()
|
|
| Method Summary | |
|---|---|
private static org.w3c.dom.Element |
makeContent(org.w3c.dom.Document thisDocument,
java.lang.String thisString)
Make content element |
private static javax.xml.parsers.DocumentBuilder |
makeDocumentBuilder()
Make document builder |
private static org.w3c.dom.Element |
makeEdge(org.w3c.dom.Document thisDocument,
IEdge thisEdge)
Make edge element |
static org.w3c.dom.Element |
makeImage(org.w3c.dom.Document thisDocument,
java.lang.String thisImageSrc)
Make image element |
private static org.w3c.dom.Element |
makeLabel(org.w3c.dom.Document thisDocument,
java.lang.String thisString)
Make label element |
private static org.w3c.dom.Element |
makeLink(org.w3c.dom.Document thisDocument,
java.lang.String thisHref,
java.lang.String thisTarget)
Make link element |
private static org.w3c.dom.Element |
makeMenuItem(org.w3c.dom.Document thisDocument,
MenuItem thisMenuItem)
Make menuitem element |
private static org.w3c.dom.Element |
makeMountPoint(org.w3c.dom.Document thisDocument,
MountPoint.Mounting thisMountPoint)
Make mountpoint element |
private static org.w3c.dom.Element |
makeNode(org.w3c.dom.Document thisDocument,
INode thisNode)
Make node element |
private static void |
setAttributes(org.w3c.dom.Element thisElement,
java.util.Map<java.lang.String,java.lang.Object> theseAttributes)
Set attributes |
private static void |
setStyleAttributes(org.w3c.dom.Element thisElement,
java.lang.Integer thisStyle)
Set style attributes |
static org.w3c.dom.Document |
transform(Model thisModel)
Transform model to document |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static boolean validate
| Constructor Detail |
|---|
public ModelToDocumentTransformer()
| Method Detail |
|---|
public static org.w3c.dom.Document transform(Model thisModel)
thisModel - model
private static javax.xml.parsers.DocumentBuilder makeDocumentBuilder()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
private static org.w3c.dom.Element makeNode(org.w3c.dom.Document thisDocument,
INode thisNode)
thisDocument - documentthisNode - node
private static org.w3c.dom.Element makeEdge(org.w3c.dom.Document thisDocument,
IEdge thisEdge)
private static org.w3c.dom.Element makeLabel(org.w3c.dom.Document thisDocument,
java.lang.String thisString)
thisDocument - documentthisString - label
private static org.w3c.dom.Element makeContent(org.w3c.dom.Document thisDocument,
java.lang.String thisString)
thisDocument - documentthisString - content
public static org.w3c.dom.Element makeImage(org.w3c.dom.Document thisDocument,
java.lang.String thisImageSrc)
thisDocument - documentthisImageSrc - image source
private static org.w3c.dom.Element makeLink(org.w3c.dom.Document thisDocument,
java.lang.String thisHref,
java.lang.String thisTarget)
thisDocument - documentthisHref - link href
private static org.w3c.dom.Element makeMountPoint(org.w3c.dom.Document thisDocument,
MountPoint.Mounting thisMountPoint)
thisDocument - documentthisMountPoint - mountpoint
private static org.w3c.dom.Element makeMenuItem(org.w3c.dom.Document thisDocument,
MenuItem thisMenuItem)
thisDocument - documentthisMenuItem - menuitem
private static void setStyleAttributes(org.w3c.dom.Element thisElement,
java.lang.Integer thisStyle)
thisElement - elementthisStyle - style
private static void setAttributes(org.w3c.dom.Element thisElement,
java.util.Map<java.lang.String,java.lang.Object> theseAttributes)
thisElement - elementtheseAttributes - attributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||