/** * Check if the value is stored into an instance of the given * AttributeType, or one of its ascendant. * * For instance, if the Value is associated with a CommonName, * checking for Name will match. * * @param attributeType The AttributeType we are looking at * @return <code>true</code> if the value is associated with the given * attributeType or one of its ascendant */ public boolean instanceOf( AttributeType attributeType ) throws LdapException { if ( ( attributeType != null ) && this.attributeType.equals( attributeType ) ) { if ( this.attributeType.equals( attributeType ) ) { return true; } return this.attributeType.isDescendantOf( attributeType ); } return false; }