Interface CSSFontFeatureValuesMap


public interface CSSFontFeatureValuesMap
Based on W3C's CSSFontFeatureValuesMap interface. See the definition of @font-feature-values interface in CSS Fonts Module Level 4..
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String featureValueName)
    Get the feature values associated with the given feature value name.
    Get a list of the comments that preceded this map, if any.
    Get a list of the comments that were found right after this map, if any.
    boolean
    Check if empty.
    void
    set(String featureValueName, PrimitiveValue... values)
    Set the feature value(s) associated to the given feature value name.
    int
    The size of the map.
  • Method Details

    • get

      PrimitiveValue[] get(String featureValueName)
      Get the feature values associated with the given feature value name.
      Parameters:
      featureValueName - the feature value name.
      Returns:
      the feature values, or null if there are no values for that name.
    • set

      void set(String featureValueName, PrimitiveValue... values)
      Set the feature value(s) associated to the given feature value name.
      Parameters:
      featureValueName - the feature value name.
      values - the feature value(s).
    • size

      int size()
      The size of the map.
      Returns:
      the count of feature value names.
    • isEmpty

      boolean isEmpty()
      Check if empty.
      Returns:
      true if the map is empty.
    • getPrecedingComments

      StringList getPrecedingComments()
      Get a list of the comments that preceded this map, if any.
      Returns:
      the list of comments, or null if there were no preceding comments.
    • getTrailingComments

      StringList getTrailingComments()
      Get a list of the comments that were found right after this map, if any.
      Returns:
      the list of comments, or null if there were no trailing comments.