jdk/src/share/classes/javax/naming/ldap/LdapName.java
changeset 18156 edb590d448c5
parent 10324 e28265130e4f
child 21278 ef8a3a2a72f2
equal deleted inserted replaced
18155:889970e5b728 18156:edb590d448c5
   441      * @return  The updated name (not a new instance).
   441      * @return  The updated name (not a new instance).
   442      *
   442      *
   443      * @throws  InvalidNameException if <tt>suffix</tt> is not a valid LDAP
   443      * @throws  InvalidNameException if <tt>suffix</tt> is not a valid LDAP
   444      *          name, or if the addition of the components would violate the
   444      *          name, or if the addition of the components would violate the
   445      *          syntax rules of this LDAP name.
   445      *          syntax rules of this LDAP name.
   446      * @throws  IndexOutOfBoundsException.
   446      * @throws  IndexOutOfBoundsException
   447      *          If posn is outside the specified range.
   447      *          If posn is outside the specified range.
   448      */
   448      */
   449     public Name addAll(int posn, Name suffix)
   449     public Name addAll(int posn, Name suffix)
   450         throws InvalidNameException {
   450         throws InvalidNameException {
   451         unparsed = null;        // no longer valid
   451         unparsed = null;        // no longer valid
   472      * @param suffixRdns        The non-null suffix <tt>Rdn</tt>s to add.
   472      * @param suffixRdns        The non-null suffix <tt>Rdn</tt>s to add.
   473      * @param posn              The index at which to add the suffix RDNs.
   473      * @param posn              The index at which to add the suffix RDNs.
   474      *                          Must be in the range [0,size()].
   474      *                          Must be in the range [0,size()].
   475      *
   475      *
   476      * @return  The updated name (not a new instance).
   476      * @return  The updated name (not a new instance).
   477      * @throws  IndexOutOfBoundsException.
   477      * @throws  IndexOutOfBoundsException
   478      *          If posn is outside the specified range.
   478      *          If posn is outside the specified range.
   479      */
   479      */
   480     public Name addAll(int posn, List<Rdn> suffixRdns) {
   480     public Name addAll(int posn, List<Rdn> suffixRdns) {
   481         unparsed = null;
   481         unparsed = null;
   482         for (int i = 0; i < suffixRdns.size(); i++) {
   482         for (int i = 0; i < suffixRdns.size(); i++) {
   525      * @param  comp     The non-null component to add.
   525      * @param  comp     The non-null component to add.
   526      * @param  posn     The index at which to add the new component.
   526      * @param  posn     The index at which to add the new component.
   527      *                  Must be in the range [0,size()].
   527      *                  Must be in the range [0,size()].
   528      * @return          The updated LdapName, not a new instance.
   528      * @return          The updated LdapName, not a new instance.
   529      *                  Cannot be null.
   529      *                  Cannot be null.
   530      * @exception       IndexOutOfBoundsException.
   530      * @exception       IndexOutOfBoundsException
   531      *                  If posn is outside the specified range.
   531      *                  If posn is outside the specified range.
   532      * @exception       InvalidNameException If adding comp at the
   532      * @exception       InvalidNameException If adding comp at the
   533      *                  specified position would violate the name's syntax.
   533      *                  specified position would violate the name's syntax.
   534      */
   534      */
   535     public Name add(int posn, String comp) throws InvalidNameException {
   535     public Name add(int posn, String comp) throws InvalidNameException {