From 64afb3e53f74b2ec78cacb377858cb092e3a4e9b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 16 Aug 2007 00:36:48 +0000
Subject: [PATCH] Update package-info.java files to include the @PublicAPI annotation to indicate whether any or all of the classes in that package are intended to be part of the public API.  Further, mark all classes that we intend to be part of the public API with the @PublicAPI annotation to indicate the ways in which they may be used.  Note that the use of these annotations and the ultimate determination as to what is in our public API and the ways in which those elements may be used still needs to be carefully reviewed before the 1.0 release.

---
 opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java |   36 +++++++++++++++++++-----------------
 1 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java b/opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java
index d0626e0..f012ec5 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java
@@ -47,6 +47,11 @@
  * @param  <T>  The type of configuration handled by this attribute
  *              syntax.
  */
+@org.opends.server.types.PublicAPI(
+     stability=org.opends.server.types.StabilityLevel.VOLATILE,
+     mayInstantiate=false,
+     mayExtend=true,
+     mayInvoke=false)
 public abstract class AttributeSyntax<T extends AttributeSyntaxCfg>
 {
   /**
@@ -145,9 +150,8 @@
    * for attributes with this syntax.
    *
    * @return  The default equality matching rule that will be used for
-   *          attributes with this syntax, or <CODE>null</CODE> if
-   *          equality matches will not be allowed for this type by
-   *          default.
+   *          attributes with this syntax, or {@code null} if equality
+   *          matches will not be allowed for this type by default.
    */
   public abstract EqualityMatchingRule getEqualityMatchingRule();
 
@@ -158,9 +162,8 @@
    * for attributes with this syntax.
    *
    * @return  The default ordering matching rule that will be used for
-   *          attributes with this syntax, or <CODE>null</CODE> if
-   *          ordering matches will not be allowed for this type by
-   *          default.
+   *          attributes with this syntax, or {@code null} if ordering
+   *          matches will not be allowed for this type by default.
    */
   public abstract OrderingMatchingRule getOrderingMatchingRule();
 
@@ -171,7 +174,7 @@
    * for attributes with this syntax.
    *
    * @return  The default substring matching rule that will be used
-   *          for attributes with this syntax, or <CODE>null</CODE> if
+   *          for attributes with this syntax, or {@code null} if
    *          substring matches will not be allowed for this type by
    *          default.
    */
@@ -184,7 +187,7 @@
    * for attributes with this syntax.
    *
    * @return  The default approximate matching rule that will be used
-   *          for attributes with this syntax, or <CODE>null</CODE> if
+   *          for attributes with this syntax, or {@code null} if
    *          approximate matches will not be allowed for this type by
    *          default.
    */
@@ -203,8 +206,8 @@
    * @param  invalidReason  The buffer to which the invalid reason
    *                        should be appended.
    *
-   * @return  <CODE>true</CODE> if the provided value is acceptable
-   *          for use with this syntax, or <CODE>false</CODE> if not.
+   * @return  {@code true} if the provided value is acceptable for use
+   *          with this syntax, or {@code false} if not.
    */
   public abstract boolean valueIsAcceptable(ByteString value,
                                MessageBuilder invalidReason);
@@ -217,7 +220,7 @@
    *
    * @return  The hash code for this attribute syntax.
    */
-  public int hashCode()
+  public final int hashCode()
   {
     int hashCode = 0;
 
@@ -241,11 +244,10 @@
    *
    * @param  o  The object for which to make the determination.
    *
-   * @return  <CODE>true</CODE> if the provided object is equal to
-   *          this attribute syntax, or <CODE>false</CODE> if it is
-   *          not.
+   * @return  {@code true} if the provided object is equal to this
+   *          attribute syntax, or {@code false} if it is not.
    */
-  public boolean equals(Object o)
+  public final boolean equals(Object o)
   {
     if (o == null)
     {
@@ -274,7 +276,7 @@
    * @return  A string representation of this attribute syntax in the
    *          format defined in RFC 2252.
    */
-  public String toString()
+  public final String toString()
   {
     StringBuilder buffer = new StringBuilder();
     toString(buffer);
@@ -290,7 +292,7 @@
    * @param  buffer  The buffer to which the information should be
    *                 appended.
    */
-  public void toString(StringBuilder buffer)
+  public final void toString(StringBuilder buffer)
   {
     buffer.append("( ");
     buffer.append(getOID());

--
Gitblit v1.10.0