|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.wsrf.impl.BaseResourceProperty
org.globus.wsrf.impl.ReflectionResourceProperty
public class ReflectionResourceProperty
| Field Summary | |
|---|---|
private java.lang.reflect.Method |
getMethod
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
private static org.apache.axis.utils.cache.MethodCache |
methodCache
|
private static java.lang.Object[] |
NULL_ARGS
|
private java.lang.Object |
obj
|
private java.lang.String |
propertyName
|
private java.lang.reflect.Method |
setMethod
|
| Fields inherited from class org.globus.wsrf.impl.BaseResourceProperty |
|---|
metaData |
| Constructor Summary | |
|---|---|
|
ReflectionResourceProperty(javax.xml.namespace.QName name,
java.lang.Object obj)
Creates a ReflectionResourceProperty instance with a
specified QName and object. |
|
ReflectionResourceProperty(javax.xml.namespace.QName name,
java.lang.String propertyName,
java.lang.Object obj)
Creates a ReflectionResourceProperty instance with a
specified QName, property name and object. |
protected |
ReflectionResourceProperty(ResourcePropertyMetaData metaData)
Used by subclasses only. |
|
ReflectionResourceProperty(ResourcePropertyMetaData metaData,
java.lang.Object obj)
Creates a ReflectionResourceProperty instance with a
specified metadata and object. |
|
ReflectionResourceProperty(ResourcePropertyMetaData metaData,
java.lang.String propertyName,
java.lang.Object obj)
Creates a ReflectionResourceProperty instance with a
specified metadata, property name and object. |
| Method Summary | |
|---|---|
void |
add(java.lang.Object value)
Adds a value. |
private void |
addArray(java.lang.Object value)
|
private void |
addList(java.lang.Object value)
|
private void |
addSimple(java.lang.Object value)
|
void |
clear()
Removes all values. |
private void |
clearArray()
|
private void |
clearList()
|
private void |
clearSimple()
|
java.lang.Object |
get(int index)
Retrieves a value at a specific index. |
private java.lang.Object |
getArray(int index)
|
private java.lang.Object |
getList(int index)
|
private java.lang.Object |
getSimple(int index)
|
private java.lang.Object |
getValueArray()
|
private java.util.List |
getValueList()
|
protected java.lang.Object |
getValueSimple()
|
private java.lang.RuntimeException |
handleException(java.lang.Throwable e)
|
protected void |
initialize()
Must be called after object and propertyName have been set. |
protected boolean |
isArray(java.lang.Class returnType)
|
boolean |
isEmpty()
Returns true if the resource property has any values. |
private boolean |
isEmptyArray()
|
private boolean |
isEmptyList()
|
private boolean |
isEmptySimple()
|
java.util.Iterator |
iterator()
Returns iterator over the values of this resource property. |
private java.util.Iterator |
iteratorArray()
|
private java.util.Iterator |
iteratorList()
|
private java.util.Iterator |
iteratorSimple()
|
boolean |
remove(java.lang.Object value)
Removes a specific value. |
private boolean |
removeArray(java.lang.Object value)
|
private boolean |
removeList(java.lang.Object value)
|
private boolean |
removeSimple(java.lang.Object value)
|
void |
set(int index,
java.lang.Object value)
Sets a value at a specific index. |
private void |
setArray(int index,
java.lang.Object value)
|
private void |
setList(int index,
java.lang.Object value)
|
protected void |
setObject(java.lang.Object obj)
|
protected void |
setPropertyName(java.lang.String propertyName)
|
private void |
setSimple(int index,
java.lang.Object value)
|
int |
size()
Returns the number of values in the resource property. |
private int |
sizeArray()
|
private int |
sizeList()
|
private int |
sizeSimple()
|
private org.w3c.dom.Element[] |
toElementArray()
|
private org.w3c.dom.Element[] |
toElementList()
|
org.w3c.dom.Element[] |
toElements()
Converts the resource property value into a DOM Element array. |
private org.w3c.dom.Element[] |
toElementSimple()
|
private javax.xml.soap.SOAPElement[] |
toSOAPElementArray()
|
private javax.xml.soap.SOAPElement[] |
toSOAPElementList()
|
javax.xml.soap.SOAPElement[] |
toSOAPElements()
Converts the resource property value into a SOAPElement array. |
private javax.xml.soap.SOAPElement[] |
toSOAPElementSimple()
|
| Methods inherited from class org.globus.wsrf.impl.BaseResourceProperty |
|---|
convert, convertObject, convertPrimitive, getMetaData, setMetaData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
private static final java.lang.Object[] NULL_ARGS
private static org.apache.axis.utils.cache.MethodCache methodCache
private java.lang.String propertyName
private java.lang.Object obj
private java.lang.reflect.Method getMethod
private java.lang.reflect.Method setMethod
| Constructor Detail |
|---|
protected ReflectionResourceProperty(ResourcePropertyMetaData metaData)
setObject() and setPropertyName()
and initialize() first.
public ReflectionResourceProperty(ResourcePropertyMetaData metaData,
java.lang.String propertyName,
java.lang.Object obj)
throws ResourcePropertyException
ReflectionResourceProperty instance with a
specified metadata, property name and object.
ResourcePropertyException - if invalid metadata, property name or
object is passed or a getter function was not found, etc.ResourcePropertyMetaData
public ReflectionResourceProperty(javax.xml.namespace.QName name,
java.lang.String propertyName,
java.lang.Object obj)
throws ResourcePropertyException
ReflectionResourceProperty instance with a
specified QName, property name and object. The
ReflectionResourceProperty will be initialized with a
default SimpleResourcePropertyMetaData instance with
the specified QName name.
ResourcePropertyException - if invalid QName, property name or
object is passed or a getter function was not found, etc.SimpleResourcePropertyMetaData
public ReflectionResourceProperty(javax.xml.namespace.QName name,
java.lang.Object obj)
throws ResourcePropertyException
ReflectionResourceProperty instance with a
specified QName and object. The local part of the QName will be used
as the property name. The
ReflectionResourceProperty will be initialized with a
default SimpleResourcePropertyMetaData instance with
the specified QName name.
ResourcePropertyException - if invalid QName or object
is passed or a getter function was not found, etc.SimpleResourcePropertyMetaData
public ReflectionResourceProperty(ResourcePropertyMetaData metaData,
java.lang.Object obj)
throws ResourcePropertyException
ReflectionResourceProperty instance with a
specified metadata and object. The metadata's name (the local part
of the QName) will be used as the property name.
ResourcePropertyException - if invalid metadata or object
is passed or a getter function was not found, etc.ResourcePropertyMetaData| Method Detail |
|---|
protected void setPropertyName(java.lang.String propertyName)
protected void setObject(java.lang.Object obj)
protected void initialize()
throws ResourcePropertyException
ResourcePropertyException - if property was incorrectly
initialized. For example if invalid object was set, or
a getter function was not found, etc.private java.lang.RuntimeException handleException(java.lang.Throwable e)
protected boolean isArray(java.lang.Class returnType)
public int size()
ResourceProperty
public boolean isEmpty()
ResourceProperty
public java.util.Iterator iterator()
ResourceProperty
public java.lang.Object get(int index)
ResourceProperty
index - the index of value to retrieve.
public void set(int index,
java.lang.Object value)
ResourceProperty
index - the index to set value at.value - the new valuepublic void add(java.lang.Object value)
ResourceProperty
value - the value to add.public boolean remove(java.lang.Object value)
ResourceProperty
value - value to remove.
public void clear()
ResourceProperty
public javax.xml.soap.SOAPElement[] toSOAPElements()
throws SerializationException
ResourceProperty
SerializationException - if conversion fails.
public org.w3c.dom.Element[] toElements()
throws SerializationException
ResourceProperty
SerializationException - if conversion fails.protected java.lang.Object getValueSimple()
private int sizeSimple()
private boolean isEmptySimple()
private java.util.Iterator iteratorSimple()
private java.lang.Object getSimple(int index)
private void setSimple(int index,
java.lang.Object value)
private void clearSimple()
private void addSimple(java.lang.Object value)
private boolean removeSimple(java.lang.Object value)
private javax.xml.soap.SOAPElement[] toSOAPElementSimple()
throws SerializationException
SerializationException
private org.w3c.dom.Element[] toElementSimple()
throws SerializationException
SerializationExceptionprivate java.lang.Object getValueArray()
private int sizeArray()
private boolean isEmptyArray()
private java.util.Iterator iteratorArray()
private java.lang.Object getArray(int index)
private void setArray(int index,
java.lang.Object value)
private void clearArray()
private void addArray(java.lang.Object value)
private boolean removeArray(java.lang.Object value)
private javax.xml.soap.SOAPElement[] toSOAPElementArray()
throws SerializationException
SerializationException
private org.w3c.dom.Element[] toElementArray()
throws SerializationException
SerializationExceptionprivate java.util.List getValueList()
private int sizeList()
private boolean isEmptyList()
private java.util.Iterator iteratorList()
private java.lang.Object getList(int index)
private void setList(int index,
java.lang.Object value)
private void clearList()
private void addList(java.lang.Object value)
private boolean removeList(java.lang.Object value)
private javax.xml.soap.SOAPElement[] toSOAPElementList()
throws SerializationException
SerializationException
private org.w3c.dom.Element[] toElementList()
throws SerializationException
SerializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||