public abstract class NodeVisitor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected NodeVisitor |
nv |
static int |
TYPE_FIRST_INT |
static int |
TYPE_INT_BOOLEAN |
static int |
TYPE_INT_HEX |
static int |
TYPE_REFERENCE |
static int |
TYPE_STRING |
| Constructor and Description |
|---|
NodeVisitor() |
NodeVisitor(NodeVisitor nv) |
| Modifier and Type | Method and Description |
|---|---|
void |
attr(String ns,
String name,
int resourceId,
int type,
Object obj)
add attribute to the node
|
NodeVisitor |
child(String ns,
String name)
create a child node
|
void |
end()
end the visit
|
void |
line(int ln)
line number in the .xml
|
void |
text(int lineNumber,
String value)
the node text
|
public static final int TYPE_FIRST_INT
public static final int TYPE_INT_BOOLEAN
public static final int TYPE_INT_HEX
public static final int TYPE_REFERENCE
public static final int TYPE_STRING
protected NodeVisitor nv
public NodeVisitor()
public NodeVisitor(NodeVisitor nv)
public void attr(String ns, String name, int resourceId, int type, Object obj)
ns - name - resourceId - type - TYPE_STRING or othersobj - a string for TYPE_STRING ,and Integer for otherspublic NodeVisitor child(String ns, String name)
ns - name - public void end()
public void line(int ln)
ln - public void text(int lineNumber,
String value)
value - Copyright © 2022 Secure Software Engineering Group - University of Paderborn. All rights reserved.