@Override public Set<String> getOptions() { return attribute.getOptions(); }
/** * Retrieves the set of options for this attribute. * * @return The set of options for this attribute, or an empty set if there * are none. */ public Set<String> getOptions() { return getOptions(name); }
/** * Retrieves the set of options for this attribute. * * @return The set of options for this attribute, or an empty set if there * are none. */ public Set<String> getOptions() { return getOptions(name); }
@Override public Set<String> getOptions() { return attribute.getOptions(); }
/** * Indicates whether the provided attribute name has the specified attribute * option. * * @param name The name to be examined. * @param option The attribute option for which to make the determination. * * @return {@code true} if the provided attribute name has the specified * attribute option, or {@code false} if not. */ public static boolean hasOption(final String name, final String option) { final Set<String> options = getOptions(name); for (final String s : options) { if (s.equalsIgnoreCase(option)) { return true; } } return false; }
/** * Indicates whether the provided attribute name has the specified attribute * option. * * @param name The name to be examined. * @param option The attribute option for which to make the determination. * * @return {@code true} if the provided attribute name has the specified * attribute option, or {@code false} if not. */ public static boolean hasOption(final String name, final String option) { final Set<String> options = getOptions(name); for (final String s : options) { if (s.equalsIgnoreCase(option)) { return true; } } return false; }
/** * Retrieves the subtypes (i.e., attribute options) contained in the name for * this attribute. * * @return The subtypes contained in the name for this attribute, or * {@code null} if there are none. */ public String[] getSubtypes() { final Set<String> optionSet = attribute.getOptions(); if (optionSet.isEmpty()) { return null; } final String[] options = new String[optionSet.size()]; return optionSet.toArray(options); }
/** * Retrieves the language subtype (i.e., the attribute option which begins * with "lang-") for this attribute, if present. * * @return The language subtype for this attribute, or {@code null} if there * is none. */ public String getLangSubtype() { for (final String s : attribute.getOptions()) { final String lowerName = toLowerCase(s); if (lowerName.startsWith("lang-")) { return s; } } return null; }
for (final Attribute a : attrList) final Set<String> attrOptions = a.getOptions(); String attrName = null; for (final String s : attrOptions)
for (final String option : a.getOptions())
Attribute.getOptions(attributeName); final Set<String> lowerExpectedOptions = new HashSet<String>(expectedOptions.size()); Attribute.getOptions(alternateName); final Set<String> lowerAlternateOptions = new HashSet<String>(alternateOptions.size());
Attribute.getOptions(attributeName); final Set<String> lowerExpectedOptions = new HashSet<String>(expectedOptions.size()); Attribute.getOptions(alternateName); final Set<String> lowerAlternateOptions = new HashSet<String>(alternateOptions.size());
for(String opt: a.getOptions()) {
Attribute.getOptions(m.getAttributeName()); if (options.isEmpty())