com.ibm.icu.text
Class MessagePatternUtil.ArgNode
java.lang.Object
com.ibm.icu.text.MessagePatternUtil.Node
com.ibm.icu.text.MessagePatternUtil.MessageContentsNode
com.ibm.icu.text.MessagePatternUtil.ArgNode
- Enclosing class:
- MessagePatternUtil
public static class MessagePatternUtil.ArgNode
- extends MessagePatternUtil.MessageContentsNode
A piece of MessageNode contents representing a message argument and its details.
- Status:
- Draft ICU 49.
getArgType
public MessagePattern.ArgType getArgType()
- Returns:
- the argument type
- Status:
- Draft ICU 49.
getName
public String getName()
- Returns:
- the argument name string (the decimal-digit string if the argument has a number)
- Status:
- Draft ICU 49.
getNumber
public int getNumber()
- Returns:
- the argument number, or -1 if none (for a named argument)
- Status:
- Draft ICU 49.
getTypeName
public String getTypeName()
- Returns:
- the argument type string, or null if none was specified
- Status:
- Draft ICU 49.
getSimpleStyle
public String getSimpleStyle()
- Returns:
- the simple-argument style string,
or null if no style is specified and for other argument types
- Status:
- Draft ICU 49.
getComplexStyle
public MessagePatternUtil.ComplexArgStyleNode getComplexStyle()
- Returns:
- the complex-argument-style object,
or null if the argument type is NONE_ARG or SIMPLE_ARG
- Status:
- Draft ICU 49.
toString
public String toString()
-
- Overrides:
toString
in class MessagePatternUtil.MessageContentsNode
- Status:
- Draft ICU 49.
Copyright (c) 2012 IBM Corporation and others.