thinkmap.xmlconfig
Class ConfigElement
java.lang.Object
thinkmap.xmlconfig.ConfigElement
public class ConfigElement
- extends Object
ConfigElement represents a single object in a configuration tree.
- Version:
- $Revision $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
namespace
protected String namespace
name
protected String name
namespaces
protected Map<String,String> namespaces
attributes
protected Map<String,String> attributes
documentURI
protected String documentURI
id
protected String id
refid
protected String refid
innerText
protected String innerText
children
protected List<ConfigElement> children
childCount
protected int childCount
parent
protected ConfigElement parent
lineNumber
protected int lineNumber
ConfigElement
protected ConfigElement(String documentURI)
ConfigElement
protected ConfigElement(ConfigElement parent,
String namespace,
String name,
Attributes attributes,
String documentURI,
int lineNumber)
throws XMLException
- Throws:
XMLException
addChild
public void addChild(ConfigElement child)
throws XMLException
- Throws:
XMLException
close
public void close()
throws XMLException
- Throws:
XMLException
createElement
public ConfigElement createElement(String namespace,
String name,
Attributes attributes,
int lineNumber)
throws XMLException
- Throws:
XMLException
addText
public void addText(String value)
getParentElement
public ConfigElement getParentElement()
getElementName
public String getElementName()
getNamespaceURI
public String getNamespaceURI()
getLineNumber
public int getLineNumber()
getDocumentURI
public String getDocumentURI()
getNamespaceURIofPrefix
public String getNamespaceURIofPrefix(String prefix)
throws XMLException
- Throws:
XMLException
addNamespace
public void addNamespace(String prefix,
String uri)
throws XMLException
- Throws:
XMLException
getAttribute
public String getAttribute(String s)
getChildCount
public int getChildCount()
getChild
public ConfigElement getChild(int i)
getChild
public ConfigElement getChild(String name)
getId
public String getId()
getRefid
public String getRefid()
getInnerText
public String getInnerText()
getAttributes
public Map<String,String> getAttributes()
Copyright © 2013 Thinkmap, Inc. All Rights Reserved.