Skip to content

Commit de170b3

Browse files
author
Bob Garner
committed
Fixed documentation strings.
1 parent 8f5451b commit de170b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/entityc/compiler/transform/template/tree/filter/FTNameAsFilter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public class FTNameAsFilter extends FTFilter {
2121

2222
public FTNameAsFilter() {
2323
super(null, "nameas",
24-
"Places underscore between words then forces all characters to be lowercase.");
24+
"Changes the input string (considered a \"name\" because it is using camel case) to another string based on the specified method.");
2525
this.addFilterParam(new FTFilterParam("method",
2626
"Specifies the naming method: " + String.join(", ", Arrays.stream(MTNamingMethod.values()).map(MTNamingMethod::getName).toArray(String[]::new))));
27-
addSingleInputType(String.class, "The string to change into an underscore lowercase format.");
27+
addSingleInputType(String.class, "The camel case name string to change.");
2828
}
2929

3030
@Override
@@ -44,7 +44,7 @@ public Object filter(ParserRuleContext ctx, FTTransformSession session, Object i
4444
}
4545
else
4646
{
47-
ECLog.logFatal(ctx, "Naming method must be specified directly. For example: entity|nameas:uppercase");
47+
ECLog.logFatal(ctx, "Naming method must be specified directly. For example: entity.name|nameas:uppercase");
4848
}
4949
MTNamingMethod namingMethod = MTNamingMethod.fromName(methodName);
5050
if (namingMethod == null) {

0 commit comments

Comments
 (0)