commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator Field.java Msg.java
Date Thu, 11 Nov 2004 15:32:03 GMT
niallp      2004/11/11 07:32:03

  Modified:    validator/src/share/org/apache/commons/validator Tag:
                        VALIDATOR_1_1_2_BRANCH Field.java Msg.java
  Log:
  Re-name getMsgObject() and getMsgs() methods
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.31.2.3  +8 -6      jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java
  
  Index: Field.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java,v
  retrieving revision 1.31.2.2
  retrieving revision 1.31.2.3
  diff -u -r1.31.2.2 -r1.31.2.3
  --- Field.java	11 Nov 2004 12:17:32 -0000	1.31.2.2
  +++ Field.java	11 Nov 2004 15:32:03 -0000	1.31.2.3
  @@ -246,22 +246,24 @@
        * Retrieve a message value.
        */
       public String getMsg(String key) {
  -        Msg msg = getMsgObject(key);
  +        Msg msg = getMessage(key);
           return (msg == null) ? null : msg.getKey();
       }
   
       /**
        * Retrieve a message object.
  +     * @since Validator 1.1.4
        */
  -    public Msg getMsgObject(String key) {
  +    public Msg getMessage(String key) {
           return (Msg)hMsgs.get(key);
       }
   
       /**
        * The <code>Field</code>'s messages are returned as an
        * unmodifiable <code>Map</code>.
  +     * @since Validator 1.1.4
        */
  -    public Map getMsgs() {
  +    public Map getMessages() {
           return Collections.unmodifiableMap(hMsgs);
       }
   
  
  
  
  1.12.2.2  +6 -3      jakarta-commons/validator/src/share/org/apache/commons/validator/Msg.java
  
  Index: Msg.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Msg.java,v
  retrieving revision 1.12.2.1
  retrieving revision 1.12.2.2
  diff -u -r1.12.2.1 -r1.12.2.2
  --- Msg.java	11 Nov 2004 12:17:32 -0000	1.12.2.1
  +++ Msg.java	11 Nov 2004 15:32:03 -0000	1.12.2.2
  @@ -52,6 +52,7 @@
        * Whether or not the key is a message resource (optional).  Defaults to
        * true.  If it is 'true', the value will try to be resolved as a message
        * resource.
  +     * @since Validator 1.1.4
        */
       protected boolean resource = true;
   
  @@ -103,6 +104,7 @@
       /**
        * Tests whether or not the key is a resource key or literal value.
        * @return <code>true</code> if key is a resource key.
  +     * @since Validator 1.1.4
        */
       public boolean isResource() {
           return this.resource;
  @@ -111,6 +113,7 @@
       /**
        * Sets whether or not the key is a resource.
        * @param resource If true indicates the key is a resource.
  +     * @since Validator 1.1.4
        */
       public void setResource(boolean resource) {
           this.resource = resource;
  
  
  

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


Mime
View raw message