|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IResponse
The interface defines the nodes of parse trees created from XML returned by Secure Global Desktop (SGD) web services.
Each node may have a name, some attributes and children, which also implement IResponse.
IResponse nodes are created by factories that implement IResponseFactory
.
Method Summary | |
---|---|
void |
addChild(IResponse node)
Adds a child to a node. |
IResponse |
clone(boolean cloneChildren,
IResponseFactory factory)
Clones a node. |
java.lang.String[] |
getAttribute(java.lang.String name)
Gets the values for a named attribute in the node. |
java.util.Enumeration |
getAttributeNames()
Gets an enumeration of attribute names in the node. |
java.util.Enumeration |
getAttributeValues()
Gets an enumeration of attribute values in the node. |
int |
getChildCount()
Gets the number of children on the node. |
java.util.Enumeration |
getChildren()
Gets an enumeration of children. |
java.lang.String |
getElementName()
Gets the element name of the node. |
int |
getLevel()
Gets the node's level (depth) in the parse tree. |
IResponse |
getParent()
Gets the parent of a node. |
void |
removeChild(IResponse node)
Removes a child from a node. |
void |
setAttribute(java.lang.String name,
java.lang.String[] values)
Sets the values for a named attribute in the node. |
void |
setParent(IResponse parent)
Sets the parent of a node. |
Method Detail |
---|
java.lang.String[] getAttribute(java.lang.String name)
name
- Attribute name.
void setAttribute(java.lang.String name, java.lang.String[] values)
name
- Attribute name.values
- Attribute values. If null, the attribute is removed.java.util.Enumeration getAttributeNames()
java.util.Enumeration getAttributeValues()
int getLevel()
int getChildCount()
java.lang.String getElementName()
java.util.Enumeration getChildren()
void addChild(IResponse node)
node
- Child node.void removeChild(IResponse node)
node
- Child node.IResponse getParent()
void setParent(IResponse parent)
parent
- Parent node.IResponse clone(boolean cloneChildren, IResponseFactory factory)
cloneChildren
- Flag indicating if children are also cloned.factory
- Factory for creating new IResponse nodes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |