Ejemplo n.º 1
0
 @Override
 public Class<?> getIndexedPropertyType() {
   if (this.indexedPropertyType == null) {
     try {
       this.indexedPropertyType =
           PropertyDescriptorUtils.findIndexedPropertyType(
               getName(), getPropertyType(), this.indexedReadMethod, this.indexedWriteMethod);
     } catch (IntrospectionException ex) {
       // Ignore, as does IndexedPropertyDescriptor#getIndexedPropertyType
     }
   }
   return this.indexedPropertyType;
 }
Ejemplo n.º 2
0
    public SimpleIndexedPropertyDescriptor(
        String propertyName,
        Method readMethod,
        Method writeMethod,
        Method indexedReadMethod,
        Method indexedWriteMethod)
        throws IntrospectionException {

      super(propertyName, null, null, null, null);
      this.readMethod = readMethod;
      this.writeMethod = writeMethod;
      this.propertyType = PropertyDescriptorUtils.findPropertyType(readMethod, writeMethod);
      this.indexedReadMethod = indexedReadMethod;
      this.indexedWriteMethod = indexedWriteMethod;
      this.indexedPropertyType =
          PropertyDescriptorUtils.findIndexedPropertyType(
              propertyName, this.propertyType, indexedReadMethod, indexedWriteMethod);
    }