ICU-4376 provide tags for new apis

X-SVN-Rev: 18144
This commit is contained in:
Doug Felt 2005-07-05 21:48:09 +00:00
parent 7b07302ec9
commit a685ae1380
2 changed files with 84 additions and 2 deletions

View File

@ -76,12 +76,40 @@ public class DateFormatSymbols implements Serializable, Cloneable {
// correct; 2. Make code add in 'u' at end if len == 17.
// Constants for context
/**
* Constant for context.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int FORMAT = 0;
/**
* Constant for context.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int STANDALONE = 1;
// Constants for width
/**
* Constant for width.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int WIDE = 4;
/**
* Constant for width.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int ABBREVIATED = 3;
/**
* Constant for width.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int NARROW = 5;
/**
@ -330,6 +358,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
* Gets era name strings. For example: "Anno Domini" and "Before Christ".
* @return the era strings.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public String[] getEraNames() {
// TODO: Fill the era names in appropriately. Just a placeholder right now.
@ -340,6 +369,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
* Gets month strings. For example: "January", "February", etc.
* @return the month strings.
* @stable ICU 2.0
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public String[] getMonths() {
return duplicate(months);
@ -352,6 +382,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
* either WIDE, ABBREVIATED, or NARROW.
* @return the month strings.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public String[] getMonths(int context, int width) {
String [] returnValue = null;
@ -431,6 +462,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
* @param width Width of strings to be returned, either
* WIDE, ABBREVIATED, or NARROW
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public String[] getWeekdays(int context, int width) {
String [] returnValue = null;

View File

@ -22,14 +22,60 @@ public final class LocaleData {
private boolean noSubstitute;
private ICUResourceBundle bundle;
/**
* EXType for {@link #getExemplarSet(int, int)}.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int ES_STANDARD = 0;
/**
* EXType for {@link #getExemplarSet(int, int)}.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int ES_AUXILIARY = 1;
/**
* Count of EXTypes for {@link #getExemplarSet(int, int)}.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int ES_COUNT = 2;
/**
* Delimiter type for {@link #getDelimiter(int)}.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int QUOTATION_START = 0;
/**
* Delimiter type for {@link #getDelimiter(int)}.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int QUOTATION_END = 1;
/**
* Delimiter type for {@link #getDelimiter(int)}.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int ALT_QUOTATION_START = 2;
/**
* Delimiter type for {@link #getDelimiter(int)}.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int ALT_QUOTATION_END = 3;
/**
* Count of delimiter types for {@link #getDelimiter(int)}.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final int DELIMITER_COUNT = 4;
// private constructor to prevent default construction
@ -93,6 +139,7 @@ public final class LocaleData {
* @param locale Locale with thich the locale data object is associated.
* @return A locale data object.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final LocaleData getInstance(ULocale locale) {
LocaleData ld = new LocaleData();
@ -106,6 +153,7 @@ public final class LocaleData {
*
* @return A locale data object.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public static final LocaleData getInstance() {
return LocaleData.getInstance(ULocale.getDefault());
@ -119,6 +167,7 @@ public final class LocaleData {
* an error when no data is available for that method,
* given the locale ID supplied to the constructor.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public void setNoSubstitute(boolean setting) {
noSubstitute = setting;
@ -132,6 +181,7 @@ public final class LocaleData {
* an error when no data is available for that method,
* given the locale ID supplied to the constructor.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public boolean getNoSubstitute() {
return noSubstitute;
@ -145,9 +195,9 @@ public final class LocaleData {
* ALT_QUOTATION_START, or ALT_QUOTATION_END.
* @return The desired delimiter string.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future release of ICU.
*/
public String getDelimiter( int type ) {
public String getDelimiter(int type) {
String [] delimiterTypes = { "quotationStart",
"quotationEnd",
"alternateQuotationStart",