Class AbstractPropertyBuilder
java.lang.Object
org.xhtmlrenderer.css.parser.property.AbstractPropertyBuilder
- All Implemented Interfaces:
PropertyBuilder
- Direct Known Subclasses:
BackgroundPropertyBuilder
,BorderPropertyBuilders.BorderSidePropertyBuilder
,BorderSpacingPropertyBuilder
,ContentPropertyBuilder
,CounterPropertyBuilder
,FontPropertyBuilder
,ListStylePropertyBuilder
,OneToFourPropertyBuilders.OneToFourPropertyBuilder
,PrimitivePropertyBuilders.BackgroundPosition
,PrimitivePropertyBuilders.BackgroundSize
,PrimitivePropertyBuilders.ColOrRowSpan
,PrimitivePropertyBuilders.FontFamily
,PrimitivePropertyBuilders.FontSize
,PrimitivePropertyBuilders.FontWeight
,PrimitivePropertyBuilders.FSPDFFontEncoding
,PrimitivePropertyBuilders.GenericBorderCornerRadius
,PrimitivePropertyBuilders.GenericBorderWidth
,PrimitivePropertyBuilders.GenericColor
,PrimitivePropertyBuilders.GenericURIWithNone
,PrimitivePropertyBuilders.Length
,PrimitivePropertyBuilders.LengthLike
,PrimitivePropertyBuilders.LengthLikeWithIdent
,PrimitivePropertyBuilders.LengthWithIdent
,PrimitivePropertyBuilders.LineHeight
,PrimitivePropertyBuilders.Page
,PrimitivePropertyBuilders.PlainInteger
,PrimitivePropertyBuilders.Position
,PrimitivePropertyBuilders.SingleIdent
,PrimitivePropertyBuilders.TextDecoration
,PrimitivePropertyBuilders.ZIndex
,QuotesPropertyBuilder
,SizePropertyBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertFoundUpToValues
(CSSName cssName, List<? extends CSSPrimitiveValue> values, int max) buildDeclarations
(CSSName cssName, List<? extends CSSPrimitiveValue> values, StylesheetInfo.Origin origin, boolean important) protected IdentValue
checkIdent
(CSSPrimitiveValue value) protected void
checkIdentLengthNumberOrPercentType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkIdentLengthOrPercentType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkIdentOrColorType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkIdentOrIntegerType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkIdentOrLengthType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkIdentOrNumberType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkIdentOrString
(CSSName cssName, CSSPrimitiveValue value) protected void
checkIdentOrURIType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkIdentType
(CSSName cssName, CSSPrimitiveValue value) protected @Nullable List<PropertyDeclaration>
checkInheritAll
(CSSName[] all, List<? extends CSSPrimitiveValue> values, StylesheetInfo.Origin origin, boolean important, boolean inheritAllowed) protected void
checkInheritAllowed
(CSSPrimitiveValue value, boolean inheritAllowed) protected void
checkInteger
(CSSName cssName, CSSPrimitiveValue value) protected void
checkLengthOrPercentType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkLengthType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkNumberType
(CSSName cssName, CSSPrimitiveValue value) protected void
checkValidity
(CSSName cssName, BitSet validValues, IdentValue value) protected PropertyDeclaration
copyOf
(PropertyDeclaration decl, CSSName newName) protected boolean
isLength
(CSSPrimitiveValue value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xhtmlrenderer.css.parser.property.PropertyBuilder
buildDeclarations
-
Constructor Details
-
AbstractPropertyBuilder
public AbstractPropertyBuilder()
-
-
Method Details
-
buildDeclarations
public List<PropertyDeclaration> buildDeclarations(CSSName cssName, List<? extends CSSPrimitiveValue> values, StylesheetInfo.Origin origin, boolean important) - Specified by:
buildDeclarations
in interfacePropertyBuilder
-
assertFoundUpToValues
protected void assertFoundUpToValues(CSSName cssName, List<? extends CSSPrimitiveValue> values, int max) -
checkIdentType
-
checkIdentOrURIType
-
checkIdentOrColorType
-
checkIdentOrIntegerType
-
checkInteger
-
checkIdentOrLengthType
-
checkIdentOrNumberType
-
checkIdentLengthOrPercentType
-
checkLengthOrPercentType
-
checkLengthType
-
checkNumberType
-
checkIdentOrString
-
checkIdentLengthNumberOrPercentType
-
isLength
-
checkValidity
-
checkIdent
-
copyOf
-
checkInheritAllowed
-
checkInheritAll
protected @Nullable List<PropertyDeclaration> checkInheritAll(CSSName[] all, List<? extends CSSPrimitiveValue> values, StylesheetInfo.Origin origin, boolean important, boolean inheritAllowed)
-