View Javadoc
1   package org.apache.maven.doxia.module.fo;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import javax.swing.text.html.HTML.Tag;
23  
24  import org.apache.maven.doxia.markup.XmlMarkup;
25  
26  /**
27   * List of <code>FO</code> markups.
28   *
29   * @author ltheussl
30   * @version $Id$
31   * @since 1.1
32   */
33  @SuppressWarnings( "checkstyle:interfaceistype" )
34  public interface FoMarkup
35      extends XmlMarkup
36  {
37      /** FO namespace: "http://www.w3.org/1999/XSL/Format" */
38      String FO_NAMESPACE = "http://www.w3.org/1999/XSL/Format";
39  
40      // ----------------------------------------------------------------------
41      // Specific FO tags
42      // ----------------------------------------------------------------------
43  
44      /** FO tag for <code>root</code>. */
45      Tag ROOT_TAG = new Tag()
46      {
47          /** {@inheritDoc} */
48          public String toString()
49          {
50              return "root";
51          }
52      };
53  
54      /** FO tag for <code>layout-master-set</code>. */
55      Tag LAYOUT_MASTER_SET_TAG = new Tag()
56      {
57          /** {@inheritDoc} */
58          public String toString()
59          {
60              return "layout-master-set";
61          }
62      };
63  
64      /** FO tag for <code>simple-page-master</code>. */
65      Tag SIMPLE_PAGE_MASTER_TAG = new Tag()
66      {
67          /** {@inheritDoc} */
68          public String toString()
69          {
70              return "simple-page-master";
71          }
72      };
73  
74      /** FO tag for <code>region-body</code>. */
75      Tag REGION_BODY_TAG = new Tag()
76      {
77          /** {@inheritDoc} */
78          public String toString()
79          {
80              return "region-body";
81          }
82      };
83  
84      /** FO tag for <code>region-before</code>. */
85      Tag REGION_BEFORE_TAG = new Tag()
86      {
87          /** {@inheritDoc} */
88          public String toString()
89          {
90              return "region-before";
91          }
92      };
93  
94      /** FO tag for <code>region-after</code>. */
95      Tag REGION_AFTER_TAG = new Tag()
96      {
97          /** {@inheritDoc} */
98          public String toString()
99          {
100             return "region-after";
101         }
102     };
103 
104     /** FO tag for <code>static-content</code>. */
105     Tag STATIC_CONTENT_TAG = new Tag()
106     {
107         /** {@inheritDoc} */
108         public String toString()
109         {
110             return "static-content";
111         }
112     };
113 
114 
115     /** FO tag for <code>page-sequence</code>. */
116     Tag PAGE_SEQUENCE_TAG = new Tag()
117     {
118         /** {@inheritDoc} */
119         public String toString()
120         {
121             return "page-sequence";
122         }
123     };
124 
125     /** FO tag for <code>flow</code>. */
126     Tag FLOW_TAG = new Tag()
127     {
128         /** {@inheritDoc} */
129         public String toString()
130         {
131             return "flow";
132         }
133     };
134 
135     /** FO tag for <code>block</code>. */
136     Tag BLOCK_TAG = new Tag()
137     {
138         /** {@inheritDoc} */
139         public String toString()
140         {
141             return "block";
142         }
143     };
144 
145     /** FO tag for <code>list-block</code>. */
146     Tag LIST_BLOCK_TAG = new Tag()
147     {
148         /** {@inheritDoc} */
149         public String toString()
150         {
151             return "list-block";
152         }
153     };
154 
155     /** FO tag for <code>list-item</code>. */
156     Tag LIST_ITEM_TAG = new Tag()
157     {
158         /** {@inheritDoc} */
159         public String toString()
160         {
161             return "list-item";
162         }
163     };
164 
165     /** FO tag for <code>list-item-body</code>. */
166     Tag LIST_ITEM_BODY_TAG = new Tag()
167     {
168         /** {@inheritDoc} */
169         public String toString()
170         {
171             return "list-item-body";
172         }
173     };
174 
175     /** FO tag for <code>list-item-label</code>. */
176     Tag LIST_ITEM_LABEL_TAG = new Tag()
177     {
178         /** {@inheritDoc} */
179         public String toString()
180         {
181             return "list-item-label";
182         }
183     };
184 
185     /** FO tag for <code>table-and-caption</code>. */
186     Tag TABLE_AND_CAPTION_TAG = new Tag()
187     {
188         /** {@inheritDoc} */
189         public String toString()
190         {
191             return "table-and-caption";
192         }
193     };
194 
195     /** FO tag for <code>table</code>. */
196     Tag TABLE_TAG = new Tag()
197     {
198         /** {@inheritDoc} */
199         public String toString()
200         {
201             return "table";
202         }
203     };
204 
205     /** FO tag for <code>table-body</code>. */
206     Tag TABLE_BODY_TAG = new Tag()
207     {
208         /** {@inheritDoc} */
209         public String toString()
210         {
211             return "table-body";
212         }
213     };
214 
215     /** FO tag for <code>table-column</code>. */
216     Tag TABLE_COLUMN_TAG = new Tag()
217     {
218         /** {@inheritDoc} */
219         public String toString()
220         {
221             return "table-column";
222         }
223     };
224 
225     /** FO tag for <code>table-row</code>. */
226     Tag TABLE_ROW_TAG = new Tag()
227     {
228         /** {@inheritDoc} */
229         public String toString()
230         {
231             return "table-row";
232         }
233     };
234 
235     /** FO tag for <code>table-cell</code>. */
236     Tag TABLE_CELL_TAG = new Tag()
237     {
238         /** {@inheritDoc} */
239         public String toString()
240         {
241             return "table-cell";
242         }
243     };
244 
245     /** FO tag for <code>table-caption</code>. */
246     Tag TABLE_CAPTION_TAG = new Tag()
247     {
248         /** {@inheritDoc} */
249         public String toString()
250         {
251             return "table-caption";
252         }
253     };
254 
255     /** FO tag for <code>inline</code>. */
256     Tag INLINE_TAG = new Tag()
257     {
258         /** {@inheritDoc} */
259         public String toString()
260         {
261             return "inline";
262         }
263     };
264 
265     /** FO tag for <code>basic-link</code>. */
266     Tag BASIC_LINK_TAG = new Tag()
267     {
268         /** {@inheritDoc} */
269         public String toString()
270         {
271             return "basic-link";
272         }
273     };
274 
275     /** FO tag for <code>leader</code>. */
276     Tag LEADER_TAG = new Tag()
277     {
278         /** {@inheritDoc} */
279         public String toString()
280         {
281             return "leader";
282         }
283     };
284 
285     /** FO tag for <code>page-number</code>. */
286     Tag PAGE_NUMBER_TAG = new Tag()
287     {
288         /** {@inheritDoc} */
289         public String toString()
290         {
291             return "page-number";
292         }
293     };
294 
295     /** FO tag for <code>page-number-citation</code>. */
296     Tag PAGE_NUMBER_CITATION_TAG = new Tag()
297     {
298         /** {@inheritDoc} */
299         public String toString()
300         {
301             return "page-number-citation";
302         }
303     };
304 
305     /** FO tag for <code>bookmark-tree</code>. */
306     Tag BOOKMARK_TREE_TAG = new Tag()
307     {
308         /** {@inheritDoc} */
309         public String toString()
310         {
311             return "bookmark-tree";
312         }
313     };
314 
315     /** FO tag for <code>bookmark</code>. */
316     Tag BOOKMARK_TAG = new Tag()
317     {
318         /** {@inheritDoc} */
319         public String toString()
320         {
321             return "bookmark";
322         }
323     };
324 
325     /** FO tag for <code>bookmark-title</code>. */
326     Tag BOOKMARK_TITLE_TAG = new Tag()
327     {
328         /** {@inheritDoc} */
329         public String toString()
330         {
331             return "bookmark-title";
332         }
333     };
334 }