It supports some common information that can be set and retrieved for any of the introspection descriptors.
In addition it provides an extension mechanism so that arbitrary attribute/value pairs can be associated with a design feature.
146147148149150151152153154155
{ if (iter == null) return; while (iter.hasNext()) { FeatureDescriptor desc = iter.next(); descriptors.add(desc); } }
116117118119120121122123124125126
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) { if (base != null && base.getClass().isArray()) { FeatureDescriptor[] descs = new FeatureDescriptor[Array.getLength(base)]; for (int i = 0; i < descs.length; i++) { descs[i] = new FeatureDescriptor(); descs[i].setDisplayName("["+i+"]"); descs[i].setExpert(false); descs[i].setHidden(false); descs[i].setName(""+i); descs[i].setPreferred(true);