com.ibm.icu.text
Class MessagePatternUtil.VariantNode

java.lang.Object
  extended by com.ibm.icu.text.MessagePatternUtil.Node
      extended by com.ibm.icu.text.MessagePatternUtil.VariantNode
Enclosing class:
MessagePatternUtil

public static class MessagePatternUtil.VariantNode
extends MessagePatternUtil.Node

A Node representing a nested message (nested inside an argument) with its selection criterium.

Status:
Draft ICU 49.

Method Summary
 MessagePatternUtil.MessageNode getMessage()
           
 String getSelector()
          Returns the selector string.
 double getSelectorValue()
           
 boolean isSelectorNumeric()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSelector

public String getSelector()
Returns the selector string. For example: A plural/select keyword ("few"), a plural explicit value ("=1"), a choice comparison operator ("#").

Returns:
the selector string
Status:
Draft ICU 49.

isSelectorNumeric

public boolean isSelectorNumeric()
Returns:
true for choice variants and for plural explicit values
Status:
Draft ICU 49.

getSelectorValue

public double getSelectorValue()
Returns:
the selector's numeric value, or NO_NUMERIC_VALUE if !isSelectorNumeric()
Status:
Draft ICU 49.

getMessage

public MessagePatternUtil.MessageNode getMessage()
Returns:
the nested message
Status:
Draft ICU 49.

toString

public String toString()

Overrides:
toString in class Object
Status:
Draft ICU 49.


Copyright (c) 2012 IBM Corporation and others.