|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a single resource property. A resource property can have multiple values and can be converted into a DOM
Element
or SOAPElement
array.
Method Summary | |
void |
add(java.lang.Object value)
Adds a value. |
void |
addChangeListener(ResourcePropertyValueChangeListener listener)
Registers the specified value-change listener on this property. |
void |
clear()
Removes all values. |
java.lang.Object |
get(int index)
Retrieves a value at a specific index. |
ResourcePropertyCallback |
getCallBack()
Returns the callback for this property, or null if no callback has been set. |
ResourcePropertyValueChangeListener[] |
getChangeListeners()
Returns the value-change listeners that are registered on this property. |
ResourcePropertyMetaData |
getMetaData()
Gets meta data of this resource property. |
ResourcePropertySet |
getSet()
Returns the resource property set that contains this property. |
boolean |
isEmpty()
Returns true if, and only if, this property contains no elements. |
java.util.Iterator |
iterator()
Returns an iterator over the property elements. |
boolean |
remove(java.lang.Object value)
Removes the first property element with the specified value. |
void |
set(int index,
java.lang.Object value)
Sets a value at a specific index. |
void |
setCallback(ResourcePropertyCallback callback)
Sets a callback for this property. |
int |
size()
Returns the number of values in the resource property. |
org.w3c.dom.Element[] |
toElements()
Converts the resource property into an array of DOM Element s. |
javax.xml.soap.SOAPElement[] |
toSOAPElements()
Converts the resource property value into an array of SOAPElement s. |
java.lang.String |
toXML()
Returns the XML representation of this property (i.e. |
Method Detail |
public ResourcePropertyCallback getCallBack()
public void setCallback(ResourcePropertyCallback callback)
callback
- the callbackpublic ResourcePropertyValueChangeListener[] getChangeListeners()
public boolean isEmpty()
public ResourcePropertyMetaData getMetaData()
public ResourcePropertySet getSet()
public void add(java.lang.Object value)
value
- the value to add.
MetaDataViolationException
- if the name of the element to be added does not match the name associated with this propertypublic void addChangeListener(ResourcePropertyValueChangeListener listener)
listener
- a property value-change listenerpublic void clear()
public java.lang.Object get(int index)
index
- the index of value to retrieve.
public java.util.Iterator iterator()
public boolean remove(java.lang.Object value)
value
- value of a property element to remove
public void set(int index, java.lang.Object value)
index
- the index to set value at.value
- the new valuepublic int size()
public org.w3c.dom.Element[] toElements() throws org.apache.commons.lang.SerializationException
Element
s. If the RP has no values (is null), and RP
element was defined as:
org.apache.commons.lang.SerializationException
- if conversion failspublic javax.xml.soap.SOAPElement[] toSOAPElements() throws org.apache.commons.lang.SerializationException
SOAPElement
s. If the RP has no values (is null),
and RP element was defined as:
org.apache.commons.lang.SerializationException
- if conversion failspublic java.lang.String toXML()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |