|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.resource.properties.impl.XmlBeansResourceProperty
LOG-DONE An Apache XMLBeans-based implementation of a resource property.
Constructor Summary | |
XmlBeansResourceProperty(ResourcePropertyMetaData metaData,
XmlBeansResourcePropertySet propSet)
Creates a new XmlBeansResourceProperty object. |
Method Summary | |
void |
add(java.lang.Object propElem)
DOCUMENT_ME |
void |
clear()
Removes all values. |
java.lang.Object |
get(int index)
DOCUMENT_ME |
ResourcePropertyCallback |
getCallBack()
DOCUMENT_ME |
ResourcePropertyValueChangeListener |
getChangeListener()
|
ResourcePropertyMetaData |
getMetaData()
DOCUMENT_ME |
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()
DOCUMENT_ME |
void |
load(org.apache.xmlbeans.XmlObject propXBean)
This method loads a property element XMLBean, which is already in the resource properties document, into this XmlBeansResourceProperty . |
boolean |
remove(java.lang.Object propElem)
DOCUMENT_ME |
void |
set(int index,
java.lang.Object propElem)
Sets a value at a specific index. |
void |
setCallback(ResourcePropertyCallback callback)
DOCUMENT_ME |
void |
setChangeListener(ResourcePropertyValueChangeListener changeListener)
|
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()
DOCUMENT_ME |
java.lang.String |
toString()
DOCUMENT_ME |
java.lang.String |
toXML()
DOCUMENT_ME |
org.apache.xmlbeans.XmlObject[] |
toXmlObjects()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XmlBeansResourceProperty(ResourcePropertyMetaData metaData, XmlBeansResourcePropertySet propSet)
XmlBeansResourceProperty
object.
metaData
- DOCUMENT_MEpropSet
- DOCUMENT_MEMethod Detail |
public ResourcePropertyCallback getCallBack()
getCallBack
in interface ResourceProperty
public void setCallback(ResourcePropertyCallback callback)
setCallback
in interface ResourceProperty
callback
- DOCUMENT_MEpublic boolean isEmpty()
ResourceProperty
isEmpty
in interface ResourceProperty
public ResourcePropertyMetaData getMetaData()
getMetaData
in interface ResourceProperty
public ResourcePropertySet getSet()
ResourceProperty
getSet
in interface ResourceProperty
public void add(java.lang.Object propElem)
add
in interface ResourceProperty
propElem
- DOCUMENT_ME
MetaDataViolationException
- if the name of the element to be added does not match the name associated with this propertypublic void clear()
ResourceProperty
clear
in interface ResourceProperty
ResourceProperty.clear()
public java.lang.Object get(int index)
get
in interface ResourceProperty
index
- DOCUMENT_ME
public java.util.Iterator iterator()
iterator
in interface ResourceProperty
public void load(org.apache.xmlbeans.XmlObject propXBean)
XmlBeansResourceProperty
. It is called by XmlBeansResourcePropertySet.XmlBeansResourcePropertySet(org.apache.xmlbeans.XmlObject)
to populate newly created XmlBeansResourceProperty
objects.
propXBean
- a property element XMLBean that is already in the resource properties document
MetaDataViolationException
- if the name of the element to be added does not match the name associated with this propertypublic boolean remove(java.lang.Object propElem)
remove
in interface ResourceProperty
propElem
- DOCUMENT_ME
public void set(int index, java.lang.Object propElem)
ResourceProperty
set
in interface ResourceProperty
index
- the index to set value at.propElem
- the new valueResourceProperty.set(int, Object)
public int size()
ResourceProperty
size
in interface ResourceProperty
ResourceProperty.size()
public org.w3c.dom.Element[] toElements() throws org.apache.commons.lang.SerializationException
ResourceProperty
Element
s. If the RP has no values (is null), and RP
element was defined as:
toElements
in interface ResourceProperty
org.apache.commons.lang.SerializationException
- if conversion failsResourceProperty.toElements()
public javax.xml.soap.SOAPElement[] toSOAPElements() throws org.apache.commons.lang.SerializationException
toSOAPElements
in interface ResourceProperty
org.apache.commons.lang.SerializationException
- DOCUMENT_MEpublic java.lang.String toString()
public java.lang.String toXML()
toXML
in interface ResourceProperty
public org.apache.xmlbeans.XmlObject[] toXmlObjects()
public ResourcePropertyValueChangeListener getChangeListener()
getChangeListener
in interface ResourceProperty
public void setChangeListener(ResourcePropertyValueChangeListener changeListener)
setChangeListener
in interface ResourceProperty
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |