dlr 2003/08/13 11:28:01
Modified: betwixt/src/java/org/apache/commons/betwixt/strategy
HyphenatedNameMapper.java NameMapper.java
Log:
* src/java/org/apache/commons/betwixt/strategy/NameMapper.java
* src/java/org/apache/commons/betwixt/strategy/HyphenatedNameMapper.java
mapTypeToElementName(String): Improved JavaDoc.
Revision Changes Path
1.8 +12 -8
jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/strategy/HyphenatedNameMapper.java
Index: HyphenatedNameMapper.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/strategy/HyphenatedNameMapper.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -u -r1.7 -r1.8
--- HyphenatedNameMapper.java 17 Feb 2003 19:41:56 -0000 1.7
+++ HyphenatedNameMapper.java 13 Aug 2003 18:28:01 -0000 1.8
@@ -114,8 +114,9 @@
}
/**
- * <p>The words within the bean name are deduced assuming the camel's hump
naming
- * convention. For example, the words in <code>FooBar</code> are
<code>foo</code>
+ * <p>The words within the bean name are deduced assuming the
+ * first-letter-capital (e.g. camel's hump) naming convention. For
+ * example, the words in <code>FooBar</code> are <code>foo</code>
* and <code>bar</code>.</p>
*
* <p>Next convert all letter in the bean name to either upper case or lower
case
@@ -124,7 +125,10 @@
* <p>Then the [EMAIL PROTECTED] #getSeparator} property value is inserted so
that it separates
* each word.</p>
*
- * @param typeName the name string to convert
+ * @param typeName The name string to convert. If a JavaBean
+ * class name, should included only the last part of the name
+ * rather than the fully qualified name (e.g. FooBar rather than
+ * org.example.FooBar).
* @return the bean name converted to either upper or lower case with words
separated
* by the separator.
*/
1.4 +9 -8
jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/strategy/NameMapper.java
Index: NameMapper.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/strategy/NameMapper.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -u -r1.3 -r1.4
--- NameMapper.java 6 Jan 2003 22:50:45 -0000 1.3
+++ NameMapper.java 13 Aug 2003 18:28:01 -0000 1.4
@@ -62,7 +62,8 @@
package org.apache.commons.betwixt.strategy;
/**
- * A plugin Strategy pattern for converting java type names into element names.
+ * A plugin Strategy pattern for converting Java type names into
+ * element names.
*
* @author <a href="mailto:[EMAIL PROTECTED]">James Strachan</a>
* @version $Revision$
@@ -70,8 +71,8 @@
public interface NameMapper {
/**
- * Convert the given bean or property name to name for use in xml
- * (as an element or an attribute nqame).
+ * Convert the given bean or property name to name for use in XML
+ * (as an element or an attribute qname).
*
* @param typeName the string to convert
* @return the element name for the given bean type name
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]