|
|||||||||||
| 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
| Field Summary | |
private Method |
getMethod
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
private static MethodCache |
methodCache
|
private static Object[] |
NULL_ARGS
|
private Object |
obj
|
private String |
propertyName
|
private Method |
setMethod
|
| Fields inherited from class org.globus.wsrf.impl.BaseResourceProperty |
metaData |
| Constructor Summary | |
|
ReflectionResourceProperty(QName name,
Object obj)
|
|
ReflectionResourceProperty(QName name,
String propertyName,
Object obj)
|
protected |
ReflectionResourceProperty(ResourcePropertyMetaData metaData)
Used by subclasses only. |
|
ReflectionResourceProperty(ResourcePropertyMetaData metaData,
Object obj)
|
|
ReflectionResourceProperty(ResourcePropertyMetaData metaData,
String propertyName,
Object obj)
|
| Method Summary | |
void |
add(Object value)
Adds a value. |
private void |
addArray(Object value)
|
private void |
addList(Object value)
|
private void |
addSimple(Object value)
|
void |
clear()
Removes all values. |
private void |
clearArray()
|
private void |
clearList()
|
private void |
clearSimple()
|
Object |
get(int index)
Retrieves a value at a specific index. |
private Object |
getArray(int index)
|
private Object |
getList(int index)
|
private Object |
getSimple(int index)
|
private Object |
getValueArray()
|
private List |
getValueList()
|
protected Object |
getValueSimple()
|
private RuntimeException |
handleException(Throwable e)
|
protected void |
initialize()
Must be called after object and propertyName have been set. |
protected boolean |
isArray(Class returnType)
|
boolean |
isEmpty()
Returns true if the resource property has any values. |
private boolean |
isEmptyArray()
|
private boolean |
isEmptyList()
|
private boolean |
isEmptySimple()
|
Iterator |
iterator()
Returns iterator over the values of this resource property. |
private Iterator |
iteratorArray()
|
private Iterator |
iteratorList()
|
private Iterator |
iteratorSimple()
|
boolean |
remove(Object value)
Removes a specific value. |
private boolean |
removeArray(Object value)
|
private boolean |
removeList(Object value)
|
private boolean |
removeSimple(Object value)
|
void |
set(int index,
Object value)
Sets a value at a specific index. |
private void |
setArray(int index,
Object value)
|
private void |
setList(int index,
Object value)
|
protected void |
setObject(Object obj)
|
protected void |
setPropertyName(String propertyName)
|
private void |
setSimple(int index,
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 SOAPElement[] |
toSOAPElementArray()
|
private SOAPElement[] |
toSOAPElementList()
|
SOAPElement[] |
toSOAPElements()
Converts the resource property value into a SOAPElement array. |
private 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 Object[] NULL_ARGS
private static MethodCache methodCache
private String propertyName
private Object obj
private Method getMethod
private Method setMethod
| Constructor Detail |
protected ReflectionResourceProperty(ResourcePropertyMetaData metaData)
setObject() and setPropertyName()
and initialize() first.
public ReflectionResourceProperty(ResourcePropertyMetaData metaData,
String propertyName,
Object obj)
throws Exception
public ReflectionResourceProperty(QName name,
String propertyName,
Object obj)
throws Exception
public ReflectionResourceProperty(QName name,
Object obj)
throws Exception
public ReflectionResourceProperty(ResourcePropertyMetaData metaData,
Object obj)
throws Exception
| Method Detail |
protected void setPropertyName(String propertyName)
protected void setObject(Object obj)
protected void initialize()
throws Exception
Exceptionprivate RuntimeException handleException(Throwable e)
protected boolean isArray(Class returnType)
public int size()
ResourceProperty
public boolean isEmpty()
ResourceProperty
public Iterator iterator()
ResourceProperty
public Object get(int index)
ResourceProperty
index - the index of value to retrieve.
public void set(int index,
Object value)
ResourceProperty
index - the index to set value at.value - the new valuepublic void add(Object value)
ResourceProperty
value - the value to add.public boolean remove(Object value)
ResourceProperty
value - value to remove.
public void clear()
ResourceProperty
public SOAPElement[] toSOAPElements()
throws SerializationException
ResourceProperty
SerializationException - if conversion fails.
public org.w3c.dom.Element[] toElements()
throws SerializationException
ResourceProperty
SerializationException - if conversion fails.protected Object getValueSimple()
private int sizeSimple()
private boolean isEmptySimple()
private Iterator iteratorSimple()
private Object getSimple(int index)
private void setSimple(int index,
Object value)
private void clearSimple()
private void addSimple(Object value)
private boolean removeSimple(Object value)
private SOAPElement[] toSOAPElementSimple()
throws SerializationException
SerializationException
private org.w3c.dom.Element[] toElementSimple()
throws SerializationException
SerializationExceptionprivate Object getValueArray()
private int sizeArray()
private boolean isEmptyArray()
private Iterator iteratorArray()
private Object getArray(int index)
private void setArray(int index,
Object value)
private void clearArray()
private void addArray(Object value)
private boolean removeArray(Object value)
private SOAPElement[] toSOAPElementArray()
throws SerializationException
SerializationException
private org.w3c.dom.Element[] toElementArray()
throws SerializationException
SerializationExceptionprivate List getValueList()
private int sizeList()
private boolean isEmptyList()
private Iterator iteratorList()
private Object getList(int index)
private void setList(int index,
Object value)
private void clearList()
private void addList(Object value)
private boolean removeList(Object value)
private 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 | ||||||||||