|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetapp.manage.NaElement
This class is one element of a XML-like tree of elements.
| Constructor Summary | |
NaElement(java.lang.String name)
Construct a NaElement with the specified name. |
|
NaElement(java.lang.String name,
java.lang.String content)
Construct a NaElement with the specified name
and content. |
|
| Method Summary | |
void |
addChildElem(NaElement elem)
Add a child element. |
void |
addNewChild(java.lang.String name,
java.lang.String content)
Add a new child element with a given name and content. |
void |
addNewEncryptedChild(java.lang.String name,
java.lang.String content)
Encrypts data contained in content. |
void |
childAdd(NaElement n)
Deprecated. As of SDK version 1.4, replaced by addChildElem(NaElement) |
NaElement |
childAddString(java.lang.String name,
java.lang.String val)
Deprecated. As of SDK version 1.4, replaced by addNewChild(String,String) |
NaElement |
childGet(java.lang.String n)
Deprecated. As of SDK version 1.4, replaced by getChildByName(String) |
int |
childGetInt(java.lang.String name,
int defVal)
Deprecated. As of SDK version 1.4, replaced by getChildIntValue(String,int) |
java.lang.String |
childGetString(java.lang.String name)
Deprecated. As of SDK version 1.4, replaced by getChildContent(String) |
java.util.Vector |
childrenGet()
Deprecated. As of SDK version 1.4, replaced by getChildren() |
java.lang.String |
getAttr(java.lang.String name)
Get the value of an attribute. |
NaElement |
getChildByName(java.lang.String name)
Find and return the child element with a specified name. |
java.lang.String |
getChildContent(java.lang.String name)
Find a child with the specified name and return its string content. |
java.lang.String |
getChildEncryptContent(java.lang.String name)
Finds a child with the specified name , decrypts it's string content and returns decrypted content. |
int |
getChildIntValue(java.lang.String name,
int defVal)
Find a child with the specified name and return its content as as an int value. |
long |
getChildLongValue(java.lang.String name,
long defVal)
Find a child with the specified name and return its content as as an int value. |
java.util.List |
getChildren()
Get the list of children. |
java.lang.String |
getContent()
Get the value of the content of this element. |
java.lang.String |
getEncryptContent()
Decrypts and returns the value of content of this element. |
java.lang.String |
getName()
Get the name of this element. |
boolean |
hasChildren()
Determine if there are children. |
int |
resultsErrno()
Deprecated. As of SDK version 1.4, always returns 0. NaServer.invoke() now throws NaAPIFailedException from which errno is available using getErrno(). |
java.lang.String |
resultsReason()
Deprecated. As of SDK version 1.4, always returns null. NaServer.invoke() now throws NaAPIFailedException from which reason is available using getReason(). |
boolean |
resultsStatus()
Deprecated. As of SDK version 1.4, always returns true |
void |
setContent(java.lang.String content)
Set the value of the content of this element. |
void |
setName(java.lang.String name)
Set the name of this element. |
java.lang.String |
toPrettyString(java.lang.String prefix)
Convert an element and all its children to a pretty XML string. |
java.lang.String |
toPrettyString(java.lang.String prefix,
int maxDepth)
Convert an element and all its children to a pretty XML string. |
java.lang.String |
toString()
Convert an element and all its children to a single string, formatted as XML. |
java.lang.String |
toString(java.lang.String prefix)
Deprecated. As of SDK version 1.4, replaced by toPrettyString(String) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NaElement(java.lang.String name)
NaElement with the specified name.
name - the element name.
public NaElement(java.lang.String name,
java.lang.String content)
NaElement with the specified name
and content.
name - the element name.content - the element content.| Method Detail |
public java.lang.String toPrettyString(java.lang.String prefix,
int maxDepth)
"...".
prefix - string to add to the beginning of each line.maxDepth - maximum nesting level to stringify.
public java.lang.String toPrettyString(java.lang.String prefix)
prefix - string to add to the beginning of each line.
public java.lang.String toString()
public void setName(java.lang.String name)
name - the new name.public java.lang.String getName()
public java.lang.String getChildContent(java.lang.String name)
name - name of the desired child.
public int getChildIntValue(java.lang.String name,
int defVal)
name - name of the desired child.defVal - if the named child does not exist,
this value is returned.
public long getChildLongValue(java.lang.String name,
long defVal)
name - name of the desired child.defVal - if the named child does not exist,
this value is returned.
public java.util.List getChildren()
List containing NaElement values.public NaElement getChildByName(java.lang.String name)
name - rhe name of the child to find.
NaElement which is the child.public boolean hasChildren()
public void setContent(java.lang.String content)
content - the content.public java.lang.String getContent()
public void addNewChild(java.lang.String name,
java.lang.String content)
name - The name of the new child element.content - The content value of the new child element.public void addChildElem(NaElement elem)
elem - the child elemet to add.public java.lang.String getAttr(java.lang.String name)
name - attribute name.
public void addNewEncryptedChild(java.lang.String name,
java.lang.String content)
name - The name of new child element.content - The content value of new child element.public java.lang.String getChildEncryptContent(java.lang.String name)
name - The name of child element.
public java.lang.String getEncryptContent()
public java.lang.String toString(java.lang.String prefix)
toPrettyString(String).
public java.lang.String childGetString(java.lang.String name)
getChildContent(String).
public int childGetInt(java.lang.String name,
int defVal)
getChildIntValue(String,int).
public java.util.Vector childrenGet()
getChildren().
public NaElement childGet(java.lang.String n)
getChildByName(String).
public NaElement childAddString(java.lang.String name,
java.lang.String val)
addNewChild(String,String).
public void childAdd(NaElement n)
addChildElem(NaElement).
public java.lang.String resultsReason()
public int resultsErrno()
public boolean resultsStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||