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
public abstract class AbstractPropertyBuilder extends java.lang.Object implements PropertyBuilder
-
-
Constructor Summary
Constructors Constructor Description AbstractPropertyBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PropertyDeclaration>
buildDeclarations(CSSName cssName, java.util.List<PropertyValue> values, int origin, boolean important)
protected void
checkAngleType(CSSName cssName, CSSPrimitiveValue value)
protected void
checkForbidInherit(CSSPrimitiveValue value)
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 java.util.List<PropertyDeclaration>
checkInheritAll(CSSName[] all, java.util.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, java.util.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
-
-
-
-
Method Detail
-
buildDeclarations
public java.util.List<PropertyDeclaration> buildDeclarations(CSSName cssName, java.util.List<PropertyValue> values, int origin, boolean important)
- Specified by:
buildDeclarations
in interfacePropertyBuilder
-
checkValueCount
protected void checkValueCount(CSSName cssName, int expected, int found)
-
checkValueCount
protected void checkValueCount(CSSName cssName, int min, int max, int found)
-
checkIdentType
protected void checkIdentType(CSSName cssName, CSSPrimitiveValue value)
-
checkIdentOrURIType
protected void checkIdentOrURIType(CSSName cssName, CSSPrimitiveValue value)
-
checkIdentOrColorType
protected void checkIdentOrColorType(CSSName cssName, CSSPrimitiveValue value)
-
checkIdentOrIntegerType
protected void checkIdentOrIntegerType(CSSName cssName, CSSPrimitiveValue value)
-
checkInteger
protected void checkInteger(CSSName cssName, CSSPrimitiveValue value)
-
checkIdentOrLengthType
protected void checkIdentOrLengthType(CSSName cssName, CSSPrimitiveValue value)
-
checkIdentOrNumberType
protected void checkIdentOrNumberType(CSSName cssName, CSSPrimitiveValue value)
-
checkIdentLengthOrPercentType
protected void checkIdentLengthOrPercentType(CSSName cssName, CSSPrimitiveValue value)
-
checkLengthOrPercentType
protected void checkLengthOrPercentType(CSSName cssName, CSSPrimitiveValue value)
-
checkLengthType
protected void checkLengthType(CSSName cssName, CSSPrimitiveValue value)
-
checkNumberType
protected void checkNumberType(CSSName cssName, CSSPrimitiveValue value)
-
checkAngleType
protected void checkAngleType(CSSName cssName, CSSPrimitiveValue value)
-
checkIdentOrString
protected void checkIdentOrString(CSSName cssName, CSSPrimitiveValue value)
-
checkIdentLengthNumberOrPercentType
protected void checkIdentLengthNumberOrPercentType(CSSName cssName, CSSPrimitiveValue value)
-
isLength
protected boolean isLength(CSSPrimitiveValue value)
-
isLengthHelper
public static boolean isLengthHelper(CSSPrimitiveValue value)
-
checkValidity
protected void checkValidity(CSSName cssName, java.util.BitSet validValues, IdentValue value)
-
checkIdent
protected IdentValue checkIdent(CSSName cssName, CSSPrimitiveValue value)
-
copyOf
protected PropertyDeclaration copyOf(PropertyDeclaration decl, CSSName newName)
-
checkInheritAllowed
protected void checkInheritAllowed(CSSPrimitiveValue value, boolean inheritAllowed)
-
checkForbidInherit
protected void checkForbidInherit(CSSPrimitiveValue value)
-
checkInheritAll
protected java.util.List<PropertyDeclaration> checkInheritAll(CSSName[] all, java.util.List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed)
-
-