com.aspose.html.dom.css

Class CSSValueList

    • Constructor Detail

      • CSSValueList

        public CSSValueList()

        Initializes a new instance of the CSSValueList class.

      • CSSValueList

        public CSSValueList(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<CSSValue> values)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        values - The values.
      • CSSValueList

        public CSSValueList(CSSValue... values)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        values - The values.
      • CSSValueList

        public CSSValueList(boolean isCommaSeparatedList)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        isCommaSeparatedList - Flag which controls separator used during serialization.
      • CSSValueList

        public CSSValueList(boolean isCommaSeparatedList,
                            com.aspose.ms.System.Collections.Generic.IGenericEnumerable<CSSValue> values)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        isCommaSeparatedList - Flag which controls separator used during serialization.
        values - The values.
      • CSSValueList

        public CSSValueList(boolean isCommaSeparatedList,
                            CSSValue... values)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        isCommaSeparatedList - Flag which controls separator used during serialization.
        values - The values.
    • Method Detail

      • add

        public void add(CSSValue value)
      • getCSSText

        public java.lang.String getCSSText()

        A string representation of the current value.

        Value: The CSS text.
        Specified by:
        getCSSText in class CSSValue
      • setCSSText

        public void setCSSText(java.lang.String value)

        A string representation of the current value.

        Value: The CSS text.
        Specified by:
        setCSSText in class CSSValue
      • getLength

        public int getLength()

        The number of CSSValues in the list.

        Specified by:
        getLength in interface ICSSValueList
      • isCommaSeparatedList

        public boolean isCommaSeparatedList()

        Flag which controls separator used during serialization.

      • iterator

        public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<CSSValue> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<CSSValue>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<CSSValue>
        Specified by:
        iterator in interface java.lang.Iterable<CSSValue>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • equals

        protected boolean equals(CSSValue obj)

        Determines whether the specified object is equal to this instance.

        Overrides:
        equals in class CSSValue
        Parameters:
        obj - The object to compare with this instance.
        Returns:
        true if the specified CSSValue is equal to this instance; otherwise, false.