org.apache.ws.resource.properties.impl
Class XmlBeansResourcePropertySet

java.lang.Object
  extended byorg.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet
All Implemented Interfaces:
ResourcePropertySet

public class XmlBeansResourcePropertySet
extends java.lang.Object
implements ResourcePropertySet

LOG-DONE An Apache XMLBeans-based implementation of a resource property set.

Author:
Ian P. Springer

Constructor Summary
XmlBeansResourcePropertySet(org.apache.xmlbeans.XmlObject propsDocXBean)
          Creates a new XmlBeansResourcePropertySet object.
XmlBeansResourcePropertySet(org.apache.xmlbeans.XmlObject propsDocXBean, javax.xml.namespace.QName[] readOnlyPropNames)
          Creates a new XmlBeansResourcePropertySet object.
 
Method Summary
 boolean add(ResourceProperty prop)
          DOCUMENT_ME
 void clear()
          Removes all properties.
 ResourceProperty create(ResourcePropertyMetaData metaData)
          A factory method for creating
 ResourceProperty get(javax.xml.namespace.QName propName)
          DOCUMENT_ME
 ResourcePropertySetMetaData getMetaData()
          DOCUMENT_ME
protected  java.lang.String getPropsDocClassName(javax.xml.namespace.QName resourcePropsDocElemQName)
          Gets the XmlBean Java classname representing the resource property document.
 boolean isEmpty()
          Returns true if, and only if, this set contains no properties.
 java.util.Iterator iterator()
          DOCUMENT_ME
 boolean remove(javax.xml.namespace.QName propName)
          DOCUMENT_ME
 int size()
          Returns the number of properties in this set.
 org.w3c.dom.Element toElement()
          DOCUMENT_ME
 javax.xml.soap.SOAPElement toSOAPElement()
          DOCUMENT_ME
 java.lang.String toString()
          DOCUMENT_ME
 java.lang.String toXML()
          Returns the XML representation of this property set (i.e.
 org.apache.xmlbeans.XmlObject toXmlObject()
          DOCUMENT_ME
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlBeansResourcePropertySet

public XmlBeansResourcePropertySet(org.apache.xmlbeans.XmlObject propsDocXBean)
                            throws MetaDataViolationException
Creates a new XmlBeansResourcePropertySet object.

Parameters:
propsDocXBean - DOCUMENT_ME

XmlBeansResourcePropertySet

public XmlBeansResourcePropertySet(org.apache.xmlbeans.XmlObject propsDocXBean,
                                   javax.xml.namespace.QName[] readOnlyPropNames)
                            throws MetaDataViolationException
Creates a new XmlBeansResourcePropertySet object.

Parameters:
propsDocXBean - DOCUMENT_ME
readOnlyPropNames - names of any properties that should be made read-only
Method Detail

getPropsDocClassName

protected java.lang.String getPropsDocClassName(javax.xml.namespace.QName resourcePropsDocElemQName)
Gets the XmlBean Java classname representing the resource property document.

Parameters:
resourcePropsDocElemQName - the QName of the resource property document
Returns:
XmlBean classname that represents the resource property document

isEmpty

public boolean isEmpty()
Description copied from interface: ResourcePropertySet
Returns true if, and only if, this set contains no properties.

Specified by:
isEmpty in interface ResourcePropertySet
Returns:

getMetaData

public ResourcePropertySetMetaData getMetaData()
DOCUMENT_ME

Specified by:
getMetaData in interface ResourcePropertySet
Returns:
DOCUMENT_ME

add

public boolean add(ResourceProperty prop)
            throws MetaDataViolationException
DOCUMENT_ME

Specified by:
add in interface ResourcePropertySet
Parameters:
prop - DOCUMENT_ME
Returns:
DOCUMENT_ME
Throws:
MetaDataViolationException

clear

public void clear()
           throws MetaDataViolationException
Description copied from interface: ResourcePropertySet
Removes all properties.

Specified by:
clear in interface ResourcePropertySet
Throws:
MetaDataViolationException

create

public ResourceProperty create(ResourcePropertyMetaData metaData)
A factory method for creating

Parameters:
metaData -
Returns:

get

public ResourceProperty get(javax.xml.namespace.QName propName)
DOCUMENT_ME

Specified by:
get in interface ResourcePropertySet
Parameters:
propName - DOCUMENT_ME
Returns:
DOCUMENT_ME

iterator

public java.util.Iterator iterator()
DOCUMENT_ME

Specified by:
iterator in interface ResourcePropertySet
Returns:
DOCUMENT_ME

remove

public boolean remove(javax.xml.namespace.QName propName)
               throws MetaDataViolationException
DOCUMENT_ME

Specified by:
remove in interface ResourcePropertySet
Parameters:
propName - DOCUMENT_ME
Returns:
DOCUMENT_ME
Throws:
MetaDataViolationException

size

public int size()
Description copied from interface: ResourcePropertySet
Returns the number of properties in this set.

Specified by:
size in interface ResourcePropertySet
Returns:

toElement

public org.w3c.dom.Element toElement()
                              throws org.apache.commons.lang.SerializationException
DOCUMENT_ME

Specified by:
toElement in interface ResourcePropertySet
Returns:
DOCUMENT_ME
Throws:
org.apache.commons.lang.SerializationException - DOCUMENT_ME

toSOAPElement

public javax.xml.soap.SOAPElement toSOAPElement()
                                         throws org.apache.commons.lang.SerializationException
DOCUMENT_ME

Specified by:
toSOAPElement in interface ResourcePropertySet
Returns:
DOCUMENT_ME
Throws:
org.apache.commons.lang.SerializationException - DOCUMENT_ME

toString

public java.lang.String toString()
DOCUMENT_ME

Returns:
DOCUMENT_ME

toXML

public java.lang.String toXML()
Description copied from interface: ResourcePropertySet
Returns the XML representation of this property set (i.e. the resource properties document).

Specified by:
toXML in interface ResourcePropertySet
Returns:

toXmlObject

public org.apache.xmlbeans.XmlObject toXmlObject()
DOCUMENT_ME

Returns:
DOCUMENT_ME


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.