Class AbstractPropertyBuilder
java.lang.Object
com.openhtmltopdf.css.parser.property.AbstractPropertyBuilder
- All Implemented Interfaces:
PropertyBuilder
- Direct Known Subclasses:
BackgroundPropertyBuilder
,BorderPropertyBuilders.BorderSidePropertyBuilder
,BorderSpacingPropertyBuilder
,ContentPropertyBuilder
,CounterPropertyBuilder
,FontPropertyBuilder
,ListStylePropertyBuilder
,OneToFourPropertyBuilders.OneToFourPropertyBuilder
,PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder
,PrimitivePropertyBuilders.ColOrRowSpan
,PrimitivePropertyBuilders.ColumnCount
,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.TransformOriginPropertyBuilder
,PrimitivePropertyBuilders.TransformOriginX
,PrimitivePropertyBuilders.TransformOriginY
,PrimitivePropertyBuilders.TransformPropertyBuilder
,PrimitivePropertyBuilders.ZIndex
,QuotesPropertyBuilder
,SizePropertyBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDeclarations
(CSSName cssName, List<PropertyValue> values, int origin, boolean important) protected void
checkAngleType
(CSSName cssName, CSSPrimitiveValue value) protected void
protected IdentValue
checkIdent
(CSSName cssName, 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 List
<PropertyDeclaration> checkInheritAll
(CSSName[] all, List<PropertyValue> values, int 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 void
checkValueCount
(CSSName cssName, int expected, int found) protected void
checkValueCount
(CSSName cssName, int min, int max, int found) protected PropertyDeclaration
copyOf
(PropertyDeclaration decl, CSSName newName) protected boolean
isLength
(CSSPrimitiveValue value) static boolean
isLengthHelper
(CSSPrimitiveValue value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.openhtmltopdf.css.parser.property.PropertyBuilder
buildDeclarations
-
Constructor Details
-
AbstractPropertyBuilder
public AbstractPropertyBuilder()
-
-
Method Details
-
buildDeclarations
public List<PropertyDeclaration> buildDeclarations(CSSName cssName, List<PropertyValue> values, int origin, boolean important) - Specified by:
buildDeclarations
in interfacePropertyBuilder
-
checkValueCount
-
checkValueCount
-
checkIdentType
-
checkIdentOrURIType
-
checkIdentOrColorType
-
checkIdentOrIntegerType
-
checkInteger
-
checkIdentOrLengthType
-
checkIdentOrNumberType
-
checkIdentLengthOrPercentType
-
checkLengthOrPercentType
-
checkLengthType
-
checkNumberType
-
checkAngleType
-
checkIdentOrString
-
checkIdentLengthNumberOrPercentType
-
isLength
-
isLengthHelper
-
checkValidity
-
checkIdent
-
copyOf
-
checkInheritAllowed
-
checkForbidInherit
-
checkInheritAll
protected List<PropertyDeclaration> checkInheritAll(CSSName[] all, List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed)
-