You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/07/08 09:22:03 UTC
cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework Pattern.java
donaldp 01/07/08 00:22:03
Modified: proposal/myrmidon/src/java/org/apache/myrmidon/framework
Pattern.java
Log:
Name->Value to reflect better semantics.
Revision Changes Path
1.5 +10 -11 jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/Pattern.java
Index: Pattern.java
===================================================================
RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/Pattern.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Pattern.java 2001/06/29 02:40:04 1.4
+++ Pattern.java 2001/07/08 07:22:01 1.5
@@ -8,7 +8,6 @@
package org.apache.myrmidon.framework;
import org.apache.myrmidon.api.TaskException;
-import org.apache.myrmidon.framework.Condition;
/**
* Basic data type for holding patterns.
@@ -18,17 +17,17 @@
public class Pattern
implements DataType
{
- private String m_name;
+ private String m_value;
private Condition m_condition;
/**
- * Retrieve name (aka value) of pattern.
+ * Retrieve value of pattern.
*
- * @return the name/value of pattern
+ * @return the value of pattern
*/
- public String getName()
+ public String getValue()
{
- return m_name;
+ return m_value;
}
/**
@@ -42,14 +41,14 @@
}
/**
- * Setter method for name/value of pattern.
+ * Setter method for value of pattern.
* Conforms to setter patterns
*
- * @param name the value
+ * @param value the value
*/
- public void setName( final String name )
+ public void setValue( final String value )
{
- m_name = name;
+ m_value = value;
}
/**
@@ -80,7 +79,7 @@
public String toString()
{
- String result = "Pattern['" + m_name + "',";
+ String result = "Pattern['" + m_value + "',";
if( null != m_condition ) result = result + m_condition;
return result + "]";
}