From d03839909ce214be705a1abfa9a7cec9bc293e07 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 04 Dec 2009 17:04:27 +0000
Subject: [PATCH] Remove API references to com.sun.opends.* classes from public API (except I18 related classes). Remove ordinals from messages as they are not needed in SDK. Make some exception constructors package private.

---
 opendj-sdk/sdk/src/org/opends/sdk/Attribute.java |   53 -----------------------------------------------------
 1 files changed, 0 insertions(+), 53 deletions(-)

diff --git a/opendj-sdk/sdk/src/org/opends/sdk/Attribute.java b/opendj-sdk/sdk/src/org/opends/sdk/Attribute.java
index df27016..b070f70 100644
--- a/opendj-sdk/sdk/src/org/opends/sdk/Attribute.java
+++ b/opendj-sdk/sdk/src/org/opends/sdk/Attribute.java
@@ -34,8 +34,6 @@
 import java.util.NoSuchElementException;
 import java.util.Set;
 
-import com.sun.opends.sdk.util.Function;
-
 
 
 /**
@@ -240,57 +238,6 @@
 
 
   /**
-   * Returns the first attribute value in this attribute converted to a
-   * object of type {@code T} using the function {@code type}. Any
-   * run-time exceptions thrown during the conversion will be passed
-   * back to the caller (e.g. {@code IllegalArgumentException}).
-   *
-   * @param <T>
-   *          The type of object to decode the first value as.
-   * @param type
-   *          The function to use for decoding the first attribute value
-   *          as a type {@code T}.
-   * @return The first attribute value in this attribute.
-   * @throws NoSuchElementException
-   *           If this attribute is empty.
-   * @throws NullPointerException
-   *           If {@code type} was {@code null}.
-   */
-  <T> T firstValueAsObject(Function<? super ByteString, T, Void> type)
-      throws NoSuchElementException;
-
-
-
-  /**
-   * Returns the first attribute value in this attribute converted to a
-   * object of type {@code T} using the function {@code type} and
-   * passing parameter {@code p}. Any run-time exceptions thrown during
-   * the conversion will be passed back to the caller (e.g. {@code
-   * IllegalArgumentException}).
-   *
-   * @param <T>
-   *          The type of object to decode the first value as.
-   * @param <P>
-   *          The type of the additional parameter to {@code type}'s
-   *          {@code apply} method. Use {@link java.lang.Void} for
-   *          functions that do not need an additional parameter.
-   * @param type
-   *          The function to use for decoding the first attribute value
-   *          as a type {@code T}.
-   * @param p
-   *          The parameter to pass to {@code type}.
-   * @return The first attribute value in this attribute.
-   * @throws NoSuchElementException
-   *           If this attribute is empty.
-   * @throws NullPointerException
-   *           If {@code type} was {@code null}.
-   */
-  <T, P> T firstValueAsObject(Function<? super ByteString, T, P> type,
-      P p) throws NoSuchElementException;
-
-
-
-  /**
    * Returns the first attribute value in this attribute decoded as a
    * UTF-8 string.
    *

--
Gitblit v1.10.0