directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r807402 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java
Date Mon, 24 Aug 2009 22:05:43 GMT
Author: elecharny
Date: Mon Aug 24 22:05:42 2009
New Revision: 807402

URL: http://svn.apache.org/viewvc?rev=807402&view=rev
Log:
o Added the specification field, storing the xxxDescription string
o Names are now stored as is, without lowercasing

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java?rev=807402&r1=807401&r2=807402&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java
Mon Aug 24 22:05:42 2009
@@ -89,6 +89,9 @@
     /** A short description of this SchemaObject */
     protected String description;
 
+    /** The SchemaObject specification */
+    protected String specification;
+
     /** The name of the schema this object is associated with */
     protected String schemaName;
     
@@ -215,13 +218,12 @@
             
             for ( String name:names )
             {
-                String normalizedName = StringTools.trim( name ).toLowerCase();
-                
-                this.names.add( normalizedName );
+                this.names.add( name );
             }
         }
     }
 
+    
     /**
      * Gets a short description about this SchemaObject.
      * 
@@ -245,6 +247,31 @@
             this.description = description;
         }
     }
+
+    
+    /**
+     * Gets the SchemaObject specification.
+     * 
+     * @return the SchemaObject specification
+     */
+    public String getSpecification()
+    {
+        return specification;
+    }
+    
+    
+    /**
+     * Sets the SchemaObject's specification
+     * 
+     * @param specification The SchemaObject's specification
+     */
+    public void setSpecification( String specification )
+    {
+        if ( !isReadOnly )
+        {
+            this.specification = specification;
+        }
+    }
     
     
     /**



Mime
View raw message