directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r806857 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/LdapSyntax.java
Date Sat, 22 Aug 2009 14:11:28 GMT
Author: elecharny
Date: Sat Aug 22 14:11:27 2009
New Revision: 806857

URL: http://svn.apache.org/viewvc?rev=806857&view=rev
Log:
The LdapSyntax interface is now an Abstract class

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

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/LdapSyntax.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/LdapSyntax.java?rev=806857&r1=806856&r2=806857&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/LdapSyntax.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/LdapSyntax.java
Sat Aug 22 14:11:27 2009
@@ -67,15 +67,47 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev: 437007 $
  */
-public interface LdapSyntax extends SchemaObject
+public abstract class LdapSyntax extends SchemaObject
 {
+    /** The serialVersionUID */
+    public static final long serialVersionUID = 1L;
+    
+    /** the human readable flag */
+    private boolean isHumanReadable = false;
+
+    
+    /**
+     * Creates a Syntax object using a unique OID.
+     * 
+     * @param oid the OID for this Syntax
+     */
+    protected LdapSyntax( String oid )
+    {
+        super( SchemaObjectType.LDAP_SYNTAX, oid );
+    }
+
+
     /**
      * Gets whether or not the Syntax is human readable.
      * 
-     * @return true if the syntax can be interpretted by humans, false otherwise
+     * @return true if the syntax can be interpreted by humans, false otherwise
      */
-    boolean isHumanReadable();
+    protected boolean isHumanReadable()
+    {
+        return isHumanReadable;
+    }
 
+    
+    /**
+     * Sets the human readable flag value.
+     * 
+     * @param isHumanReadable the human readable flag value to set
+     */
+    protected void setHumanReadable( boolean isHumanReadable )
+    {
+        this.isHumanReadable = isHumanReadable;
+    }
+    
 
     /**
      * Gets the SyntaxChecker used to validate values in accordance with this
@@ -83,5 +115,5 @@
      * 
      * @return the SyntaxChecker
      */
-    SyntaxChecker getSyntaxChecker() throws NamingException;
+    public abstract SyntaxChecker getSyntaxChecker() throws NamingException;
 }



Mime
View raw message