public class RuleFactoryImpl extends Object implements RuleFactory
| Modifier and Type | Method and Description |
|---|---|
Selector.ElementAttribute |
createAttribute(String value,
boolean isStringValue,
Selector.Operator operator,
String attribute)
Creates CSS selector part, element attribute
|
Selector.ElementClass |
createClass(String className)
Creates CSS selector part, element class
|
CombinedSelector |
createCombinedSelector()
Creates CSS combined selector, collection of (simple) selectors
|
Declaration |
createDeclaration()
Creates CSS declaration
|
Declaration |
createDeclaration(Declaration clone)
Creates CSS declaration by shallow cloning
|
Selector.ElementName |
createElement(String elementName)
Creates CSS selector part, element name
|
Selector.ElementDOM |
createElementDOM(Element e,
boolean inlinePriority)
Creates CSS selector part, element DOM node
|
RuleFontFace |
createFontFace()
Creates CSS named font
|
Selector.ElementID |
createID(String id)
Creates CSS selector part, element id
|
RuleImport |
createImport()
Deprecated.
|
KeyframeBlock |
createKeyframeBlock()
Creates a new keyframe block
|
RuleKeyframes |
createKeyframes()
Creates a new keyframes rule
|
RuleMargin |
createMargin(String area)
Creates CSS margin rule
|
RuleMedia |
createMedia()
Creates CSS media page
|
MediaExpression |
createMediaExpression()
Creates a new CSS media query expression.
|
MediaQuery |
createMediaQuery()
Creates a CSS media query
|
RulePage |
createPage()
Creates CSS named page
|
Selector.PseudoClass |
createPseudoClass(String name)
Creates CSS selector part, pseudo-class
|
Selector.PseudoClass |
createPseudoClass(String name,
Selector nestedSelector)
Creates CSS selector part, pseudo-class
|
Selector.PseudoClass |
createPseudoClass(String name,
String functionValue)
Creates CSS selector part, pseudo-class
|
Selector.PseudoElement |
createPseudoElement(String name)
Creates CSS selector part, pseudo-element
|
Selector.PseudoElement |
createPseudoElement(String name,
Selector nestedSelector)
Creates CSS selector part, pseudo-element
|
Selector.PseudoElement |
createPseudoElement(String name,
String functionValue)
Creates CSS selector part, pseudo-element
|
Selector.PseudoPage |
createPseudoPage(String name)
Creates CSS selector part, page at-rule pseudo-class
|
Selector |
createSelector()
Creates CSS selector
|
RuleSet |
createSet()
Creates CSS rule set, that is collection of CSS declarations
with collection of CSS combined selectors.
|
StyleSheet |
createStyleSheet()
Creates CSS author style sheet
|
StyleSheet |
createStyleSheet(StyleSheet.Origin origin)
Creates CSS author style sheet with the given origin.
|
RuleViewport |
createViewport()
Creates CSS viewport rule.
|
static RuleFactory |
getInstance() |
public static final RuleFactory getInstance()
public Declaration createDeclaration()
RuleFactorycreateDeclaration in interface RuleFactorypublic Declaration createDeclaration(Declaration clone)
RuleFactorycreateDeclaration in interface RuleFactoryclone - Source@Deprecated public RuleImport createImport()
RuleFactorycreateImport in interface RuleFactorypublic RuleMedia createMedia()
RuleFactorycreateMedia in interface RuleFactorypublic MediaQuery createMediaQuery()
RuleFactorycreateMediaQuery in interface RuleFactorypublic MediaExpression createMediaExpression()
RuleFactorycreateMediaExpression in interface RuleFactorypublic RuleKeyframes createKeyframes()
RuleFactorycreateKeyframes in interface RuleFactorypublic KeyframeBlock createKeyframeBlock()
RuleFactorycreateKeyframeBlock in interface RuleFactorypublic RulePage createPage()
RuleFactorycreatePage in interface RuleFactorypublic RuleMargin createMargin(String area)
RuleFactorycreateMargin in interface RuleFactoryarea - Margin areapublic RuleViewport createViewport()
RuleFactorycreateViewport in interface RuleFactorypublic RuleFontFace createFontFace()
RuleFactorycreateFontFace in interface RuleFactorypublic CombinedSelector createCombinedSelector()
RuleFactorycreateCombinedSelector in interface RuleFactorypublic RuleSet createSet()
RuleFactorycreateSet in interface RuleFactorypublic Selector createSelector()
RuleFactorycreateSelector in interface RuleFactorypublic Selector.ElementAttribute createAttribute(String value, boolean isStringValue, Selector.Operator operator, String attribute)
RuleFactorycreateAttribute in interface RuleFactoryvalue - Value of attributeisStringValue - Value given is string or identifieroperator - Operator between value and attributeattribute - Name of attributepublic Selector.ElementClass createClass(String className)
RuleFactorycreateClass in interface RuleFactoryclassName - Name of classpublic Selector.ElementName createElement(String elementName)
RuleFactorycreateElement in interface RuleFactoryelementName - Name of elementpublic Selector.ElementDOM createElementDOM(Element e, boolean inlinePriority)
RuleFactorycreateElementDOM in interface RuleFactorye - Element nodeinlinePriority - true means that the selector has an inline prioritypublic Selector.ElementID createID(String id)
RuleFactorycreateID in interface RuleFactoryid - ID of elementpublic Selector.PseudoPage createPseudoPage(String name)
RuleFactorycreatePseudoPage in interface RuleFactoryname - Name of pseudo-classpublic Selector.PseudoElement createPseudoElement(String name)
RuleFactorycreatePseudoElement in interface RuleFactoryname - Name of pseudo-elementpublic Selector.PseudoElement createPseudoElement(String name, String functionValue)
RuleFactorycreatePseudoElement in interface RuleFactoryname - Name of pseudo-elementfunctionValue - Value of its function argumentpublic Selector.PseudoElement createPseudoElement(String name, Selector nestedSelector)
RuleFactorycreatePseudoElement in interface RuleFactoryname - Name of pseudo-elementnestedSelector - Selector in its function argumentpublic Selector.PseudoClass createPseudoClass(String name)
RuleFactorycreatePseudoClass in interface RuleFactoryname - Name of pseudo-classpublic Selector.PseudoClass createPseudoClass(String name, String functionValue)
RuleFactorycreatePseudoClass in interface RuleFactoryname - Name of pseudo-classfunctionValue - Value of its function argumentpublic Selector.PseudoClass createPseudoClass(String name, Selector nestedSelector)
RuleFactorycreatePseudoClass in interface RuleFactoryname - Name of pseudo-classnestedSelector - Selector in its function argumentpublic StyleSheet createStyleSheet()
RuleFactorycreateStyleSheet in interface RuleFactorypublic StyleSheet createStyleSheet(StyleSheet.Origin origin)
RuleFactorycreateStyleSheet in interface RuleFactoryorigin - the origin of the style sheet.Copyright © 2019. All rights reserved.