com.ibm.icu.text
Class MessagePatternUtil.ArgNode

java.lang.Object
  extended by com.ibm.icu.text.MessagePatternUtil.Node
      extended by com.ibm.icu.text.MessagePatternUtil.MessageContentsNode
          extended by 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.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.icu.text.MessagePatternUtil.MessageContentsNode
MessagePatternUtil.MessageContentsNode.Type
 
Method Summary
 MessagePattern.ArgType getArgType()
           
 MessagePatternUtil.ComplexArgStyleNode getComplexStyle()
           
 String getName()
           
 int getNumber()
           
 String getSimpleStyle()
           
 String getTypeName()
           
 String toString()
          
 
Methods inherited from class com.ibm.icu.text.MessagePatternUtil.MessageContentsNode
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.