Class MutableAttributes


  • public class MutableAttributes
    extends Attributes
    • Constructor Detail

      • MutableAttributes

        public MutableAttributes()
      • MutableAttributes

        public MutableAttributes​(Attributes attributes)
    • Method Detail

      • getAttributes

        protected java.util.LinkedHashMap<java.lang.String,​Attribute> getAttributes()
      • replaceValue

        public Attribute replaceValue​(java.lang.CharSequence key,
                                      java.lang.CharSequence value)
        Attribute dependent value replacement class and style append new values to existing ones others set it to the new value
        Parameters:
        key - attribute name
        value - new value
        Returns:
        new attribute
      • addValue

        public Attribute addValue​(java.lang.CharSequence key,
                                  java.lang.CharSequence value)
      • removeValue

        public Attribute removeValue​(java.lang.CharSequence key,
                                     java.lang.CharSequence value)
      • clear

        public void clear()
      • remove

        public Attribute remove​(java.lang.CharSequence key)