AdvancedMessageFormat.Partpublic class EqualsFieldPart extends IfFieldPart
{field,equals,new,This is new!,This is old!}| Modifier and Type | Class | Description |
|---|---|---|
static class |
EqualsFieldPart.Factory |
Part factory for "equals".
|
elseValue, fieldName, ifValue| Constructor | Description |
|---|---|
EqualsFieldPart(java.lang.String fieldName,
java.lang.String values) |
Creates a new "equals" field part.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
isTrue(java.util.Map params) |
Indicates whether the field's value is true.
|
protected void |
parseValues(java.lang.String values) |
Parses the parameter values
|
java.lang.String |
toString() |
isGenerated, writepublic EqualsFieldPart(java.lang.String fieldName,
java.lang.String values)
fieldName - the field namevalues - the unparsed parameter valuesprotected void parseValues(java.lang.String values)
parseValues in class IfFieldPartvalues - the unparsed parameter valuesprotected boolean isTrue(java.util.Map params)
isTrue in class IfFieldPartparams - the message parameterspublic java.lang.String toString()
toString in class IfFieldPartCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.