public abstract class PropertySet
extends org.jvnet.ws.message.BasePropertySet
Modifier and Type | Class and Description |
---|---|
protected static class |
PropertySet.PropertyMap
Deprecated.
|
Constructor and Description |
---|
PropertySet()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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
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. |
protected static PropertySet.PropertyMap parse(Class clazz)
public Object get(Object key)
get
in interface org.jvnet.ws.message.PropertySet
get
in class org.jvnet.ws.message.BasePropertySet
key
- This field is typed as Object
to follow the Map.get(Object)
convention, but if anything but String
is passed, this method
just returns null.public Object put(String key, Object value)
put
in interface org.jvnet.ws.message.PropertySet
put
in class org.jvnet.ws.message.BasePropertySet
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.Property
public boolean supports(Object key)
org.jvnet.ws.message.BasePropertySet
PropertySet
supports a property of the given name.supports
in interface org.jvnet.ws.message.PropertySet
supports
in class org.jvnet.ws.message.BasePropertySet
public Object remove(Object key)
remove
in interface org.jvnet.ws.message.PropertySet
remove
in class org.jvnet.ws.message.BasePropertySet
protected void createEntrySet(Set<Map.Entry<String,Object>> core)
createEntrySet
in class org.jvnet.ws.message.BasePropertySet
protected abstract PropertySet.PropertyMap getPropertyMap()
org.jvnet.ws.message.BasePropertySet
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; }
getPropertyMap
in class org.jvnet.ws.message.BasePropertySet
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.