| java.lang.Object com.sun.xml.ws.api.PropertySet
All known Subclasses: com.sun.xml.ws.transport.http.WSHTTPConnection, com.sun.xml.ws.model.wsdl.WSDLProperties, com.sun.xml.ws.transport.http.client.HttpResponseProperties, com.sun.xml.ws.api.DistributedPropertySet, com.sun.xml.ws.client.RequestContext, com.sun.xml.ws.addressing.WsaPropertyBag,
PropertySet | abstract public class PropertySet (Code) | | A set of "properties" that can be accessed via strongly-typed fields
as well as reflexibly through the property name.
author: Kohsuke Kawaguchi |
Inner Class :public @interface Property | |
Inner Class :final protected static class PropertyMap extends HashMap | |
Inner Class :protected interface Accessor | |
Inner Class :final static class FieldAccessor implements Accessor | |
Inner Class :final static class MethodAccessor implements Accessor | |
Constructor Summary | |
protected | PropertySet() Creates a new instance of TypedMap. |
PropertySet | protected PropertySet()(Code) | | Creates a new instance of TypedMap.
|
containsKey | final public boolean containsKey(Object key)(Code) | | |
createMapView | final public Map<String, Object> createMapView()(Code) | | Creates a
Map view of this
PropertySet .
This map is partially live, in the sense that values you set to it
will be reflected to
PropertySet .
However, this map may not pick up changes made
to
PropertySet after the view is created.
always non-null valid instance. |
get | public Object get(Object key)(Code) | | Gets the name of the property.
Parameters: key - This field is typed as Object to follow the Map.get(Object)convention, but if anything but String is passed, this methodjust returns null. |
getPropertyMap | abstract protected PropertyMap getPropertyMap()(Code) | | Map representing the Fields and Methods annotated with
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;
}
|
parse | protected static PropertyMap parse(Class clazz)(Code) | | This method parses a class for fields and methods with
Property .
|
put | public Object put(String key, Object value)(Code) | | 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.
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)(Code) | | Checks if this
PropertySet supports a property of the given name.
|
|
|