Class URIValue

All Implemented Interfaces:
CSSPrimitiveValue, CSSTypedValue, CSSValue, Serializable, Cloneable
Direct Known Subclasses:

public class URIValue extends StringValue
URI primitive value.
See Also:
  • Constructor Details

  • Method Details

    • setCssText

      public void setCssText(String cssText) throws DOMException
      Description copied from class: StyleValue
      Attempts to change this value to match the supplied css text.

      In css4j, it is not recommended to set property values using this method.

      Specified by:
      setCssText in interface CSSValue
      setCssText in class StringValue
      cssText - the text value.
      DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error (according to the attached property) or is unparsable.
      INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of values than the values allowed by the CSS property.
      NO_MODIFICATION_ALLOWED_ERR: Raised if this value is read-only.
    • setUnescapedCssText

      protected void setUnescapedCssText(String css)
      setUnescapedCssText in class StringValue
    • getMinifiedCssText

      public String getMinifiedCssText(String propertyName)
      Description copied from interface: CSSValue
      Gives a minified version of the css text of the property.

      It may be customized for the given property name.

      Specified by:
      getMinifiedCssText in interface CSSValue
      getMinifiedCssText in class StringValue
      propertyName - the property name.
      the minified css text.
    • getURLValue

      public URL getURLValue()
      Get the URL contained in this URI value, if it is absolute.
      the URL contained in this URI value if it is absolute, null otherwise.
    • hashCode

      public int hashCode()
      hashCode in class StringValue
    • equals

      public boolean equals(Object obj)
      equals in class StringValue
    • isEquivalent

      public boolean isEquivalent(URIValue other)
    • clone

      public URIValue clone()
      Description copied from class: TypedValue
      Creates and returns a copy of this object.

      The object will be the same except for the subproperty flag, that will be disabled in the clone object.

      Specified by:
      clone in interface CSSValue
      clone in class StringValue
      a copy of this object.
    • getCssText

      public String getCssText()
      Description copied from class: StyleValue
      Get a string representation of the current value.
      Specified by:
      getCssText in interface CSSValue
      Specified by:
      getCssText in class StyleValue
      the css text representing the value of this property.