directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 56089 - in incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common: message schema
Date Sun, 31 Oct 2004 00:14:22 GMT
Author: akarasulu
Date: Sat Oct 30 17:14:22 2004
New Revision: 56089

Modified:
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/ResultCodeEnum.java
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/AbstractSyntax.java
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/Syntax.java
Log:
corrected typo in isHumanReadible() and added value constants to enumeration

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/ResultCodeEnum.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/ResultCodeEnum.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/ResultCodeEnum.java
Sat Oct 30 17:14:22 2004
@@ -164,6 +164,73 @@
  */
 public class ResultCodeEnum extends ValuedEnum
 {
+    public static final int SUCCESS_VAL = 0;
+    public static final int OPERATIONSERROR_VAL = 1;
+    public static final int PROTOCOLERROR_VAL = 2;
+    public static final int TIMELIMITEXCEEDED_VAL = 3;
+    public static final int SIZELIMITEXCEEDED_VAL = 4;
+    public static final int COMPAREFALSE_VAL = 5;
+    public static final int COMPARETRUE_VAL = 6;
+    public static final int AUTHMETHODNOTSUPPORTED_VAL = 7;
+    public static final int STRONGAUTHREQUIRED_VAL = 8;
+
+    // -- 9 reserved --
+
+    public static final int REFERRAL_VAL = 10;
+    public static final int ADMINLIMITEXCEEDED_VAL = 11;
+    public static final int UNAVAILABLECRITICALEXTENSION_VAL = 12;
+    public static final int CONFIDENTIALITYREQUIRED_VAL = 13;
+    public static final int SASLBINDINPROGRESS_VAL = 14;
+
+    // -- 15 unused --
+
+    public static final int NOSUCHATTRIBUTE_VAL = 16;
+    public static final int UNDEFINEDATTRIBUTETYPE_VAL = 17;
+    public static final int INAPPROPRIATEMATCHING_VAL = 18;
+    public static final int CONSTRAINTVIOLATION_VAL = 19;
+    public static final int ATTRIBUTEORVALUEEXISTS_VAL = 20;
+    public static final int INVALIDATTRIBUTESYNTAX_VAL = 21;
+
+    // -- 22-31 unused --
+
+    public static final int NOSUCHOBJECT_VAL = 32;
+    public static final int ALIASPROBLEM_VAL = 33;
+    public static final int INVALIDDNSYNTAX_VAL = 34;
+
+    // -- 35 reserved for undefined isLeaf --
+
+    public static final int ALIASDEREFERENCINGPROBLEM_VAL = 36;
+
+    // -- 37-47 unused --
+
+    public static final int INAPPROPRIATEAUTHENTICATION_VAL = 48;
+    public static final int INVALIDCREDENTIALS_VAL = 49;
+    public static final int INSUFFICIENTACCESSRIGHTS_VAL = 50;
+    public static final int BUSY_VAL = 51;
+    public static final int UNAVAILABLE_VAL = 52;
+    public static final int UNWILLINGTOPERFORM_VAL = 53;
+    public static final int LOOPDETECT_VAL = 54;
+
+    // -- 55-63 unused --
+
+    public static final int NAMINGVIOLATION_VAL = 64;
+    public static final int NOTALLOWEDONNONLEAF_VAL = 66;
+    public static final int OBJECTCLASSVIOLATION_VAL = 65;
+    public static final int NOTALLOWEDONRDN_VAL = 67;
+    public static final int ENTRYALREADYEXISTS_VAL = 68;
+    public static final int OBJECTCLASSMODSPROHIBITED_VAL = 69;
+
+    // -- 70 reserved for CLDAP --
+
+    public static final int AFFECTSMULTIPLEDSAS_VAL = 71;
+
+    // -- 72-79 unused --
+
+    public static final int OTHER_VAL = 80;
+
+    // -- 81-90 reserved for APIs --
+
+
     // ------------------------------------------------------------------------
     // Public Static Constants: Enumeration values and names.
     // ------------------------------------------------------------------------
@@ -184,8 +251,8 @@
      * the LDAPResult which are not used to indicate an error. Applicable
      * operations: all except for Compare. Result code type: Non-Erroneous
      */
-    public static final ResultCodeEnum SUCCESS = new ResultCodeEnum( "SUCCESS",
-            0 ) ;
+    public static final ResultCodeEnum SUCCESS =
+            new ResultCodeEnum( "SUCCESS", SUCCESS_VAL ) ;
 
     /**
      * It is used to indicate that the result of a Compare operation is FALSE
@@ -194,7 +261,7 @@
      * Non-Erroneous
      */
     public static final ResultCodeEnum COMPAREFALSE = 
-        new ResultCodeEnum( "COMPAREFALSE", 5 ) ;
+        new ResultCodeEnum( "COMPAREFALSE", COMPAREFALSE_VAL ) ;
 
     /**
      * It is used to indicate that the result of a Compare operation is TRUE
@@ -203,7 +270,7 @@
      * Non-Erroneous
      */
     public static final ResultCodeEnum COMPARETRUE = 
-        new ResultCodeEnum( "COMPARETRUE", 6 ) ;
+        new ResultCodeEnum( "COMPARETRUE", COMPARETRUE_VAL ) ;
 
     /**
      * Rather than indicating an error, this result code is used to indicate
@@ -217,7 +284,7 @@
      * Non-Erroneous
      */
     public static final ResultCodeEnum REFERRAL = 
-        new ResultCodeEnum( "REFERRAL", 10 ) ;
+        new ResultCodeEnum( "REFERRAL", REFERRAL_VAL ) ;
 
     /**
      * This result code is not an error response from the server, but rather,
@@ -228,7 +295,7 @@
      * Non-Erroneous
      */
     public static final ResultCodeEnum SASLBINDINPROGRESS = 
-        new ResultCodeEnum( "SASLBINDINPROGRESS", 14 ) ;
+        new ResultCodeEnum( "SASLBINDINPROGRESS", SASLBINDINPROGRESS_VAL ) ;
 
     // ------------------------------------------------------------------------
     // Problem Specific Error Codes:
@@ -251,7 +318,7 @@
      * (Security)
      */
     public static final ResultCodeEnum AUTHMETHODNOTSUPPORTED = 
-        new ResultCodeEnum( "AUTHMETHODNOTSUPPORTED", 7 ) ;
+        new ResultCodeEnum( "AUTHMETHODNOTSUPPORTED", AUTHMETHODNOTSUPPORTED_VAL ) ;
 
     /**
      * This error may be returned on a bind request if the server only accepts
@@ -265,7 +332,7 @@
      * Specific (Security)
      */
     public static final ResultCodeEnum STRONGAUTHREQUIRED = 
-        new ResultCodeEnum( "STRONGAUTHREQUIRED", 8 ) ;
+        new ResultCodeEnum( "STRONGAUTHREQUIRED", STRONGAUTHREQUIRED_VAL ) ;
 
     /**
      * This error code may be returned if the session is not protected by a
@@ -278,7 +345,7 @@
      * operations: all. Result code type: Specific (Security)
      */
     public static final ResultCodeEnum CONFIDENTIALITYREQUIRED = 
-        new ResultCodeEnum( "CONFIDENTIALITYREQUIRED", 13 ) ;
+        new ResultCodeEnum( "CONFIDENTIALITYREQUIRED", CONFIDENTIALITYREQUIRED_VAL ) ;
 
     /**
      * An alias was encountered in a situation where it was not allowed or
@@ -291,7 +358,7 @@
      * Specific (Security)
      */
     public static final ResultCodeEnum ALIASDEREFERENCINGPROBLEM = 
-        new ResultCodeEnum( "ALIASDEREFERENCINGPROBLEM", 36 ) ;
+        new ResultCodeEnum( "ALIASDEREFERENCINGPROBLEM", ALIASDEREFERENCINGPROBLEM_VAL )
;
 
     /**
      * This error should be returned by the server when the client has tried to
@@ -304,7 +371,7 @@
      * type: Specific (Security)
      */
     public static final ResultCodeEnum INAPPROPRIATEAUTHENTICATION = 
-        new ResultCodeEnum( "INAPPROPRIATEAUTHENTICATION", 48 ) ;
+        new ResultCodeEnum( "INAPPROPRIATEAUTHENTICATION", INAPPROPRIATEAUTHENTICATION_VAL
) ;
 
     /**
      * This error code is returned if the DN or password used in a simple bind
@@ -317,7 +384,7 @@
      * type: Specific (Security)
      */
     public static final ResultCodeEnum INVALIDCREDENTIALS = 
-        new ResultCodeEnum( "INVALIDCREDENTIALS", 49 ) ;
+        new ResultCodeEnum( "INVALIDCREDENTIALS", INVALIDCREDENTIALS_VAL ) ;
 
     /**
      * The requestor does not have the right to carry out the requested
@@ -327,7 +394,7 @@
      * operations: all except for Bind. Result code type: Specific (Security)
      */
     public static final ResultCodeEnum INSUFFICIENTACCESSRIGHTS = 
-            new ResultCodeEnum( "INSUFFICIENTACCESSRIGHTS", 50 ) ;
+            new ResultCodeEnum( "INSUFFICIENTACCESSRIGHTS", INSUFFICIENTACCESSRIGHTS_VAL
) ;
 
     // ------------------------------------------------------------------------
     // Service Problem Specific Error Codes:
@@ -344,7 +411,7 @@
      * code type: Specific (Service)
      */
     public static final ResultCodeEnum OPERATIONSERROR = 
-        new ResultCodeEnum( "OPERATIONSERROR", 1 ) ;
+        new ResultCodeEnum( "OPERATIONSERROR", OPERATIONSERROR_VAL ) ;
 
     /**
      * A protocol error should be returned by the server when an invalid or
@@ -362,7 +429,7 @@
      * (Service)
      */
     public static final ResultCodeEnum PROTOCOLERROR = 
-        new ResultCodeEnum( "PROTOCOLERROR", 2 ) ;
+        new ResultCodeEnum( "PROTOCOLERROR", PROTOCOLERROR_VAL ) ;
 
     /**
      * This error should be returned when the time to perform an operation has
@@ -380,7 +447,7 @@
      * operations: all. Result code type: Specific (Service)
      */
     public static final ResultCodeEnum TIMELIMITEXCEEDED = 
-        new ResultCodeEnum( "TIMELIMITEXCEEDED", 3 ) ;
+        new ResultCodeEnum( "TIMELIMITEXCEEDED", TIMELIMITEXCEEDED_VAL ) ;
 
     /**
      * This error should be returned when the number of results generated by a
@@ -391,7 +458,7 @@
      * Applicable operations: Search. Result code type: Specific (Service)
      */
     public static final ResultCodeEnum SIZELIMITEXCEEDED = 
-        new ResultCodeEnum( "SIZELIMITEXCEEDED", 4 ) ;
+        new ResultCodeEnum( "SIZELIMITEXCEEDED", SIZELIMITEXCEEDED_VAL ) ;
 
     /**
      * The server has reached some limit set by an administrative authority,
@@ -402,7 +469,7 @@
      * Applicable operations: all. Result code type: Specific (Service)
      */
     public static final ResultCodeEnum ADMINLIMITEXCEEDED = 
-        new ResultCodeEnum( "ADMINLIMITEXCEEDED", 11 ) ;
+        new ResultCodeEnum( "ADMINLIMITEXCEEDED", ADMINLIMITEXCEEDED_VAL ) ;
 
     /**
      * The server was unable to satisfy the request because one or more
@@ -414,7 +481,7 @@
      * Result code type: Specific (Service)
      */
     public static final ResultCodeEnum UNAVAILABLECRITICALEXTENSION = 
-        new ResultCodeEnum( "UNAVAILABLECRITICALEXTENSION", 12 ) ;
+        new ResultCodeEnum( "UNAVAILABLECRITICALEXTENSION", UNAVAILABLECRITICALEXTENSION_VAL
) ;
 
     /**
      * This error code may be returned if the server is unable to process the
@@ -422,7 +489,7 @@
      * the request shortly the server will be able to process it then.
      * Applicable operations: all. Result code type: Specific (Service)
      */
-    public static final ResultCodeEnum BUSY = new ResultCodeEnum( "BUSY", 51 ) ;
+    public static final ResultCodeEnum BUSY = new ResultCodeEnum( "BUSY", BUSY_VAL ) ;
 
     /**
      * This error code is returned when the server is unavailable to process
@@ -431,7 +498,7 @@
      * Result code type: Specific (Service)
      */
     public static final ResultCodeEnum UNAVAILABLE = 
-        new ResultCodeEnum( "UNAVAILABLE", 52 ) ;
+        new ResultCodeEnum( "UNAVAILABLE", UNAVAILABLE_VAL ) ;
 
     /**
      * This error code should be returned by the server when a client request
@@ -449,7 +516,7 @@
      * (Service)
      */
     public static final ResultCodeEnum UNWILLINGTOPERFORM = 
-        new ResultCodeEnum( "UNWILLINGTOPERFORM", 53 ) ;
+        new ResultCodeEnum( "UNWILLINGTOPERFORM", UNWILLINGTOPERFORM_VAL ) ;
 
     /**
      * This error may be returned by the server if it detects an alias or
@@ -457,7 +524,7 @@
      * Applicable operations: all. Result code type: Specific (Service)
      */
     public static final ResultCodeEnum LOOPDETECT = 
-        new ResultCodeEnum( "LOOPDETECT", 54 ) ;
+        new ResultCodeEnum( "LOOPDETECT", LOOPDETECT_VAL ) ;
 
     // ------------------------------------------------------------------------
     // Attribute Problem Specific Error Codes:
@@ -472,7 +539,7 @@
      * Modify, Compare. Result code type: Specific (Attribute)
      */
     public static final ResultCodeEnum NOSUCHATTRIBUTE = 
-        new ResultCodeEnum( "NOSUCHATTRIBUTE", 16 ) ;
+        new ResultCodeEnum( "NOSUCHATTRIBUTE", NOSUCHATTRIBUTE_VAL ) ;
 
     /**
      * This error may be returned if the specified attribute is unrecognized by
@@ -485,7 +552,7 @@
      * operations: Modify, Add. Result code type: Specific (Attribute)
      */
     public static final ResultCodeEnum UNDEFINEDATTRIBUTETYPE = 
-        new ResultCodeEnum( "UNDEFINEDATTRIBUTETYPE", 17 ) ;
+        new ResultCodeEnum( "UNDEFINEDATTRIBUTETYPE", UNDEFINEDATTRIBUTETYPE_VAL ) ;
 
     /**
      * An attempt was made, e.g., in a filter, to use a matching rule not
@@ -493,7 +560,7 @@
      * Applicable operations: Search. Result code type: Specific (Attribute)
      */
     public static final ResultCodeEnum INAPPROPRIATEMATCHING = 
-        new ResultCodeEnum( "INAPPROPRIATEMATCHING", 18 ) ;
+        new ResultCodeEnum( "INAPPROPRIATEMATCHING", INAPPROPRIATEMATCHING_VAL ) ;
 
     /**
      * This error should be returned by the server if an attribute value
@@ -503,7 +570,7 @@
      * ModifyDN. Result code type: Specific (Attribute)
      */
     public static final ResultCodeEnum CONSTRAINTVIOLATION = 
-        new ResultCodeEnum( "CONSTRAINTVIOLATION", 19 ) ;
+        new ResultCodeEnum( "CONSTRAINTVIOLATION", CONSTRAINTVIOLATION_VAL ) ;
 
     /**
      * This error should be returned by the server if the value specified by
@@ -511,7 +578,7 @@
      * Modify, Add. Result code type: Specific (Attribute)
      */
     public static final ResultCodeEnum ATTRIBUTEORVALUEEXISTS = 
-        new ResultCodeEnum( "ATTRIBUTEORVALUEEXISTS", 20 ) ;
+        new ResultCodeEnum( "ATTRIBUTEORVALUEEXISTS", ATTRIBUTEORVALUEEXISTS_VAL ) ;
 
     /**
      * This error should be returned by the server if the attribute syntax for
@@ -520,7 +587,7 @@
      * code type: Specific (Attribute)
      */
     public static final ResultCodeEnum INVALIDATTRIBUTESYNTAX = 
-        new ResultCodeEnum( "INVALIDATTRIBUTESYNTAX", 21 ) ;
+        new ResultCodeEnum( "INVALIDATTRIBUTESYNTAX", INVALIDATTRIBUTESYNTAX_VAL ) ;
 
     // ------------------------------------------------------------------------
     // Name Problem Specific Error Codes:
@@ -552,14 +619,14 @@
      * (Name)
      */
     public static final ResultCodeEnum NOSUCHOBJECT = 
-        new ResultCodeEnum( "NOSUCHOBJECT", 32 ) ;
+        new ResultCodeEnum( "NOSUCHOBJECT", NOSUCHOBJECT_VAL ) ;
 
     /**
      * An alias has been dereferenced which names no object [X511, Section
      * 12.5] Applicable operations: Search. Result code type: Specific (Name)
      */
     public static final ResultCodeEnum ALIASPROBLEM = 
-        new ResultCodeEnum( "ALIASPROBLEM", 33 ) ;
+        new ResultCodeEnum( "ALIASPROBLEM", ALIASPROBLEM_VAL ) ;
 
     /**
      * This error should be returned by the server if the DN syntax is
@@ -569,7 +636,7 @@
      * Applicable operations: all. Result code type: Specific (Name)
      */
     public static final ResultCodeEnum INVALIDDNSYNTAX = 
-        new ResultCodeEnum( "INVALIDDNSYNTAX", 34 ) ;
+        new ResultCodeEnum( "INVALIDDNSYNTAX", INVALIDDNSYNTAX_VAL ) ;
 
     // ------------------------------------------------------------------------
     // Update Problem Specific Error Codes:
@@ -588,7 +655,7 @@
      * type: Specific (Update)
      */
     public static final ResultCodeEnum NAMINGVIOLATION = 
-        new ResultCodeEnum( "NAMINGVIOLATION", 64 ) ;
+        new ResultCodeEnum( "NAMINGVIOLATION", NAMINGVIOLATION_VAL ) ;
 
     /**
      * This error should be returned if the operation requested by the user
@@ -603,7 +670,7 @@
      * ModifyDN. Result code type: Specific (Update)
      */
     public static final ResultCodeEnum OBJECTCLASSVIOLATION = 
-        new ResultCodeEnum( "OBJECTCLASSVIOLATION", 65 ) ;
+        new ResultCodeEnum( "OBJECTCLASSVIOLATION", OBJECTCLASSVIOLATION_VAL ) ;
 
     /**
      * This error should be returned if the client attempts to perform an
@@ -616,7 +683,7 @@
      * Result code type: Specific (Update)
      */
     public static final ResultCodeEnum NOTALLOWEDONNONLEAF = 
-        new ResultCodeEnum( "NOTALLOWEDONNONLEAF", 66 ) ;
+        new ResultCodeEnum( "NOTALLOWEDONNONLEAF", NOTALLOWEDONNONLEAF_VAL ) ;
 
     /**
      * The attempted operation would affect the RDN (e.g., removal of an
@@ -627,7 +694,7 @@
      * 4.6] Applicable operations: Modify. Result code type: Specific (Update)
      */
     public static final ResultCodeEnum NOTALLOWEDONRDN = 
-        new ResultCodeEnum( "NOTALLOWEDONRDN", 67 ) ;
+        new ResultCodeEnum( "NOTALLOWEDONRDN", NOTALLOWEDONRDN_VAL ) ;
 
     /**
      * This error should be returned by the server when the client attempts to
@@ -636,7 +703,7 @@
      * Add, ModifyDN. Result code type: Specific (Update)
      */
     public static final ResultCodeEnum ENTRYALREADYEXISTS = 
-        new ResultCodeEnum( "ENTRYALREADYEXISTS", 68 ) ;
+        new ResultCodeEnum( "ENTRYALREADYEXISTS", ENTRYALREADYEXISTS_VAL ) ;
 
     /**
      * An operation attempted to modify an object class that should not be
@@ -647,7 +714,7 @@
      * operations: Modify. Result code type: Specific (Update)
      */
     public static final ResultCodeEnum OBJECTCLASSMODSPROHIBITED = 
-        new ResultCodeEnum( "OBJECTCLASSMODSPROHIBITE", 69 ) ;
+        new ResultCodeEnum( "OBJECTCLASSMODSPROHIBITE", OBJECTCLASSMODSPROHIBITED_VAL ) ;
 
     /**
      * This error code should be returned to indicate that the operation could
@@ -662,7 +729,7 @@
      * (Update)
      */
     public static final ResultCodeEnum AFFECTSMULTIPLEDSAS = 
-        new ResultCodeEnum( "AFFECTSMULTIPLEDSAS", 71 ) ;
+        new ResultCodeEnum( "AFFECTSMULTIPLEDSAS", AFFECTSMULTIPLEDSAS_VAL ) ;
 
     // ------------------------------------------------------------------------
     // General Error Codes:
@@ -680,7 +747,7 @@
      * Applicable operations: all. Result code type: General
      */
     public static final ResultCodeEnum OTHER = 
-        new ResultCodeEnum( "OTHER", 80 ) ;
+        new ResultCodeEnum( "OTHER", OTHER_VAL ) ;
 
     // ------------------------------------------------------------------------
     // Error Codes Grouped Into Categories & Static Accessors
@@ -697,7 +764,7 @@
      * instead.  This array only contains the OTHER error code at the present
      * time.
      */
-    private static final ResultCodeEnum[] GENERAL_CODES = {OTHER} ;
+    public static final ResultCodeEnum[] GENERAL_CODES = {OTHER} ;
 
     /**
      * Five result codes that may be returned in LDAPResult are not used to
@@ -706,7 +773,7 @@
      * contrast, the last two errors require further action by the client in
      * order to complete their original operation request.
      */
-    private static final ResultCodeEnum[] NON_ERRONEOUS_CODES = 
+    public static final ResultCodeEnum[] NON_ERRONEOUS_CODES =
     {
         SUCCESS, COMPARETRUE, COMPAREFALSE, REFERRAL, SASLBINDINPROGRESS
     } ;
@@ -716,7 +783,7 @@
      * attribute error reports a problem related to an attribute specified by
      * the client in their request message.
      */
-    private static final ResultCodeEnum[] ATTRIBUTE_CODES = 
+    public static final ResultCodeEnum[] ATTRIBUTE_CODES =
     {
         NOSUCHATTRIBUTE, UNDEFINEDATTRIBUTETYPE, INAPPROPRIATEMATCHING,
         CONSTRAINTVIOLATION, ATTRIBUTEORVALUEEXISTS, INVALIDATTRIBUTESYNTAX
@@ -735,7 +802,7 @@
      * [X511]. The matchedDN field is to be set to a zero length string with
      * all other result codes [RFC2251, Section 4.1.10].
      */
-    private static final ResultCodeEnum[] NAME_CODES = 
+    public static final ResultCodeEnum[] NAME_CODES =
     {
         NOSUCHOBJECT, ALIASPROBLEM, INVALIDDNSYNTAX
     } ;
@@ -745,7 +812,7 @@
      * security error reports a problem in carrying out an operation for
      * security reasons [X511, Section 12.7].
      */
-    private static final ResultCodeEnum[] SECURITY_CODES = 
+    public static final ResultCodeEnum[] SECURITY_CODES =
     {
         INVALIDCREDENTIALS, STRONGAUTHREQUIRED, AUTHMETHODNOTSUPPORTED,
         CONFIDENTIALITYREQUIRED, INSUFFICIENTACCESSRIGHTS,
@@ -757,7 +824,7 @@
      * service [X511, Section 12.8].  This array stores all error codes
      * related to service problems.
      */
-    private static final ResultCodeEnum[] SERVICE_CODES = 
+    public static final ResultCodeEnum[] SERVICE_CODES =
     {
         BUSY, LOOPDETECT, UNAVAILABLE, PROTOCOLERROR, OPERATIONSERROR,
         TIMELIMITEXCEEDED, SIZELIMITEXCEEDED, ADMINLIMITEXCEEDED,
@@ -769,7 +836,7 @@
      * modify information in the DIB [X511, Section 12.9].  This array
      * contains the category of update errors.
      */
-    private static final ResultCodeEnum[] UPDATE_CODES = 
+    public static final ResultCodeEnum[] UPDATE_CODES =
     {
         NAMINGVIOLATION, OBJECTCLASSVIOLATION, NOTALLOWEDONNONLEAF,
         NOTALLOWEDONRDN, ENTRYALREADYEXISTS, OBJECTCLASSMODSPROHIBITED,
@@ -781,7 +848,7 @@
     // ------------------------------------------------------------------------
 
     /** Array of result code enumerations common to all operations. */
-    private static final ResultCodeEnum[] COMMON_CODES = 
+    public static final ResultCodeEnum[] COMMON_CODES =
     {
         BUSY, OTHER, REFERRAL, LOOPDETECT, UNAVAILABLE, PROTOCOLERROR,
         TIMELIMITEXCEEDED, ADMINLIMITEXCEEDED, STRONGAUTHREQUIRED,
@@ -790,7 +857,7 @@
     } ;
 
     /** Array of result code enumerations resulting from bind operations. */
-    private static final ResultCodeEnum[] BIND_CODES = 
+    public static final ResultCodeEnum[] BIND_CODES =
     {
         BUSY, OTHER, SUCCESS, REFERRAL, LOOPDETECT, UNAVAILABLE, PROTOCOLERROR,
         INVALIDDNSYNTAX, TIMELIMITEXCEEDED, ADMINLIMITEXCEEDED,
@@ -800,7 +867,7 @@
     } ;
 
     /** Array of result code enumerations resulting from search operations. */
-    private static final ResultCodeEnum[] SEARCH_CODES = 
+    public static final ResultCodeEnum[] SEARCH_CODES =
     {
         BUSY, OTHER, SUCCESS, REFERRAL, LOOPDETECT, UNAVAILABLE, NOSUCHOBJECT,
         ALIASPROBLEM, PROTOCOLERROR, INVALIDDNSYNTAX, SIZELIMITEXCEEDED,
@@ -811,7 +878,7 @@
     } ;
 
     /** Array of result code enumerations resulting from modify operations. */
-    private static final ResultCodeEnum[] MODIFY_CODES = 
+    public static final ResultCodeEnum[] MODIFY_CODES =
     {
         BUSY, OTHER, SUCCESS, REFERRAL, LOOPDETECT, UNAVAILABLE, NOSUCHOBJECT,
         PROTOCOLERROR, INVALIDDNSYNTAX, NOTALLOWEDONRDN, NOSUCHATTRIBUTE,
@@ -823,7 +890,7 @@
     } ;
 
     /** Array of result code enumerations resulting from add operations. */
-    private static final ResultCodeEnum[] ADD_CODES = 
+    public static final ResultCodeEnum[] ADD_CODES =
     {
         BUSY, OTHER, SUCCESS, REFERRAL, LOOPDETECT, UNAVAILABLE, NOSUCHOBJECT,
         PROTOCOLERROR, NAMINGVIOLATION, INVALIDDNSYNTAX, TIMELIMITEXCEEDED,
@@ -835,7 +902,7 @@
     } ;
 
     /** Array of result code enumerations resulting from delete operations. */
-    private static final ResultCodeEnum[] DELETE_CODES = 
+    public static final ResultCodeEnum[] DELETE_CODES =
     {
         BUSY, OTHER, SUCCESS, REFERRAL, LOOPDETECT, UNAVAILABLE, NOSUCHOBJECT,
         PROTOCOLERROR, INVALIDDNSYNTAX, TIMELIMITEXCEEDED, ADMINLIMITEXCEEDED,
@@ -845,7 +912,7 @@
     } ;
 
     /** Array of result code enumerations resulting from modifyDn operations. */
-    private static final ResultCodeEnum[] MODIFYDN_CODES = 
+    public static final ResultCodeEnum[] MODIFYDN_CODES =
     {
         BUSY, OTHER, SUCCESS, REFERRAL, LOOPDETECT, UNAVAILABLE, NOSUCHOBJECT,
         PROTOCOLERROR, INVALIDDNSYNTAX, NAMINGVIOLATION, TIMELIMITEXCEEDED,
@@ -856,7 +923,7 @@
     } ;
 
     /** Array of result code enumerations resulting from compare operations. */
-    private static final ResultCodeEnum[] COMPARE_CODES = 
+    public static final ResultCodeEnum[] COMPARE_CODES =
     {
         BUSY, OTHER, REFERRAL, LOOPDETECT, UNAVAILABLE, COMPARETRUE,
         COMPAREFALSE, NOSUCHOBJECT, PROTOCOLERROR, NOSUCHATTRIBUTE,
@@ -867,7 +934,7 @@
     } ;
 
     /** Array of result code enumerations resulting from extended operations. */
-    private static final ResultCodeEnum[] EXTENDED_CODES = 
+    public static final ResultCodeEnum[] EXTENDED_CODES =
     {
         SUCCESS, OPERATIONSERROR, PROTOCOLERROR, TIMELIMITEXCEEDED,
         SIZELIMITEXCEEDED, COMPAREFALSE, COMPARETRUE, AUTHMETHODNOTSUPPORTED,
@@ -888,7 +955,7 @@
     // ------------------------------------------------------------------------
 
     /** Array of all result code enumerations. */
-    private static final ResultCodeEnum[] ALL_CODES = 
+    public static final ResultCodeEnum[] ALL_CODES =
     {
         SUCCESS, OPERATIONSERROR, PROTOCOLERROR, TIMELIMITEXCEEDED,
         SIZELIMITEXCEEDED, COMPAREFALSE, COMPARETRUE, AUTHMETHODNOTSUPPORTED,
@@ -1179,132 +1246,141 @@
     {
         switch ( a_value )
         {
-        case ( 0 ):
+        case ( SUCCESS_VAL ):
             return SUCCESS ;
 
-        case ( 1 ):
+        case ( OPERATIONSERROR_VAL ):
             return OPERATIONSERROR ;
 
-        case ( 2 ):
+        case ( PROTOCOLERROR_VAL ):
             return PROTOCOLERROR ;
 
-        case ( 3 ):
+        case ( TIMELIMITEXCEEDED_VAL ):
             return TIMELIMITEXCEEDED ;
 
-        case ( 4 ):
+        case ( SIZELIMITEXCEEDED_VAL ):
             return SIZELIMITEXCEEDED ;
 
-        case ( 5 ):
+        case ( COMPAREFALSE_VAL ):
             return COMPAREFALSE ;
 
-        case ( 6 ):
+        case ( COMPARETRUE_VAL ):
             return COMPARETRUE ;
 
-        case ( 7 ):
+        case ( AUTHMETHODNOTSUPPORTED_VAL ):
             return AUTHMETHODNOTSUPPORTED ;
 
-        case ( 8 ):
+        case ( STRONGAUTHREQUIRED_VAL ):
             return STRONGAUTHREQUIRED ;
 
         // -- 9 reserved --
-        case ( 10 ):
+
+        case ( REFERRAL_VAL ):
             return REFERRAL ;
 
-        case ( 11 ):
+        case ( ADMINLIMITEXCEEDED_VAL ):
             return ADMINLIMITEXCEEDED ;
 
-        case ( 12 ):
+        case ( UNAVAILABLECRITICALEXTENSION_VAL ):
             return UNAVAILABLECRITICALEXTENSION ;
 
-        case ( 13 ):
+        case ( CONFIDENTIALITYREQUIRED_VAL ):
             return CONFIDENTIALITYREQUIRED ;
 
-        case ( 14 ):
+        case ( SASLBINDINPROGRESS_VAL ):
             return SASLBINDINPROGRESS ;
 
         // -- 15 unused --
-        case ( 16 ):
+
+        case ( NOSUCHATTRIBUTE_VAL ):
             return NOSUCHATTRIBUTE ;
 
-        case ( 17 ):
+        case ( UNDEFINEDATTRIBUTETYPE_VAL ):
             return UNDEFINEDATTRIBUTETYPE ;
 
-        case ( 18 ):
+        case ( INAPPROPRIATEMATCHING_VAL ):
             return INAPPROPRIATEMATCHING ;
 
-        case ( 19 ):
+        case ( CONSTRAINTVIOLATION_VAL ):
             return CONSTRAINTVIOLATION ;
 
-        case ( 20 ):
+        case ( ATTRIBUTEORVALUEEXISTS_VAL ):
             return ATTRIBUTEORVALUEEXISTS ;
 
-        case ( 21 ):
+        case ( INVALIDATTRIBUTESYNTAX_VAL ):
             return INVALIDATTRIBUTESYNTAX ;
 
         // -- 22-31 unused --
-        case ( 32 ):
+
+        case ( NOSUCHOBJECT_VAL ):
             return NOSUCHOBJECT ;
 
-        case ( 33 ):
+        case ( ALIASPROBLEM_VAL ):
             return ALIASPROBLEM ;
 
-        case ( 34 ):
+        case ( INVALIDDNSYNTAX_VAL ):
             return INVALIDDNSYNTAX ;
 
         // -- 35 reserved for undefined isLeaf --
-        case ( 36 ):
+
+        case ( ALIASDEREFERENCINGPROBLEM_VAL ):
             return ALIASDEREFERENCINGPROBLEM ;
 
         // -- 37-47 unused --
-        case ( 48 ):
+
+        case ( INAPPROPRIATEAUTHENTICATION_VAL ):
             return INAPPROPRIATEAUTHENTICATION ;
 
-        case ( 49 ):
+        case ( INVALIDCREDENTIALS_VAL ):
             return INVALIDCREDENTIALS ;
 
-        case ( 50 ):
+        case ( INSUFFICIENTACCESSRIGHTS_VAL ):
             return INSUFFICIENTACCESSRIGHTS ;
 
-        case ( 51 ):
+        case ( BUSY_VAL ):
             return BUSY ;
 
-        case ( 52 ):
+        case ( UNAVAILABLE_VAL ):
             return UNAVAILABLE ;
 
-        case ( 53 ):
+        case ( UNWILLINGTOPERFORM_VAL ):
             return UNWILLINGTOPERFORM ;
 
-        case ( 54 ):
+        case ( LOOPDETECT_VAL ):
             return LOOPDETECT ;
 
         // -- 55-63 unused --
-        case ( 64 ):
+
+        case ( NAMINGVIOLATION_VAL ):
             return NAMINGVIOLATION ;
 
-        case ( 65 ):
+        case ( OBJECTCLASSVIOLATION_VAL ):
             return OBJECTCLASSVIOLATION ;
 
-        case ( 66 ):
+        case ( NOTALLOWEDONNONLEAF_VAL ):
             return NOTALLOWEDONNONLEAF ;
 
-        case ( 67 ):
+        case ( NOTALLOWEDONRDN_VAL ):
             return NOTALLOWEDONRDN ;
 
-        case ( 68 ):
+        case ( ENTRYALREADYEXISTS_VAL ):
             return ENTRYALREADYEXISTS ;
 
-        case ( 69 ):
+        case ( OBJECTCLASSMODSPROHIBITED_VAL ):
             return OBJECTCLASSMODSPROHIBITED ;
 
         // -- 70 reserved for CLDAP --
-        case ( 71 ):
+
+        case ( AFFECTSMULTIPLEDSAS_VAL ):
             return AFFECTSMULTIPLEDSAS ;
 
         // -- 72-79 unused --
-        case ( 80 ):
+
+        case ( OTHER_VAL ):
             return OTHER ;
 
         // -- 81-90 reserved for APIs --
+
         default:
             return null ;
         }

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/AbstractSyntax.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/AbstractSyntax.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/AbstractSyntax.java
Sat Oct 30 17:14:22 2004
@@ -90,9 +90,9 @@
 
     
     /**
-     * @see org.apache.ldap.common.schema.Syntax#isHumanReadable()
+     * @see org.apache.ldap.common.schema.Syntax#isHumanReadible()
      */
-    public final boolean isHumanReadable()
+    public final boolean isHumanReadible()
     {
         return isHumanReadible;
     }

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/Syntax.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/Syntax.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/Syntax.java
Sat Oct 30 17:14:22 2004
@@ -66,11 +66,11 @@
 public interface Syntax extends SchemaObject
 {
     /**
-     * Gets whether or not the Syntax is human readable.
+     * Gets whether or not the Syntax is human readible.
      * 
      * @return true if the syntax can be interpretted by humans, false otherwise
      */
-    boolean isHumanReadable();
+    boolean isHumanReadible();
     
     /**
      * Gets the SyntaxChecker used to validate values in accordance with this

Mime
View raw message