You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/02/04 04:41:43 UTC
cvs commit: ws-axis/java/src/org/apache/axis/utils BeanPropertyDescriptor.java
dims 2005/02/03 19:41:43
Modified: java/src/org/apache/axis/utils BeanPropertyDescriptor.java
Log:
Adding additional methods (ser/de-ser changes will follow tomorrow)
Revision Changes Path
1.20 +24 -3 ws-axis/java/src/org/apache/axis/utils/BeanPropertyDescriptor.java
Index: BeanPropertyDescriptor.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/utils/BeanPropertyDescriptor.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- BeanPropertyDescriptor.java 6 Dec 2004 06:23:00 -0000 1.19
+++ BeanPropertyDescriptor.java 4 Feb 2005 03:41:43 -0000 1.20
@@ -87,15 +87,35 @@
public boolean isWriteable() {
return (myPD.getWriteMethod() != null);
}
- /**
- * Query if property is indexed.
- * @return true if indexed methods exist
+
+ /**
+ * Query if property is indexed
+ *
+ * @return true if indexed methods exist
*/
public boolean isIndexed() {
return (myPD instanceof IndexedPropertyDescriptor);
}
/**
+ * Query if property is indexed or if it' an array.
+ *
+ * @return true if indexed methods exist or if it's an array
+ */
+ public boolean isIndexedOrArray() {
+ return (isIndexed() || isArray());
+ }
+
+ /**
+ * Query if property is an array (excluded byte[]).
+ * @return true if it's an array (excluded byte[])
+ */
+ public boolean isArray() {
+ return ((myPD.getPropertyType() != null) && myPD.getPropertyType()
+ .isArray());
+ }
+
+ /**
* Get the property value
* @param obj is the object
* @return the entire propery value
@@ -159,6 +179,7 @@
new Object[] {
new Integer(i), newValue});
} else {
+ growArrayToSize(obj, myPD.getPropertyType().getComponentType(), i);
Array.set(get(obj), i, newValue);
}
}