From e3b8d5e3dbf22f89d86c11def28c466ab45909e3 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 15 May 2012 16:14:54 +0000
Subject: [PATCH] Fix OPENDJ-497: Add support for user defined parsing: AttributeParser.as() and AttributeParser.asSetOf()

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Function.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/Function.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Function.java
similarity index 84%
rename from opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/Function.java
rename to opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Function.java
index 363b984..fc30ceb 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/Function.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Function.java
@@ -22,13 +22,18 @@
  *
  *
  *      Copyright 2009 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 
-package com.forgerock.opendj.util;
+package org.forgerock.opendj.ldap;
 
 /**
  * Functions transform input values of type {@code M} to output values of type
  * {@code N}.
+ * <p>
+ * A {@code Function} can be passed to an {@link AttributeParser} in order to
+ * facilitate parsing of attributes. Common implementations can be found in the
+ * {@link Functions} class.
  *
  * @param <M>
  *            The type of input values transformed by this function.
@@ -38,6 +43,8 @@
  *            The type of the additional parameter to this function's
  *            {@code apply} method. Use {@link java.lang.Void} for functions
  *            that do not need an additional parameter.
+ * @see Functions
+ * @see AttributeParser
  */
 public interface Function<M, N, P> {
     /**

--
Gitblit v1.10.0