Package dap4.core.dmr
Class DapXML
- java.lang.Object
-
- dap4.core.dmr.DapXML
-
public class DapXML extends Object
This class is not intended to be a full org.w3c.DOM implementation. Rather it stores more-or-less equivalent information in a more AST like form.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDapXML.NodeTypestatic classDapXML.XMLList
-
Constructor Summary
Constructors Constructor Description DapXML()DapXML(DapXML.NodeType nodetype, String fullname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(DapXML child)voidaddXMLAttribute(DapXML attr)List<DapXML>getElements()StringgetLocalName()StringgetName()DapXML.NodeTypegetNodeType()DapXMLgetParent()StringgetPrefix()StringgetText()StringgetValue()Map<String,DapXML>getXMLAttributes()protected voidindent(int n, StringBuilder buf)voidsetLocalName(String localname)voidsetName(String name)voidsetNodeType(DapXML.NodeType nodetype)voidsetParent(DapXML parent)voidsetPrefix(String prefix)voidsetText(String text)voidsetValue(String value)protected voidstringify(int depth, StringBuilder buf)StringtoString()
-
-
-
Constructor Detail
-
DapXML
public DapXML()
-
DapXML
public DapXML(DapXML.NodeType nodetype, String fullname)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getNodeType
public DapXML.NodeType getNodeType()
-
setNodeType
public void setNodeType(DapXML.NodeType nodetype)
-
getLocalName
public String getLocalName()
-
setLocalName
public void setLocalName(String localname)
-
getPrefix
public String getPrefix()
-
setPrefix
public void setPrefix(String prefix)
-
getParent
public DapXML getParent()
-
setParent
public void setParent(DapXML parent)
-
addElement
public void addElement(DapXML child)
-
addXMLAttribute
public void addXMLAttribute(DapXML attr) throws DapException
- Throws:
DapException
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
getText
public String getText()
-
setText
public void setText(String text)
-
stringify
protected void stringify(int depth, StringBuilder buf)
-
indent
protected void indent(int n, StringBuilder buf)
-
-