Package org.xhtmlrenderer.css.constants
Class Idents
java.lang.Object
org.xhtmlrenderer.css.constants.Idents
Booch utility class for working with ident values in CSS.
- Author:
- Patrick Wright
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertIdent(CSSName cssName, String ident) static StringgetColorHex(String value) Given a String, returns either the rgb declaration for the color, or the hex declaration; used to clean up assignments like "red" or "green".static booleanstatic booleanstatic booleanlooksLikeABGRepeat(String val) static booleanstatic booleanlooksLikeAColor(String val) static booleanlooksLikeAFontSize(String val) static booleanstatic booleanstatic booleanstatic booleanlooksLikeAFunction(String value) static booleanlooksLikeALength(String val) static booleanstatic booleanstatic booleanstatic booleanstatic booleanlooksLikeANumber(String val) static booleanlooksLikeAQuote(String content) static booleanlooksLikeASkipQuote(String content) static booleanlooksLikeAURI(String val)
-
Constructor Details
-
Idents
public Idents()
-
-
Method Details
-
convertIdent
-
looksLikeABorderStyle
-
looksLikeAColor
-
looksLikeALength
-
looksLikeAURI
-
looksLikeAFunction
-
looksLikeABGRepeat
-
looksLikeABGAttachment
-
looksLikeABGPosition
-
looksLikeAListStyleType
-
looksLikeAListStyleImage
-
looksLikeAListStylePosition
-
looksLikeAFontStyle
-
looksLikeAFontVariant
-
looksLikeAFontWeight
-
looksLikeAFontSize
-
looksLikeALineHeight
-
looksLikeANumber
-
getColorHex
Given a String, returns either the rgb declaration for the color, or the hex declaration; used to clean up assignments like "red" or "green".- Parameters:
value- A String which contains a Color identifier, an rgb assignment or a Color hex value.- Returns:
- The colorHex value
-
looksLikeAQuote
-
looksLikeASkipQuote
-