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:49 GMT
niallp      2004/11/11 07:32:49

  Modified:    validator/src/share/org/apache/commons/validator Field.java
                        Msg.java
  Log:
  Re-name getMsgObject() and getMsgs() methods
  
  Revision  Changes    Path
  1.35      +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.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- Field.java	11 Nov 2004 12:18:25 -0000	1.34
  +++ Field.java	11 Nov 2004 15:32:49 -0000	1.35
  @@ -214,22 +214,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.14      +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.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Msg.java	11 Nov 2004 12:18:25 -0000	1.13
  +++ Msg.java	11 Nov 2004 15:32:49 -0000	1.14
  @@ -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