commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators StatusCodeTag.java
Date Sat, 13 Jul 2002 07:18:59 GMT
dion        2002/07/13 00:18:59

  Modified:    latka/src/java/org/apache/commons/latka/jelly/validators
                        StatusCodeTag.java
  Log:
  Rename status code to value
  
  Revision  Changes    Path
  1.2       +10 -10    jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/StatusCodeTag.java
  
  Index: StatusCodeTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/StatusCodeTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StatusCodeTag.java	13 Jul 2002 02:15:52 -0000	1.1
  +++ StatusCodeTag.java	13 Jul 2002 07:18:58 -0000	1.2
  @@ -74,7 +74,7 @@
   public class StatusCodeTag extends ValidatorTag {
       
       /** status code to check against - defaults to OK */
  -    private int _statusCode = HttpStatus.SC_OK;
  +    private int _value = HttpStatus.SC_OK;
       
       /** Creates a new instance of StatusCodeTag */
       public StatusCodeTag() {
  @@ -89,7 +89,7 @@
        */
       public void doTag(XMLOutput xmlOutput) throws Exception {
           super.doTag(xmlOutput);
  -        if (getRequest().getStatusCode() != getStatusCode()) {
  +        if (getRequest().getStatusCode() != getValue()) {
               invokeBody(xmlOutput);
           }
       }
  @@ -97,15 +97,15 @@
       /** Getter for property statusCode.
        * @return Value of property statusCode.
        */
  -    public int getStatusCode() {
  -        return _statusCode;
  +    public int getValue() {
  +        return _value;
       }
       
       /** Setter for property statusCode.
        * @param statusCode New value of property statusCode.
        */
  -    public void setStatusCode(int statusCode) {
  -        _statusCode = statusCode;
  +    public void setValue(int statusCode) {
  +        _value = statusCode;
       }
       
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message