public abstract class NodeHandler extends Object
| Constructor and Description |
|---|
NodeHandler(String aTag) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acceptCharacters(ConfigContentHandler docHandler,
char[] chars,
int offset,
int length) |
protected void |
acceptNode(ConfigContentHandler docHandler,
Object aNode,
Attributes attr) |
protected String |
appendCharacters(String oldText,
char[] chars,
int offset,
int length)
append a new string to on oldText, if oldText is !
|
protected abstract Class |
getInstanceClass() |
protected String |
getName(Attributes attr) |
protected String |
getValue(Attributes attr) |
protected void |
printIndent(PrintWriter pw,
int indent)
util method for toString() xml conversion.
|
protected void |
setName(Node node,
Attributes attr) |
protected abstract Object |
startNode(Attributes attr) |
protected String |
tag() |
protected void |
writeConfig(ConfigWriter writer,
Object obj,
Object parent,
PrintWriter pw,
int indent) |
protected void |
writeParentName(PrintWriter pw,
Object parent) |
public NodeHandler(String aTag)
protected void acceptNode(ConfigContentHandler docHandler, Object aNode, Attributes attr) throws SAXException
SAXExceptionprotected String tag()
protected void acceptCharacters(ConfigContentHandler docHandler, char[] chars, int offset, int length) throws SAXException
SAXExceptionprotected String appendCharacters(String oldText, char[] chars, int offset, int length)
oldText - - the previous text valuechars - offset - length - protected abstract Object startNode(Attributes attr) throws SAXException
SAXExceptionprotected abstract Class getInstanceClass()
protected void setName(Node node, Attributes attr)
protected String getValue(Attributes attr)
protected String getName(Attributes attr)
protected void writeConfig(ConfigWriter writer, Object obj, Object parent, PrintWriter pw, int indent) throws SAXException
SAXExceptionprotected final void printIndent(PrintWriter pw, int indent)
protected void writeParentName(PrintWriter pw, Object parent)
Copyright © 2008-2016. All Rights Reserved.