Author: scamp
Date: Tue May 3 11:13:41 2005
New Revision: 167947
URL: http://svn.apache.org/viewcvs?rev=167947&view=rev
Log: (empty)
Modified:
incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/impl/XmlBeansResourcePropertySet.java
Modified:
incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/impl/XmlBeansResourcePropertySet.java
URL:
http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/impl/XmlBeansResourcePropertySet.java?rev=167947&r1=167946&r2=167947&view=diff
==============================================================================
---
incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/impl/XmlBeansResourcePropertySet.java
(original)
+++
incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/impl/XmlBeansResourcePropertySet.java
Tue May 3 11:13:41 2005
@@ -226,6 +226,24 @@
}
/**
+ * Forces the removal/addition of a ResourceProperty...This will not check
with the schema and is intended
+ * to be used when the user intends to "replace" the internal
ResourceProperty with something else.
+ *
+ * @param prop The ResourceProperty which will be overwritten
+ * @return true
+ */
+ public boolean set(ResourceProperty prop)
+ {
+ QName propName = prop.getMetaData().getName();
+ LOG.debug( MSG.getMessage( Keys.REMOVING_PROP, propName.toString() ) );
+ ResourceProperty resourceProp = (ResourceProperty) m_propsMap.get(
propName );
+ resourceProp.clear();
+ m_propsMap.remove( propName );
+ addProperty( prop );
+ return true;
+ }
+
+ /**
* @return
*/
public int size()
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]