001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.parsers.creole.ast.extension;
016    
017    import com.liferay.portal.parsers.creole.ast.ASTNode;
018    import com.liferay.portal.parsers.creole.visitor.ASTVisitor;
019    
020    /**
021     * @author Miguel Pastor
022     */
023    public class TableOfContentsNode extends ASTNode {
024    
025            public TableOfContentsNode() {
026            }
027    
028            public TableOfContentsNode(int token) {
029                    super(token);
030            }
031    
032            public TableOfContentsNode(int token, String title) {
033                    super(token);
034                    _title = title;
035            }
036    
037            @Override
038            public void accept(ASTVisitor astVisitor) {
039                    astVisitor.visit(this);
040            }
041    
042            public String getTitle() {
043                    return _title;
044            }
045    
046            public void setTitle(String _title) {
047                    this._title = _title;
048            }
049    
050            private String _title;
051    
052    }