AdvancedMessageFormat.Part
public class ChoiceFieldPart extends java.lang.Object implements AdvancedMessageFormat.Part
ChoiceFormat
.Modifier and Type | Class | Description |
---|---|---|
static class |
ChoiceFieldPart.Factory |
Factory for ChoiceFieldPart.
|
Constructor | Description |
---|---|
ChoiceFieldPart(java.lang.String fieldName,
java.lang.String choicesPattern) |
Creates a new choice part.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isGenerated(java.util.Map params) |
Indicates whether there is any content that is generated by this message part.
|
java.lang.String |
toString() |
|
void |
write(java.lang.StringBuffer sb,
java.util.Map params) |
Writes the formatted part to a string buffer.
|
public ChoiceFieldPart(java.lang.String fieldName, java.lang.String choicesPattern)
fieldName
- the field name to work onchoicesPattern
- the choices pattern (as used by ChoiceFormat
)public boolean isGenerated(java.util.Map params)
isGenerated
in interface AdvancedMessageFormat.Part
params
- the parameters to work withpublic void write(java.lang.StringBuffer sb, java.util.Map params)
write
in interface AdvancedMessageFormat.Part
sb
- the target string bufferparams
- the parameters to work withpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.