| Package | Description |
|---|---|
| cz.vutbr.web.css | |
| cz.vutbr.web.domassign |
| Modifier and Type | Method and Description |
|---|---|
static <T extends CSSProperty> |
CSSProperty.Translator.createInherit(Class<T> type)
Creates "inherit" instance
|
<T extends CSSProperty> |
NodeData.getProperty(String name)
Returns property of given name and supposed type.
|
<T extends CSSProperty> |
NodeData.getProperty(String name,
boolean includeInherited)
Returns property of given name and supposed type.
|
static <T extends CSSProperty> |
CSSProperty.Translator.valueOf(Class<T> type,
String value)
Retrieves CSSProperty by its name and class
|
| Modifier and Type | Method and Description |
|---|---|
CSSProperty |
SupportedCSS.getDefaultProperty(String propertyName)
Return default value of CSSProperty under given name
|
| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends CSSProperty> |
Repeater.type
Which property is used to repeat
|
protected List<Class<? extends CSSProperty>> |
Variator.types |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdent(Class<T> type,
Declaration d,
Map<String,CSSProperty> properties)
Processes declaration which is supposed to contain one identification
term
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrColor(Class<T> type,
T colorIdentification,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Processes declaration which is supposed to contain one identification
term or one TermColor
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrInteger(Class<T> type,
T integerIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrIntegerOrNumber(Class<T> type,
T integerIdentification,
T numberIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrLength(Class<T> type,
T lengthIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends Enum<T> & CSSProperty> |
DeclarationTransformer.genericOneIdentOrLengthOrPercent(Class<T> type,
T lengthIdentification,
T percentIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends CSSProperty> |
DeclarationTransformer.genericProperty(Class<T> type,
TermIdent term,
boolean avoidInherit,
Map<String,CSSProperty> properties,
String propertyName)
Converts TermIdent into value of enum of given class and stores it into
properties map under key property
|
<T extends CSSProperty> |
DeclarationTransformer.genericPropertyRaw(Class<T> type,
Set<T> intersection,
TermIdent term)
Converts TermIdent into CSSProperty using intersection set.
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTerm(Class<? extends Term<?>> termType,
Term<?> term,
String propertyName,
T typeIdentification,
boolean sanify,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Check whether given declaration contains one term of given type.
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermColor(Term<?> term,
String propertyName,
T colorIdentification,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Converts term into Color and stored values and types in maps
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermIdent(Class<T> type,
Term<?> term,
boolean avoidInherit,
String propertyName,
Map<String,CSSProperty> properties)
Converts TermIdent into value of CSSProperty for given class
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermLength(Term<?> term,
String propertyName,
T lengthIdentification,
boolean sanify,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Converts term into TermLength and stores values and types in maps
|
protected <T extends Enum<T> & CSSProperty> |
DeclarationTransformer.genericTwoIdentsOrLengthsOrPercents(Class<T> type,
T listIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
<T extends CSSProperty> |
SingleMapNodeData.getProperty(String name) |
<T extends CSSProperty> |
QuadrupleMapNodeData.getProperty(String name) |
<T extends CSSProperty> |
SingleMapNodeData.getProperty(String name,
boolean includeInherited) |
<T extends CSSProperty> |
QuadrupleMapNodeData.getProperty(String name,
boolean includeInherited) |
| Modifier and Type | Method and Description |
|---|---|
CSSProperty |
SupportedCSS3.getDefaultProperty(String property) |
CSSProperty |
SupportedCSS21.getDefaultProperty(String property) |
| Modifier and Type | Method and Description |
|---|---|
void |
Variator.assignDefaults(Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Assigns the default values to all the properties.
|
void |
Repeater.assignDefaults(Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Assigns the default values to all the properties.
|
protected boolean |
Variator.checkInherit(int variant,
Term<?> term,
Map<String,CSSProperty> properties)
Solves variant which leads to
inherit CSS Property value. |
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdent(Class<T> type,
Declaration d,
Map<String,CSSProperty> properties)
Processes declaration which is supposed to contain one identification
term
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrColor(Class<T> type,
T colorIdentification,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Processes declaration which is supposed to contain one identification
term or one TermColor
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrInteger(Class<T> type,
T integerIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrIntegerOrNumber(Class<T> type,
T integerIdentification,
T numberIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrLength(Class<T> type,
T lengthIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends Enum<T> & CSSProperty> |
DeclarationTransformer.genericOneIdentOrLengthOrPercent(Class<T> type,
T lengthIdentification,
T percentIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends CSSProperty> |
DeclarationTransformer.genericProperty(Class<T> type,
TermIdent term,
boolean avoidInherit,
Map<String,CSSProperty> properties,
String propertyName)
Converts TermIdent into value of enum of given class and stores it into
properties map under key property
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTerm(Class<? extends Term<?>> termType,
Term<?> term,
String propertyName,
T typeIdentification,
boolean sanify,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Check whether given declaration contains one term of given type.
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermColor(Term<?> term,
String propertyName,
T colorIdentification,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Converts term into Color and stored values and types in maps
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermIdent(Class<T> type,
Term<?> term,
boolean avoidInherit,
String propertyName,
Map<String,CSSProperty> properties)
Converts TermIdent into value of CSSProperty for given class
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermLength(Term<?> term,
String propertyName,
T lengthIdentification,
boolean sanify,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Converts term into TermLength and stores values and types in maps
|
protected <T extends Enum<T> & CSSProperty> |
DeclarationTransformer.genericTwoIdentsOrLengthsOrPercents(Class<T> type,
T listIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected abstract boolean |
Repeater.operation(int iteration,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Repeating operation
|
boolean |
DeclarationTransformer.parseDeclaration(Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Core function.
|
boolean |
Repeater.repeat(Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Repeats operations on terms
|
boolean |
Repeater.repeatOverFourTermDeclaration(Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Construct terms array to be used by repeated object from available terms
(in size 1 to 4) according to CSS rules.
|
boolean |
Variator.tryMultiTermVariant(int variant,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values,
Term<?>... terms)
Uses variator functionality to test selected variant on more terms.
|
boolean |
Variator.tryOneTermVariant(int variant,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Uses variator functionality to test selected variant on term
|
protected abstract boolean |
Variator.variant(int variant,
Variator.IntegerRef iteration,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
This function contains parsing block for variants
|
boolean |
Variator.vary(Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Test all terms
|
Copyright © 2014. All rights reserved.