|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ksoap2.serialization.AttributeContainer
public class AttributeContainer
Constructor Summary | |
---|---|
AttributeContainer()
|
Method Summary | |
---|---|
void |
addAttribute(AttributeInfo attributeInfo)
Add a new attribute by providing an AttributeInfo object. |
void |
addAttribute(String name,
Object value)
Adds a attribute (parameter) to the object. |
protected boolean |
attributesAreEqual(AttributeContainer other)
Checks that the two objects have identical sets of attributes. |
Object |
getAttribute(int index)
Get the attribute at the given index |
Object |
getAttribute(String name)
Get the attribute with the given name |
int |
getAttributeCount()
Returns the number of attributes |
void |
getAttributeInfo(int index,
AttributeInfo attributeInfo)
Places AttributeInfo of desired attribute into a designated AttributeInfo object |
boolean |
hasAttribute(String name)
Knows whether the given attribute exists |
Object |
safeGetAttribute(String name)
Get an attribute without chance of throwing an exception |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeContainer()
Method Detail |
---|
public void getAttributeInfo(int index, AttributeInfo attributeInfo)
index
- index of desired attributeattributeInfo
- designated retainer of desired attributepublic Object getAttribute(int index)
public Object getAttribute(String name)
RuntimeException
- if the attribute does not existpublic boolean hasAttribute(String name)
public Object safeGetAttribute(String name)
null
if it does not existpublic int getAttributeCount()
protected boolean attributesAreEqual(AttributeContainer other)
other
-
true
of the attrubte sets are equal, false
otherwise.public void addAttribute(String name, Object value)
name
- The name of the attributevalue
- the value of the attributepublic void addAttribute(AttributeInfo attributeInfo)
AttributeInfo
object. AttributeInfo
contains all data about the attribute, including name and value.}
attributeInfo
- the AttributeInfo
object to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |