1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements.  See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License.  You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 /* $Id: TableBody.java 1465599 2013-04-08 11:51:52Z vhennebert $ */
19 
20 package org.apache.fop.fo.flow.table;
21 
22 import org.apache.fop.apps.FOPException;
23 import org.apache.fop.fo.FONode;
24 
25 /**
26  * Class modelling the <a href="http://www.w3.org/TR/xsl/#fo_table-body">
27  * <code>fo:table-body</code></a> object.
28  */
29 public class TableBody extends TablePart {
30 
31     /**
32      * Create a TableBody instance with the given {@link FONode}
33      * as parent.
34      * @param parent FONode that is the parent of the object
35      */
TableBody(FONode parent)36     public TableBody(FONode parent) {
37         super(parent);
38     }
39 
40     /** {@inheritDoc} */
startOfNode()41     public void startOfNode() throws FOPException {
42         super.startOfNode();
43         getFOEventHandler().startBody(this);
44     }
45 
46     /** {@inheritDoc} */
endOfNode()47     public void endOfNode() throws FOPException {
48         super.endOfNode();
49         getFOEventHandler().endBody(this);
50     }
51 
52     /** {@inheritDoc} */
getLocalName()53     public String getLocalName() {
54         return "table-body";
55     }
56 
57     /**
58      * {@inheritDoc}
59      * @return {@link org.apache.fop.fo.Constants#FO_TABLE_BODY}
60      */
getNameId()61     public int getNameId() {
62         return FO_TABLE_BODY;
63     }
64 }
65