/** * Returns a list where the elements are type GAttributeInfo */ public List getPersistentAttributes() { List attrs = new ArrayList(); for (Iterator i = attributes.iterator(); i.hasNext();) { GAttributeInfo info = (GAttributeInfo) i.next(); if (info.isPersistent()) { attrs.add(info); } } return attrs; }
public void setManageableAttributes(String[] manageableAttributes) { for (int i = 0; i < manageableAttributes.length; i++) { String attributeName = manageableAttributes[i]; GAttributeInfo attribute = (GAttributeInfo) attributes.get(attributeName); if (attribute != null) { attributes.put(attributeName, new GAttributeInfo(attributeName, attribute.getType(), attribute.isPersistent(), true, attribute.getGetterName(), attribute.getSetterName())); } } }
map.put("type", attribInfo.getType()); map.put("manageable", String.valueOf(attribInfo.isManageable())); map.put("persistent", String.valueOf(attribInfo.isPersistent())); map.put("readable", String.valueOf(attribInfo.isReadable())); map.put("writable", String.valueOf(attribInfo.isWritable()));
new GAttributeInfo(attributeName, attributeType, attribute.isPersistent() || persistentNames.contains(attributeName), attribute.isManageable() || manageableNames.contains(attributeName), method.getName(), new GAttributeInfo(attributeName, attributeType, attribute.isPersistent() || persistentNames.contains(attributeName), attribute.isManageable() || manageableNames.contains(attributeName), attribute.getGetterName(),
throw new IllegalArgumentException("null param(s) supplied"); if (!attributeInfo.isReadable() && !attributeInfo.isWritable() && !attributeInfo.isPersistent() && !isConstructorArg) throw new InvalidConfigurationException("Could not load attribute class: " + attributeInfo.getType(), e); this.persistent = attributeInfo.isPersistent(); this.manageable = attributeInfo.isManageable();