Home | History | Annotate | Download | only in text

Lines Matching defs:ARGUMENT

50  * as an array or as a Map.  Each argument is matched up with its
65 * In ICU 3.8 MessageFormat supports named arguments. If a named argument
79 * <code>String</code>s that name the argument indices, e.g. "0",
96 * been modified so that the <code>Object</code> argument can be
98 * format uses named arguments, this argument must not be an
100 * If the argument is a <code>Map</code> it can be used with Strings that
373 * <p>When a single argument is parsed more than once in the string, the last match
386 * multiple occurances of the same argument would return the last match. For
548 // * Parses the pattern and caches Format objects for simple argument types.
591 * correspond to the argument indices used in the previously set
598 * If an argument index is used for more than one format element
600 * for all such format elements. If an argument index is not used
603 * than needed, then only the formats for argument indices less
622 // * methods. The keys in <code>newFormats</code> are the argument
626 // * Only argument names from the pattern string are considered.
628 // * to an argument name are ignored. Similarly, if there is no
629 // * format in newFormats for an argument name, the formatter
630 // * for that argument remains unchanged.
634 // * represent argument indices, e.g. "0", "1", "2" etc.
674 * previously set pattern string that use the given argument
676 * The argument index is part of the format element definition and
681 * If the argument index is used for more than one format element
683 * format elements. If the argument index is not used for any format
687 * argument names. Otherwise an IllegalArgumentException is thrown.
689 * @param argumentIndex the argument index for which to use the new format
701 // * previously set pattern string that use the given argument
704 // * If the argument name is used for more than one format element
706 // * format elements. If the argument name is not used for any format
711 // * an argument index, e.g. "0", "1", "2"... etc. If it does not name
714 // * @param argumentName the name of the argument to change
731 * method, which accesses format elements based on the argument
749 * correspond to the argument indices used in the previously set
756 * If an argument index is used for more than one format element
758 * format element is returned in the array. If an argument index
763 * argument names. Otherwise an IllegalArgumentException is thrown.
788 * argument names. Otherwise an IllegalArgumentException is thrown.
799 // * {@icu} Returns the format argument names. For more details, see
810 // * {@icu} Returns the first top-level format associated with the given argument name.
812 // * @param argumentName The name of the desired argument.
821 // * {@icu} Returns the top-level argument names. For more details, see
823 // * @return a Set of argument names
837 * <code>arguments</code> element at the format element's argument index
839 * argument is <i>unavailable</i> if <code>arguments</code> is
841 * an argument is unavailable no substitution is performed.
846 * <th>Argument
859 * <td><code>subformat.format(argument).indexOf('{') >= 0 ?<br>
860 * (new MessageFormat(subformat.format(argument), getLocale())).format(argument) :
861 * subformat.format(argument)</code>
865 * <td><code>subformat.format(argument)</code>
869 * <td><code>NumberFormat.getInstance(getLocale()).format(argument)</code>
874 * DateFormat.SHORT, getLocale()).format(argument)</code>
878 * <td><code>argument</code>
882 * <td><code>argument.toString()</code>
886 * <code>Field.ARGUMENT</code>, the location of the first formatted
896 * @throws IllegalArgumentException if an argument in the
921 // * argument name.
927 // * An argument is <i>unavailable</i> if <code>arguments</code> is
928 // * <code>null</code> or does not have a value corresponding to an argument
929 // * name in the pattern. When an argument is unavailable no substitution
936 // * @throws IllegalArgumentException if an argument in the
957 * or if an argument in the <code>arguments</code> array
973 // * or if an argument in the <code>arguments</code> map
1014 * @throws IllegalArgumentException if an argument in
1049 * argument in the <code>arguments</code> array. The keys of these attributes are of
1052 * array of the argument from which the text was generated.
1057 * This allows you to not only find where an argument is placed in the
1063 * @exception IllegalArgumentException if an argument in the
1090 if (attr.equals(java.text.MessageFormat.Field.ARGUMENT)) {
1091 val = attr = Field.ARGUMENT;
1112 * <li>If the format of an argument loses information, such as
1121 * <li>If a single argument is parsed more than once in the string,
1133 * the format pattern used named argument an
1153 // * @return a Map containing key/value pairs for each parsed argument.
1180 // * argument to values. The method may not use the entire text of the given string.
1295 if (this.getName().equals(ARGUMENT.getName())) {
1296 return ARGUMENT;
1304 * from an argument passed into <code>formatToCharacterIterator</code>.
1307 * argument from which the text was generated.
1311 public static final Field ARGUMENT = new Field("message argument field");
1418 if (fieldAttribute.equals(Field.ARGUMENT)) {
1419 fieldAttribute = java.text.MessageFormat.Field.ARGUMENT;