|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a single resource property. A resource property can have multiple
values and be converted into a DOM Element or
SOAPElement array.
| Method Summary | |
void |
add(Object value)
Adds a value. |
void |
clear()
Removes all values. |
Object |
get(int index)
Retrieves a value at a specific index. |
int |
getMaxOccurs()
Returns the maximum number of values that this resource property can have. |
int |
getMinOccurs()
Returns the minimum number of values that this resource property can have. |
QName |
getName()
Returns ResourceProperty name. |
boolean |
isNillable()
Returns if this resource property can be nillable. |
boolean |
remove(Object value)
Removes a specific value. |
void |
set(int index,
Object value)
Sets a value at a specific index. |
void |
setMaxOccurs(int max)
Sets the maximum number of values that this resource property can ever have. |
void |
setMinOccurs(int min)
Sets the minimum number of values that this resource property can ever have. |
void |
setNillable(boolean nillable)
Sets if this resource property can be nillable. |
int |
size()
Returns the number of values in the resource property. |
Element[] |
toElement()
Converts the resource property value into a DOM Element array. |
SOAPElement[] |
toSOAPElement()
Converts the resource property value into a SOAPElement array. |
void |
toSOAPElement(List list)
Converts the resource property values into SOAPElements and adds them to the specified list. |
| Method Detail |
public QName getName()
public void add(Object value)
value - the value to add.public boolean remove(Object value)
value - value to remove.public Object get(int index)
index - the index of value to retrieve.
public void set(int index,
Object value)
index - the index to set value at.value - the new valuepublic void clear()
public int size()
public boolean isNillable()
public void setNillable(boolean nillable)
nillable - the nillable property.public int getMinOccurs()
public void setMinOccurs(int min)
min - the minimum number of values allowed in this resource
property.public int getMaxOccurs()
Integer.MAX_VALUE if
unlimited.public void setMaxOccurs(int max)
max - the maximum number of values allowed in this resource
property.
public SOAPElement[] toSOAPElement()
throws Exception
getName()).
If the RP has no values (is null), and RP element was defined as:
Exception - if conversion fails.
public void toSOAPElement(List list)
throws Exception
Exception - if conversion fails.
public Element[] toElement()
throws Exception
getName()).
If the RP has no values (is null), and RP element was defined as:
Exception - if conversion fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||