Class URIValue
java.lang.Object
io.sf.carte.doc.style.css.property.StyleValue
io.sf.carte.doc.style.css.property.PrimitiveValue
io.sf.carte.doc.style.css.property.TypedValue
io.sf.carte.doc.style.css.property.StringValue
io.sf.carte.doc.style.css.property.URIValue
- All Implemented Interfaces:
CSSPrimitiveValue,CSSTypedValue,CSSValue,Serializable,Cloneable
- Direct Known Subclasses:
URIValueWrapper
URI primitive value.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSValue
CSSValue.CssType, CSSValue.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of this object.booleanGet a string representation of the current value.getMinifiedCssText(String propertyName) Gives a minified version of the css text of the property.Get the URL contained in this URI value, if it is absolute.inthashCode()booleanisEquivalent(URIValue other) voidsetCssText(String cssText) Attempts to change this value to match the supplied css text.protected voidMethods inherited from class io.sf.carte.doc.style.css.property.StringValue
getStringValue, setStringValue, setStringValue, writeCssTextMethods inherited from class io.sf.carte.doc.style.css.property.TypedValue
getComponent, getCssValueType, getFloatValue, isCalculatedNumber, isNumberZero, setComponent, setFloatValue, toRGBColorMethods inherited from class io.sf.carte.doc.style.css.property.PrimitiveValue
getPrimitiveType, isPrimitiveValue, isSubproperty, setExpectInteger, setSubpropertyMethods inherited from class io.sf.carte.doc.style.css.property.StyleValue
isSystemDefault, matches, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValue
getUnitType, isNegativeNumber, setExpectIntegerMethods inherited from interface io.sf.carte.doc.style.css.CSSTypedValue
toRGBColorValueMethods inherited from interface io.sf.carte.doc.style.css.CSSValue
getPrimitiveType, matches
-
Constructor Details
-
URIValue
public URIValue(byte flags) A URI value with a flag specifying the quote behaviour.- Parameters:
flags- SeeCSSStyleSheetFactory.setFactoryFlag(byte)
-
URIValue
-
-
Method Details
-
setCssText
Description copied from class:StyleValueAttempts 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:
setCssTextin interfaceCSSValue- Overrides:
setCssTextin classStringValue- Parameters:
cssText- the text value.- Throws:
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
- Overrides:
setUnescapedCssTextin classStringValue
-
getMinifiedCssText
Description copied from interface:CSSValueGives a minified version of the css text of the property.It may be customized for the given property name.
- Specified by:
getMinifiedCssTextin interfaceCSSValue- Overrides:
getMinifiedCssTextin classStringValue- Parameters:
propertyName- the property name.- Returns:
- the minified css text.
-
getURLValue
Get the URL contained in this URI value, if it is absolute.- Returns:
- the URL contained in this URI value if it is absolute, null otherwise.
-
hashCode
public int hashCode()- Overrides:
hashCodein classStringValue
-
equals
- Overrides:
equalsin classStringValue
-
isEquivalent
-
clone
Description copied from class:TypedValueCreates and returns a copy of this object.The object will be the same except for the
subpropertyflag, that will be disabled in the clone object.- Specified by:
clonein interfaceCSSValue- Overrides:
clonein classStringValue- Returns:
- a copy of this object.
-
getCssText
Description copied from class:StyleValueGet a string representation of the current value.- Specified by:
getCssTextin interfaceCSSValue- Specified by:
getCssTextin classStyleValue- Returns:
- the css text representing the value of this property.
-