updated coding rules.
[utils] / security / src / main / java / org / wamblee / security / authorization / RegexpPathCondition.java
index 4941f06cb7d320902dcf874a5d9d18fa299fbd2a..2cde6808f21851f58649f2b2633c868d5ee6893e 100644 (file)
@@ -20,20 +20,22 @@ import org.wamblee.persistence.AbstractPersistent;
 
 /**
  * Condition to check whether a path  matches a given regula expression.
+ *
+ * @author Erik Brakkee
  */
 public class RegexpPathCondition extends AbstractPersistent implements PathCondition {
     
     /**
      * String the path must start with. 
      */
-    private String _pattern; 
+    private String pattern; 
     
     /**
      * Constructs the condition. 
      * @param aPattern String the path must start with. 
      */
     public RegexpPathCondition(String aPattern) { 
-        _pattern = aPattern; 
+        pattern = aPattern; 
     }
     
     /**
@@ -41,28 +43,28 @@ public class RegexpPathCondition extends AbstractPersistent implements PathCondi
      *
      */
     protected RegexpPathCondition() { 
-        _pattern = null; 
+        pattern = null; 
     }
 
     /* (non-Javadoc)
      * @see org.wamblee.security.authorization.PathCondition#matches(java.lang.String)
      */
     public boolean matches(String aPath) {
-        return aPath.matches(_pattern);
+        return aPath.matches(pattern);
     }
 
     /**
      * @return Returns the _path.
      */
     protected String getPattern() {
-        return _pattern;
+        return pattern;
     }
 
     /**
      * @param aPattern The _path to set.
      */
     protected void setPattern(String aPattern) {
-        _pattern = aPattern;
+        pattern = aPattern;
     }
     
     /* (non-Javadoc)
@@ -70,6 +72,6 @@ public class RegexpPathCondition extends AbstractPersistent implements PathCondi
      */
     @Override
     public String toString() {
-        return "RegexpCondition(pattern = '" + _pattern + "')";
+        return "RegexpCondition(pattern = '" + pattern + "')";
     }
 }