com.agimatec.commons.config.sax
Class NodeHandler
java.lang.Object
com.agimatec.commons.config.sax.NodeHandler
- Direct Known Subclasses:
- FileNodeHandler
public abstract class NodeHandler
- extends java.lang.Object
Title:
Description:
Company:
- Author:
- Roman Stumm
|
Method Summary |
protected void |
acceptCharacters(ConfigContentHandler docHandler,
char[] chars,
int offset,
int length)
|
protected void |
acceptNode(ConfigContentHandler docHandler,
java.lang.Object aNode,
org.xml.sax.Attributes attr)
|
protected java.lang.String |
appendCharacters(java.lang.String oldText,
char[] chars,
int offset,
int length)
append a new string to on oldText, if oldText is ! |
protected abstract java.lang.Class |
getInstanceClass()
|
protected java.lang.String |
getName(org.xml.sax.Attributes attr)
|
protected java.lang.String |
getValue(org.xml.sax.Attributes attr)
|
protected void |
printIndent(java.io.PrintWriter pw,
int indent)
util method for toString() xml conversion. |
protected void |
setName(Node node,
org.xml.sax.Attributes attr)
|
protected abstract java.lang.Object |
startNode(org.xml.sax.Attributes attr)
|
protected java.lang.String |
tag()
|
protected void |
writeConfig(ConfigWriter writer,
java.lang.Object obj,
java.lang.Object parent,
java.io.PrintWriter pw,
int indent)
|
protected void |
writeParentName(java.io.PrintWriter pw,
java.lang.Object parent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeHandler
public NodeHandler(java.lang.String aTag)
acceptNode
protected void acceptNode(ConfigContentHandler docHandler,
java.lang.Object aNode,
org.xml.sax.Attributes attr)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
tag
protected java.lang.String tag()
acceptCharacters
protected void acceptCharacters(ConfigContentHandler docHandler,
char[] chars,
int offset,
int length)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
appendCharacters
protected java.lang.String appendCharacters(java.lang.String oldText,
char[] chars,
int offset,
int length)
- append a new string to on oldText, if oldText is != null. otherwise return the new string
- Parameters:
oldText - - the previous text valuechars - offset - length -
- Returns:
startNode
protected abstract java.lang.Object startNode(org.xml.sax.Attributes attr)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
getInstanceClass
protected abstract java.lang.Class getInstanceClass()
setName
protected void setName(Node node,
org.xml.sax.Attributes attr)
getValue
protected java.lang.String getValue(org.xml.sax.Attributes attr)
getName
protected java.lang.String getName(org.xml.sax.Attributes attr)
writeConfig
protected void writeConfig(ConfigWriter writer,
java.lang.Object obj,
java.lang.Object parent,
java.io.PrintWriter pw,
int indent)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
printIndent
protected final void printIndent(java.io.PrintWriter pw,
int indent)
- util method for toString() xml conversion.
this method makes the indent of the xml lines.
writeParentName
protected void writeParentName(java.io.PrintWriter pw,
java.lang.Object parent)
Copyright © 2008-2012. All Rights Reserved.