public PropertyDescriptor getDescriptor() { return Types.findDescriptor(parentType, name); }
protected AttributeDescriptor attributeDescriptor(Name name) { PropertyDescriptor descriptor = Types.findDescriptor((ComplexType) type, name); if (descriptor == null) { String msg = "Could not locate attribute: " + name + " in type: " + type.getName(); throw new IllegalArgumentException(msg); } if (!(descriptor instanceof AttributeDescriptor)) { String msg = name + " references a non attribute"; throw new IllegalArgumentException(msg); } return (AttributeDescriptor) descriptor; }
/** Locates the AttributeDescriptor corresponding to the specified element name */ public static AttributeDescriptor getDescriptor(String elementName) { return (AttributeDescriptor) Types.findDescriptor(RECORD_TYPE, elementName); }
public PropertyDescriptor getDescriptor() { return Types.findDescriptor(parentType, name); }
(AttributeDescriptor) Types.findDescriptor(type, path[index]);
PropertyDescriptor descriptor = Types.findDescriptor(type, entry.getKey());