com.ibm.icu.text
Class DateTimePatternGenerator.VariableField

java.lang.Object
  extended by com.ibm.icu.text.DateTimePatternGenerator.VariableField
Enclosing class:
DateTimePatternGenerator

Deprecated. This API is ICU internal only.

public static class DateTimePatternGenerator.VariableField
extends Object

Utility class for FormatParser. Immutable class that is only used to mark the difference between a variable field and a literal string. Each variable field must consist of 1 to n variable characters, representing date format fields. For example, "VVVV" is valid while "V4" is not, nor is "44".


Constructor Summary
DateTimePatternGenerator.VariableField(String string)
          Deprecated. This API is ICU internal only.
DateTimePatternGenerator.VariableField(String string, boolean strict)
          Deprecated. This API is ICU internal only.
 
Method Summary
 int getType()
          Deprecated. This API is ICU internal only.
 String toString()
          Deprecated. This API is ICU internal only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTimePatternGenerator.VariableField

public DateTimePatternGenerator.VariableField(String string)
Deprecated. This API is ICU internal only.

Create a variable field: equivalent to VariableField(string,false);

Parameters:
string -

DateTimePatternGenerator.VariableField

public DateTimePatternGenerator.VariableField(String string,
                                              boolean strict)
Deprecated. This API is ICU internal only.

Create a variable field

Parameters:
string -
strict - TODO
Throws:
IllegalArgumentException - if the variable field is not valid.
Method Detail

getType

public int getType()
Deprecated. This API is ICU internal only.

Get the main type of this variable. These types are ERA, QUARTER, MONTH, DAY, WEEK_OF_YEAR, WEEK_OF_MONTH, WEEKDAY, DAY, DAYPERIOD (am/pm), HOUR, MINUTE, SECOND,FRACTIONAL_SECOND, ZONE.

Returns:
main type.

toString

public String toString()
Deprecated. This API is ICU internal only.

Get the string represented by this variable.

Overrides:
toString in class Object


Copyright (c) 2009 IBM Corporation and others.