thinkmap.xmlconfig
Class ConfigElement

java.lang.Object
  extended by thinkmap.xmlconfig.ConfigElement

public class ConfigElement
extends Object

ConfigElement represents a single object in a configuration tree.

Version:
$Revision $

Field Summary
protected  Map<String,String> attributes
           
protected  int childCount
           
protected  List<ConfigElement> children
           
protected  String documentURI
           
protected  String id
           
protected  String innerText
           
protected  int lineNumber
           
protected  String name
           
protected  String namespace
           
protected  Map<String,String> namespaces
           
protected  ConfigElement parent
           
protected  String refid
           
 
Constructor Summary
protected ConfigElement(ConfigElement parent, String namespace, String name, Attributes attributes, String documentURI, int lineNumber)
           
protected ConfigElement(String documentURI)
           
 
Method Summary
 void addChild(ConfigElement child)
           
 void addNamespace(String prefix, String uri)
           
 void addText(String value)
           
 void close()
           
 ConfigElement createElement(String namespace, String name, Attributes attributes, int lineNumber)
           
 String getAttribute(String s)
           
 Map<String,String> getAttributes()
           
 ConfigElement getChild(int i)
           
 ConfigElement getChild(String name)
           
 int getChildCount()
           
 String getDocumentURI()
           
 String getElementName()
           
 String getId()
           
 String getInnerText()
           
 int getLineNumber()
           
 String getNamespaceURI()
           
 String getNamespaceURIofPrefix(String prefix)
           
 ConfigElement getParentElement()
           
 String getRefid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ConfigElement

protected ConfigElement(String documentURI)

ConfigElement

protected ConfigElement(ConfigElement parent,
                        String namespace,
                        String name,
                        Attributes attributes,
                        String documentURI,
                        int lineNumber)
                 throws XMLException
Throws:
XMLException
Method Detail

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.