/** * Parse a NameComponent : <br> * <p> * <name-component> ::= <attributeType> <spaces> '=' * <spaces> <attributeValue> <nameComponents> * </p> * * @param schemaManager The SchemaManager * @param dn The String to parse * @param rdn The Rdn to fill. Beware that if the Rdn is not empty, the new * AttributeTypeAndValue will be added. * @throws LdapInvalidDnException If the NameComponent is invalid */ private static void parse( SchemaManager schemaManager, String dn, Rdn rdn ) throws LdapInvalidDnException { try { FastDnParser.parseRdn( schemaManager, dn, rdn ); } catch ( TooComplexDnException e ) { rdn.clear(); new ComplexDnParser().parseRdn( schemaManager, dn, rdn ); } }
/** * Parse a NameComponent : <br> * <p> * <name-component> ::= <attributeType> <spaces> '=' * <spaces> <attributeValue> <nameComponents> * </p> * * @param schemaManager The SchemaManager * @param dn The String to parse * @param rdn The Rdn to fill. Beware that if the Rdn is not empty, the new * AttributeTypeAndValue will be added. * @throws LdapInvalidDnException If the NameComponent is invalid */ private static void parse( SchemaManager schemaManager, String dn, Rdn rdn ) throws LdapInvalidDnException { try { FastDnParser.parseRdn( schemaManager, dn, rdn ); } catch ( TooComplexDnException e ) { rdn.clear(); new ComplexDnParser().parseRdn( schemaManager, dn, rdn ); } }
/** * Parse a NameComponent : <br> * <p> * <name-component> ::= <attributeType> <spaces> '=' * <spaces> <attributeValue> <nameComponents> * </p> * * @param schemaManager The SchemaManager * @param dn The String to parse * @param rdn The Rdn to fill. Beware that if the Rdn is not empty, the new * AttributeTypeAndValue will be added. * @throws LdapInvalidDnException If the NameComponent is invalid */ private static void parse( SchemaManager schemaManager, String dn, Rdn rdn ) throws LdapInvalidDnException { try { FastDnParser.parseRdn( schemaManager, dn, rdn ); } catch ( TooComplexDnException e ) { rdn.clear(); new ComplexDnParser().parseRdn( schemaManager, dn, rdn ); } }