Class ClassAttribute

    • Constructor Detail

      • ClassAttribute

        public ClassAttribute​()
      • ClassAttribute

        public ClassAttribute​(java.lang.String... classNames)
        one or more class name separated by space or as an array of class names.
        Parameters:
        classNames -
    • Method Detail

      • init

        protected void init​()
        invokes only once per object
        Since:
        1.0.0
      • addClassNames

        public void addClassNames​(java.lang.String... classNames)
        adds the given class names.
        Parameters:
        classNames - one or more class names separated by space or as an array of class names.
        Since:
        1.0.0
      • addNewClassNames

        public void addNewClassNames​(java.lang.String... classNames)
        removed all current class names and adds the given class names.
        Parameters:
        classNames - one or more class names separated by space or an array of class names.
        Since:
        1.0.0
      • addAllClassNames

        public void addAllClassNames​(java.util.Collection<java.lang.String> classNames)
        adds the given class names in the class attribute
        Parameters:
        classNames -
        Since:
        1.0.0
      • removeAllClassNames

        public void removeAllClassNames​(java.util.Collection<java.lang.String> classNames)
        removes all class names from the class attribute
        Parameters:
        classNames - the class names to remove
        Since:
        1.0.0
      • removeClassName

        public void removeClassName​(java.lang.String className)
        removes the given class name
        Parameters:
        className - the class name to remove
        Since:
        1.0.0
      • getAttributeValue

        public java.lang.String getAttributeValue​()
        Overrides:
        getAttributeValue in class AbstractAttribute
        Returns:
        the value string of class names
        Since:
        2.1.9
      • getClassNames

        public java.util.Set<java.lang.String> getClassNames​()
        NB:- every time it returns a new LinkedHashSet object and changes to this set object will not have any affect on this ClassAttribute object.
        Returns:
        the set of class names it contained.
        Since:
        2.1.9