001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }