pbwest 2003/01/23 19:23:31
Modified:src/documentation/content/design/alt.design/properties
propertyExpressions.html
Log:
Modified text and links.
Revision ChangesPath
1.2 +54 -95
xml-fop/src/documentation/content/design/alt.design/properties/propertyExpressions.html
Index: propertyExpressions.html
===
RCS file:
/home/cvs/xml-fop/src/documentation/content/design/alt.design/properties/propertyExpressions.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- propertyExpressions.html 20 Jan 2003 14:56:34 - 1.1
+++ propertyExpressions.html 24 Jan 2003 03:23:31 - 1.2
@@ -3,18 +3,7 @@
Property Expression Parsing
-
- body {
- font-family: Verdana, Helvetica, sans-serif;
- }
-
- .note { border: solid 1px #7099C5; background-color: #f0f0ff; }
- .note .label { background-color: #7099C5; color: #ff; }
- .content {
- padding: 5px 5px 5px 10px;
- font : Verdana, Helvetica, sans-serif; font-size : 90%;
- }
-
+
@@ -46,19 +35,19 @@
closely related classes: org.apache.fop.fo.expr.PropertyTokenizer
+class= "codefrag" >org.apache.fop.fo.expr.PropertyTokenizer
and its subclass, org.apache.fop.fo.expr.PropertyParser,
+class= "codefrag" >org.apache.fop.fo.expr.PropertyParser,
and by refineParsing(int, FONode,
PropertyValue) methods in the individual property
-classes. PropertyTokenizer, as
+classes. PropertyTokenizer, as
the name suggests, handles the tokenizing of the expression,
handing tokens back to
its subclass, PropertyParser. PropertyParser, in turn, returns a PropertyParser. PropertyParser, in turn, returns a PropertyValueList, a list of
The tokenizer and parser rely in turn on the datatype
definitions from the org.apache.fop.datatypes package,
+class= "codefrag" >org.apache.fop.datatypes package,
which include the PropertyValue datatype constant definitions.
@@ -78,7 +67,7 @@
Data types
The data types currently defined in
-org.apache.fop.datatypes include:
+org.apache.fop.datatypes include:
@@ -236,13 +225,13 @@
-MappedEnumType
+MappedNumeric
A subclass of EnumType. Maintains a
- String with the value to which the associated
+ Numeric with the value to which the associated
"raw" enumeration token maps. E.g., the
font-size enumeration value "medium" maps to
- the String "12pt".
+ the Numeric "12pt".
@@ -334,57 +323,23 @@
Tokenizer
-The tokenizer returns one of the following token
-values:
-
-
- static final int
- EOF = 0
- ,NCNAME = 1
- ,MULTIPLY = 2
- ,LPAR = 3
- ,RPAR = 4
- ,LITERAL = 5
- ,FUNCTION_LPAR = 6
- ,PLUS = 7
- ,MINUS = 8
- ,MOD = 9
- ,DIV = 10
- ,COMMA = 11
- ,PERCENT = 12
- ,COLORSPEC = 13
- ,FLOAT = 14
- ,INTEGER = 15
- ,ABSOLUTE_LENGTH = 16
- ,RELATIVE_LENGTH = 17
- ,TIME = 18
- ,FREQ = 19
- ,ANGLE = 20
- ,INHERIT = 21
- ,AUTO = 22
- ,NONE = 23
- ,BOOL = 24
- ,URI = 25
- ,MIMETYPE = 26
- // NO_UNIT is a transient token for internal use only. It is
- // never set as the end result of parsing a token.
- ,NO_UNIT = 27
- ;
-
-
-Most of these tokens are self-explanatory, but a few need
-further comment.
+As mentioned above, the PropertyTokenizer hands tokens back to its subclass, PropertyParser. Most of these tokens are
+self-explanatory, but a few need further comment.
AUTO
- Because of its frequency of occurrence, and the fact that
- it is always the initial value for any property
- which supports it, AUTO has been promoted into a
- pseudo-type with its on datatype class. Therefore, it is
- also reported as a token.
+ Because of its frequency of occurrence, and the fact that it
+ is always the initial value for any property which
+ supports it, AUTO has been promoted into a pseudo-type