Class AttributeMap

    • Constructor Detail

      • AttributeMap

        public AttributeMap()
        Constructs an empty AttributeMap.
    • Method Detail

      • putAttribute

        public boolean putAttribute​(String key,
                                    boolean value)
        Put a boolean attribute, removing it if value is false or using the key as value otherwise, i.e. value="value".
        Parameters:
        key - key of attribute
        value -
        Returns:
        previous value
      • putAttribute

        public String putAttribute​(String key,
                                   CharSequence value)
        Put a string attribute, removing it if the string is empty (nor null).
        Parameters:
        key - key of attribute
        value -
        Returns:
        previous value