Hi, On 11/22/06, Julian Reschke <[EMAIL PROTECTED]> wrote:
No, the point is that in JSR-170 it is possible that for a given node type N, the NodeType interface will only return residual property definitions (because the set of property definitions on this node type may be very large), while Property.getPropertyDefinition() will return a non-residual definition (because in this case, the property name is known in advance, so the size problem above doesn't matter).
Are you sure this is OK? At least it breaks the following symmetry: PropertyDefinition definition = property.getDefinition(); NodeType type = definition.getDeclaringNodeType(); assert Arrays.asList(type.getDeclaredPropertyDefinitions()).contains(definition); I would return the residual node definition from Property.getDefinition() unless the underlying more specific definition has been explicitly exposed through the NodeType API. BR, Jukka Zitting
