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
- All Implemented Interfaces:
- CSSPrimitiveValue,- CSSTypedValue,- CSSValue,- Serializable,- Cloneable
- Direct Known Subclasses:
- URIValue
String value.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSValueCSSValue.CssType, CSSValue.Type
- 
Constructor SummaryConstructorsModifierConstructorDescriptionStringValue(short flags) A string value with a flag specifying the quote behaviour.protectedStringValue(StringValue copied) 
- 
Method SummaryModifier 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.If this value represents a string value, get it.inthashCode()voidsetCssText(String cssText) Attempts to change this value to match the supplied css text.voidsetStringValue(CSSValue.Type stringType, String stringValue) If this value is a string, identifier, URI, unicode wildcard or element reference, set its value.protected voidsetStringValue(String stringValue) protected voidvoidwriteCssText(SimpleWriter wri) Serialize this value to aSimpleWriter.Methods inherited from class io.sf.carte.doc.style.css.property.TypedValuegetComponent, getComponentCount, getCssValueType, getFloatValue, isNumberZero, setComponentMethods inherited from class io.sf.carte.doc.style.css.property.PrimitiveValuegetPrecedingComments, getPrimitiveType, getTrailingComments, isPrimitiveValue, isSubproperty, setExpectInteger, setSubpropertyMethods inherited from class io.sf.carte.doc.style.css.property.StyleValueisSystemDefault, matches, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValuegetUnitType, isNegativeNumber, isPrimitiveValue, setExpectIntegerMethods inherited from interface io.sf.carte.doc.style.css.CSSTypedValuegetFloatValue, isCalculatedNumber, setFloatValue, toRGBColor, toRGBColorValueMethods inherited from interface io.sf.carte.doc.style.css.CSSValuegetMinifiedCssText, getPrecedingComments, getPrimitiveType, getTrailingComments, matches
- 
Constructor Details- 
StringValuepublic StringValue()
- 
StringValuepublic StringValue(short flags) A string value with a flag specifying the quote behaviour.- Parameters:
- flags- See- CSSStyleSheetFactory.setFactoryFlag(short)
 
- 
StringValue
 
- 
- 
Method Details- 
setCssTextDescription 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 interface- CSSValue
- Overrides:
- setCssTextin class- StyleValue
- 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.
 
- 
getStringValueDescription copied from interface:CSSTypedValueIf this value represents a string value, get it.This method is useful for values like strings, identifiers, URIs, element references, etc. For functions, it returns the function name. - Returns:
- the string value.
 
- 
setStringValueDescription copied from interface:CSSTypedValueIf this value is a string, identifier, URI, unicode wildcard or element reference, set its value.The string value has to be supplied unescaped and unquoted. If it is a unicode wildcard, it must not have the preceding U+.- Parameters:
- stringType- the type of value.
- stringValue- the string value.
- Throws:
- DOMException- INVALID_ACCESS_ERR if the requested type of value is different to this one, or this value does not accept strings.
 NO_MODIFICATION_ALLOWED_ERR if this value is unmodifiable.
 
- 
setStringValue
- 
setUnescapedCssText
- 
getMinifiedCssTextDescription 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 interface- CSSValue
- Overrides:
- getMinifiedCssTextin class- StyleValue
- Parameters:
- propertyName- the property name.
- Returns:
- the minified css text.
 
- 
writeCssTextDescription copied from interface:CSSValueSerialize this value to aSimpleWriter.- Specified by:
- writeCssTextin interface- CSSValue
- Parameters:
- wri- the SimpleWriter.
- Throws:
- IOException- if an error happened while writing.
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- PrimitiveValue
 
- 
equals- Overrides:
- equalsin class- PrimitiveValue
 
- 
cloneDescription 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 interface- CSSTypedValue
- Specified by:
- clonein interface- CSSValue
- Specified by:
- clonein class- TypedValue
- Returns:
- a copy of this object.
 
- 
getCssTextDescription copied from class:StyleValueGet a string representation of the current value.- Specified by:
- getCssTextin interface- CSSValue
- Specified by:
- getCssTextin class- StyleValue
- Returns:
- the css text representing the value of this property.
 
 
-