|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.preprocess.css.CssBlock
public class CssBlock
Interpretes a single CSS block.
A block can consist of a single style or of the colors, borders, backgrounds or fonts-definition.
Copyright Enough Software 2004 - 2008
history
02-Mar-2004 - rob creation
| Field Summary | |
|---|---|
protected static String |
ATTRIBUTE_NAME_STR
|
protected static String |
ATTRIBUTE_SELECTOR_STR
|
protected static String |
ATTRIBUTE_VALUE_STR
|
protected static Pattern |
INNER_BLOCK_PATTERN
|
| Constructor Summary | |
|---|---|
CssBlock(String cssCode)
Creates a new CSS Block |
|
| Method Summary | |
|---|---|
CssDeclarationBlock[] |
getDeclarationBlocks()
Retrieves all CSS declaration blocks embedded in this block |
List |
getDeclarationBlocksAsList()
Retrieves all CSS declaration blocks embedded in this block |
HashMap |
getDeclarationsMap()
|
AttributesGroup |
getGroupDeclarations(String groupName)
Retrieves the declarations for the specific group. |
String[] |
getGroupNames()
Retrieves the names of all found groups like "font" or "background" |
String |
getSelector()
|
void |
setSelector(String styleName)
Sets the selector for this block |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String ATTRIBUTE_NAME_STR
protected static final String ATTRIBUTE_SELECTOR_STR
protected static final String ATTRIBUTE_VALUE_STR
protected static final Pattern INNER_BLOCK_PATTERN
| Constructor Detail |
|---|
public CssBlock(String cssCode)
cssCode - the CSS code of this block.
BuildException - when the code contains errors.| Method Detail |
|---|
public String getSelector()
public HashMap getDeclarationsMap()
public String[] getGroupNames()
public AttributesGroup getGroupDeclarations(String groupName)
groupName - the name of the group.
public void setSelector(String styleName)
styleName - the streamlined selector namepublic CssDeclarationBlock[] getDeclarationBlocks()
public List getDeclarationBlocksAsList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||