directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r707707 - /directory/sandbox/kayyagari/apacheds-olm/src/main/resources/AttributeClass.st
Date Fri, 24 Oct 2008 18:38:44 GMT
Author: kayyagari
Date: Fri Oct 24 11:38:44 2008
New Revision: 707707

URL: http://svn.apache.org/viewvc?rev=707707&view=rev
Log:
o removed the read-only parameters and injected them directly into the isXXX methods

Modified:
    directory/sandbox/kayyagari/apacheds-olm/src/main/resources/AttributeClass.st

Modified: directory/sandbox/kayyagari/apacheds-olm/src/main/resources/AttributeClass.st
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/apacheds-olm/src/main/resources/AttributeClass.st?rev=707707&r1=707706&r2=707707&view=diff
==============================================================================
--- directory/sandbox/kayyagari/apacheds-olm/src/main/resources/AttributeClass.st (original)
+++ directory/sandbox/kayyagari/apacheds-olm/src/main/resources/AttributeClass.st Fri Oct
24 11:38:44 2008
@@ -26,25 +26,16 @@
 public class $className$ implements Attribute
 {
 
-    // if no syntax or matching rule is defined then the default argument type will be java.lang.String
+    // if no syntax is defined or inherited then the default argument type will be java.lang.String
 
     private $argType$ $paramName$;
     
     private Set<$argType$> _attrValues;
     
-    private boolean obsolete = $obsolete$;
-    private boolean singleValue = $singleValue$;
-    private boolean collective = $collective$;
-    private boolean noUserModification = $noUserModification$;
-    
     public static final String OID = "$oid$";
     
     public static final String ATTRIBUTE_NAME = "$paramName$";
-    
-    //TODO
-    // may be here needs a reference to the corresponding object class to apply the changes
done to this
-    // attribute transparently. This reference should be injected at runtime through byte
code manipulation
-    
+        
     public $className$() {}
     
    /**
@@ -114,25 +105,25 @@
     
     public boolean isObsolete()
     {
-        return obsolete;
+       return $obsolete$;
     }
     
     
     public boolean isSingleValue()
     {
-        return singleValue;
+       return $singleValue$;
     }
 
 
     public boolean isCollective()
     {
-        return collective;
+       return $collective$;
     }
 
 
     public boolean isNoUserModification()
     {
-        return noUserModification;
+       return $noUserModification$;
     }
     
     



Mime
View raw message