org.wilmascope.file
Class XMLGraph.XMLGraphElement

java.lang.Object
  extended by org.wilmascope.file.XMLGraph.XMLGraphElement
Direct Known Subclasses:
XMLGraph.Edge, XMLGraph.LayoutEngineType, XMLGraph.Node, XMLGraph.Property, XMLGraph.ViewType
Enclosing class:
XMLGraph

public abstract class XMLGraph.XMLGraphElement
extends java.lang.Object

Author:
dwyer An abstract wrapper for the underlying DOM element that we inherit in our wrappers for the various Graph elements

Constructor Summary
protected XMLGraph.XMLGraphElement(org.w3c.dom.Element element)
           
protected XMLGraph.XMLGraphElement(java.lang.String name)
           
 
Method Summary
protected  void appendChild(XMLGraph.XMLGraphElement child)
           
protected  void createElement(java.lang.String name)
           
protected  java.lang.String getAttribute(java.lang.String attribute)
           
protected  org.w3c.dom.Element[] getChildElements(java.lang.String tag)
          get array of Elements matching the tag name
protected  org.w3c.dom.NodeList getChildNodes()
           
protected  org.w3c.dom.Element getElement()
           
protected  float getFloatAttribute(java.lang.String attribute)
           
protected  java.util.Properties getProperties()
           
protected  XMLGraph.ViewType getViewType()
           
protected  void setAttribute(java.lang.String attribute, float value)
           
protected  void setAttribute(java.lang.String attribute, java.lang.String value)
           
 void setProperties(java.util.Properties ps)
           
 XMLGraph.ViewType setViewType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLGraph.XMLGraphElement

protected XMLGraph.XMLGraphElement(java.lang.String name)

XMLGraph.XMLGraphElement

protected XMLGraph.XMLGraphElement(org.w3c.dom.Element element)
Method Detail

getElement

protected org.w3c.dom.Element getElement()

setAttribute

protected void setAttribute(java.lang.String attribute,
                            java.lang.String value)

setAttribute

protected void setAttribute(java.lang.String attribute,
                            float value)

getAttribute

protected java.lang.String getAttribute(java.lang.String attribute)

getFloatAttribute

protected float getFloatAttribute(java.lang.String attribute)

createElement

protected void createElement(java.lang.String name)

getChildNodes

protected org.w3c.dom.NodeList getChildNodes()

appendChild

protected void appendChild(XMLGraph.XMLGraphElement child)

getChildElements

protected org.w3c.dom.Element[] getChildElements(java.lang.String tag)
get array of Elements matching the tag name

Parameters:
tag - element tag to match
Returns:
an array of Elements matching the tag

getProperties

protected java.util.Properties getProperties()

getViewType

protected XMLGraph.ViewType getViewType()

setViewType

public XMLGraph.ViewType setViewType(java.lang.String type)

setProperties

public void setProperties(java.util.Properties ps)