public class ChoiceFieldPart extends Object implements AdvancedMessageFormat.Part
ChoiceFormat.| Modifier and Type | Class and Description |
|---|---|
static class |
ChoiceFieldPart.Factory
Factory for ChoiceFieldPart.
|
| Constructor and Description |
|---|
ChoiceFieldPart(String fieldName,
String choicesPattern)
Creates a new choice part.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isGenerated(Map params) |
String |
toString() |
void |
write(StringBuffer sb,
Map params) |
public ChoiceFieldPart(String fieldName, String choicesPattern)
fieldName - the field name to work onchoicesPattern - the choices pattern (as used by ChoiceFormat)public boolean isGenerated(Map params)
isGenerated in interface AdvancedMessageFormat.Partpublic void write(StringBuffer sb, Map params)
write in interface AdvancedMessageFormat.PartCopyright © 2025 Apache Software Foundation. All rights reserved.