Class MessageFmt.SegmentSwitchAdapter
- All Implemented Interfaces:
MessageFmt.SegmentSwitch
- Enclosing class:
- MessageFmt
MessageFmt.SegmentSwitch
implementations.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Internal roll-up method.void
Handle aMessageFmt.ChoiceArgumentSegment
.void
Handle aMessageFmt.CurrencyArgumentSegment
.protected <T extends DateFormat>
voidInternal roll-up method.void
Handle aMessageFmt.DecimalArgumentSegment
.void
Handle aMessageFmt.DefaultArgumentSegment
.void
protected <T extends Format>
voidInternal roll-up method.void
Handle anMessageFmt.IntegerArgumentSegment
.protected <T extends NumberFormat>
voidInternal roll-up method.void
Handle aMessageFmt.PercentArgumentSegment
.protected void
caseSegment
(MessageFmt.Segment segment) Internal roll-up method.void
void
void
void
caseTextSegment
(MessageFmt.TextSegment segment) Handle aMessageFmt.TextSegment
.
-
Constructor Details
-
SegmentSwitchAdapter
public SegmentSwitchAdapter()
-
-
Method Details
-
caseChoiceArgumentSegment
Handle aMessageFmt.ChoiceArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseNumberFormatArgumentSegment()
.- Specified by:
caseChoiceArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseCurrencyArgumentSegment
Handle aMessageFmt.CurrencyArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseNumberFormatArgumentSegment()
.- Specified by:
caseCurrencyArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseDecimalArgumentSegment
Handle aMessageFmt.DecimalArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseNumberFormatArgumentSegment()
.- Specified by:
caseDecimalArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseDefaultArgumentSegment
Handle aMessageFmt.DefaultArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseArgumentSegment()
.- Specified by:
caseDefaultArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseDefaultNumberFormatArgumentSegment
public void caseDefaultNumberFormatArgumentSegment(MessageFmt.DefaultNumberFormatArgumentSegment segment) Handle aMessageFmt.DefaultNumberFormatArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseNumberFormatArgumentSegment()
.- Specified by:
caseDefaultNumberFormatArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseIntegerArgumentSegment
Handle anMessageFmt.IntegerArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseNumberFormatArgumentSegment()
.- Specified by:
caseIntegerArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
casePercentArgumentSegment
Handle aMessageFmt.PercentArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseNumberFormatArgumentSegment()
.- Specified by:
casePercentArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseSimpleDateFormatArgumentSegment
Handle aMessageFmt.SimpleDateFormatArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseDateFormatArgumentSegment()
.- Specified by:
caseSimpleDateFormatArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseStandardDateFormatArgumentSegment
public void caseStandardDateFormatArgumentSegment(MessageFmt.StandardDateFormatArgumentSegment segment) Handle aMessageFmt.StandardDateFormatArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseDateFormatArgumentSegment()
.- Specified by:
caseStandardDateFormatArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseStandardTimeFormatArgumentSegment
public void caseStandardTimeFormatArgumentSegment(MessageFmt.StandardTimeFormatArgumentSegment segment) Handle aMessageFmt.StandardTimeFormatArgumentSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseDateFormatArgumentSegment()
.- Specified by:
caseStandardTimeFormatArgumentSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseTextSegment
Handle aMessageFmt.TextSegment
.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseSegment()
.- Specified by:
caseTextSegment
in interfaceMessageFmt.SegmentSwitch
- Parameters:
segment
- visited segment
-
caseDateFormatArgumentSegment
protected <T extends DateFormat> void caseDateFormatArgumentSegment(MessageFmt.DateFormatArgumentSegment<T> segment) Internal roll-up method.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseFormatArgumentSegment()
.- Type Parameters:
T
- date format type- Parameters:
segment
- visited segment
-
caseNumberFormatArgumentSegment
protected <T extends NumberFormat> void caseNumberFormatArgumentSegment(MessageFmt.NumberFormatArgumentSegment<T> segment) Internal roll-up method.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseFormatArgumentSegment()
.- Type Parameters:
T
- number format type- Parameters:
segment
- visited segment
-
caseFormatArgumentSegment
protected <T extends Format> void caseFormatArgumentSegment(MessageFmt.FormatArgumentSegment<T> segment) Internal roll-up method.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseArgumentSegment()
.- Type Parameters:
T
- format type- Parameters:
segment
- visited segment
-
caseArgumentSegment
Internal roll-up method.The implementation in
MessageFmt.SegmentSwitchAdapter
delegates tocaseSegment()
.- Parameters:
segment
- visited segment
-
caseSegment
Internal roll-up method.The implementation in
MessageFmt.SegmentSwitchAdapter
does nothing.- Parameters:
segment
- visited segment
-