ICU-9138 Fixing API doc issues.

X-SVN-Rev: 31550
This commit is contained in:
Yoshito Umaoka 2012-03-01 04:40:13 +00:00
parent 440d4c84c7
commit 0978796e24
6 changed files with 37 additions and 6 deletions

View file

@ -374,6 +374,7 @@ public abstract class DateFormat extends UFormat {
* corresponding to the {@link Calendar#YEAR} field.
* This displays the cyclic year name, if available.
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
public final static int YEAR_NAME_FIELD = 30;

View file

@ -1365,6 +1365,7 @@ public class RuleBasedNumberFormat extends NumberFormat {
* @param newSymbols desired DecimalFormatSymbols
* @see DecimalFormatSymbols
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
public void setDecimalFormatSymbols(DecimalFormatSymbols newSymbols) {
if (newSymbols != null) {

View file

@ -381,20 +381,25 @@ public class SimpleDateFormat extends DateFormat {
*/
private ContextValue defaultCapitalizationContext;
/** Date format context types
* @draft ICU 49
/**
* Date format context types
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
public enum ContextType {
/**
* Type (key) for specifying the capitalization context for which a date
* is to be formatted (possible values are in ContextValue).
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
CAPITALIZATION
}
/** Values for date format context types
* @draft ICU 49
/**
* Values for date format context types
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
public enum ContextValue {
/** Values for any ContextType (key) */
@ -404,6 +409,7 @@ public class SimpleDateFormat extends DateFormat {
* default value for any ContextType when no value has been
* explicitly specified for that ContextType).
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
UNKNOWN,
/** Values for context type (key) CAPITALIZATION */
@ -411,18 +417,21 @@ public class SimpleDateFormat extends DateFormat {
* CAPITALIZATION value if a date (or date symbol) is to be formatted
* with capitalization appropriate for the middle of a sentence.
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE,
/**
* CAPITALIZATION value if a date (or date symbol) is to be formatted
* with capitalization appropriate for the beginning of a sentence.
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE,
/**
* CAPITALIZATION value if a date (or date symbol) is to be formatted
* with capitalization appropriate for a user-interface list or menu item.
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
CAPITALIZATION_FOR_UI_LIST_OR_MENU,
/**
@ -430,6 +439,7 @@ public class SimpleDateFormat extends DateFormat {
* with capitalization appropriate for stand-alone usage such as an
* isolated name on a calendar page.
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
CAPITALIZATION_FOR_STANDALONE
}
@ -1949,6 +1959,7 @@ public class SimpleDateFormat extends DateFormat {
* sets the <code>cal</code> field <code>field</code> to the index
* of the best match, if matching succeeded.
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
protected int matchString(String text, int start, int field, String[] data, String monthPattern, Calendar cal)
{
@ -2095,6 +2106,7 @@ public class SimpleDateFormat extends DateFormat {
* set the appropriate field of <code>cal</code> with the parsed
* value.
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
protected int subParse(String text, int start, char ch, int count,
boolean obeyCount, boolean allowNegative,

View file

@ -916,6 +916,22 @@ public class TimeZoneFormat extends UFormat implements Freezable<TimeZoneFormat>
return parseOffsetLocalizedGMT(text, pos, null);
}
/**
* Returns a <code>TimeZone</code> by parsing the time zone string according to
* the parse position, the style and the parse options.
*
* @param text the text contains a time zone string at the position.
* @param style the format style.
* @param pos the position.
* @param options the parse options.
* @param timeType The output argument for receiving the time type (standard/daylight/unknown),
* or specify null if the information is not necessary.
* @return A <code>TimeZone</code>, or null if the input could not be parsed.
* @see Style
* @see #format(Style, TimeZone, long, Output)
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
public TimeZone parse(Style style, String text, ParsePosition pos, EnumSet<ParseOption> options, Output<TimeType> timeType) {
if (timeType == null) {
timeType = new Output<TimeType>(TimeType.UNKNOWN);

View file

@ -6,7 +6,7 @@
*/
package com.ibm.icu.util;
public class ListFormatData {
class ListFormatData {
static void load() {
ListFormat.add("af", "{0} en {1}", "{0}, {1}", "{0}, {1}", "{0} en {1}");
ListFormat.add("am", "{0} እና {1}", "{0}, {1}", "{0}, {1}", "{0}, እና {1}");

View file

@ -1,6 +1,6 @@
/*
**************************************************************************************
* Copyright (C) 2009-2011, Google, Inc.; International Business Machines Corporation *
* Copyright (C) 2009-2012, Google, Inc.; International Business Machines Corporation *
* and others. All Rights Reserved. *
**************************************************************************************
*/
@ -58,6 +58,7 @@ public final class LocaleData {
/**
* EXType for {@link #getExemplarSet(int, int)}.
* @draft ICU 49
* @provisional This API might change or be removed in a future release.
*/
public static final int ES_PUNCTUATION = 4;