Lines Matching refs:attribute

645          * Adds the specified attribute to the list of attributes in the unicode
657 * @throws IllformedLocaleException if {@code attribute} is invalid.
658 * @throws NullPointerException if {@code attribute} is null.
660 public Builder addUnicodeLocaleAttribute(String attribute) {
661 if (attribute == null) {
662 throw new NullPointerException("attribute == null");
665 final String lowercaseAttribute = attribute.toLowerCase(Locale.ROOT);
667 throw new IllformedLocaleException("Invalid locale attribute: " + attribute);
676 * Removes an attribute from the list of attributes in the unicode locale
679 * {@code attribute} must be valid as per the rules specified in
682 * This method has no effect if {@code attribute} hasn't already been
685 * @throws IllformedLocaleException if {@code attribute} is invalid.
686 * @throws NullPointerException if {@code attribute} is null.
688 public Builder removeUnicodeLocaleAttribute(String attribute) {
689 if (attribute == null) {
690 throw new NullPointerException("attribute == null");
693 // Weirdly, remove is specified to check whether the attribute
695 final String lowercaseAttribute = attribute.toLowerCase(Locale.ROOT);
697 throw new IllformedLocaleException("Invalid locale attribute: " + attribute);
700 attributes.remove(attribute);
722 * the unicode locale extension results in all existing keyword and attribute
2035 * unicode_locale_extensions = sep "u" (1*(sep keyword) / 1*(sep attribute) *(sep keyword)).
2037 * It must contain at least one keyword or attribute and attributes (if any)