From 055edab9d632ccb01ab6df488434edf99088c5bb Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 09 Dec 2011 18:04:55 +0000
Subject: [PATCH] Fix OPENDJ-381: Implement LDIF diff and patch API support in the SDK

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AVA.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AVA.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AVA.java
index 20f27f6..3ae1e45 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AVA.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AVA.java
@@ -825,6 +825,21 @@
 
 
   /**
+   * Returns a single valued attribute having the same attribute type and value
+   * as this AVA.
+   *
+   * @return A single valued attribute having the same attribute type and value
+   *         as this AVA.
+   */
+  public Attribute toAttribute()
+  {
+    AttributeDescription ad = AttributeDescription.create(attributeType);
+    return new LinkedAttribute(ad, attributeValue);
+  }
+
+
+
+  /**
    * {@inheritDoc}
    */
   @Override

--
Gitblit v1.10.0