com.sun.xml.ws.api
Class PropertySet

java.lang.Object
  extended by com.oracle.webservices.api.message.BasePropertySet
      extended by com.sun.xml.ws.api.PropertySet
All Implemented Interfaces:
PropertySet
Direct Known Subclasses:
AdditionalResponses

Deprecated. Use com.oracle.webservices.api.message.PropertySet instead.

public abstract class PropertySet
extends BasePropertySet

Placeholder for backwards compatibility.

Author:
snajper

Nested Class Summary
protected static class PropertySet.PropertyMap
          Deprecated.  
 
Nested classes/interfaces inherited from class com.oracle.webservices.api.message.BasePropertySet
BasePropertySet.Accessor, BasePropertySet.PropertyMapEntry
 
Nested classes/interfaces inherited from interface com.oracle.webservices.api.message.PropertySet
PropertySet.Property
 
Constructor Summary
PropertySet()
          Deprecated.  
 
Method Summary
protected  void createEntrySet(Set<Map.Entry<String,Object>> core)
          Deprecated.  
 Object get(Object key)
          Deprecated. Gets the name of the property.
protected abstract  PropertySet.PropertyMap getPropertyMap()
          Deprecated. Map representing the Fields and Methods annotated with PropertySet.Property.
protected static PropertySet.PropertyMap parse(Class clazz)
          Deprecated.  
 Object put(String key, Object value)
          Deprecated. Sets a property.
 Object remove(Object key)
          Deprecated.  
 boolean supports(Object key)
          Deprecated. Checks if this PropertySet supports a property of the given name.
 
Methods inherited from class com.oracle.webservices.api.message.BasePropertySet
asMap, containsKey, createMapView, createView, mapAllowsAdditionalProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySet

public PropertySet()
Deprecated. 
Method Detail

parse

protected static PropertySet.PropertyMap parse(Class clazz)
Deprecated. 


get

public Object get(Object key)
Deprecated. 
Gets the name of the property.

Specified by:
get in interface PropertySet
Overrides:
get in class BasePropertySet
Parameters:
key - This field is typed as Object to follow the HashMap.get(Object) convention, but if anything but String is passed, this method just returns null.

put

public Object put(String key,
                  Object value)
Deprecated. 
Sets a property.

Implementation Note

This method is slow. Code inside JAX-WS should define strongly-typed fields in this class and access them directly, instead of using this.

Specified by:
put in interface PropertySet
Overrides:
put in class BasePropertySet
Throws:
ReadOnlyPropertyException - if the given key is an alias of a strongly-typed field, and if the name object given is not assignable to the field.
See Also:
Property

supports

public boolean supports(Object key)
Deprecated. 
Description copied from class: BasePropertySet
Checks if this PropertySet supports a property of the given name.

Specified by:
supports in interface PropertySet
Overrides:
supports in class BasePropertySet

remove

public Object remove(Object key)
Deprecated. 
Specified by:
remove in interface PropertySet
Overrides:
remove in class BasePropertySet

createEntrySet

protected void createEntrySet(Set<Map.Entry<String,Object>> core)
Deprecated. 
Overrides:
createEntrySet in class BasePropertySet

getPropertyMap

protected abstract PropertySet.PropertyMap getPropertyMap()
Deprecated. 
Description copied from class: BasePropertySet
Map representing the Fields and Methods annotated with PropertySet.Property. Model of PropertySet class.

At the end of the derivation chain this method just needs to be implemented as:

 private static final PropertyMap model;
 static {
   model = parse(MyDerivedClass.class);
 }
 protected PropertyMap getPropertyMap() {
   return model;
 }
 

Specified by:
getPropertyMap in class BasePropertySet


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.