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.link;
016    
017    /**
018     * @author Miguel Pastor
019     */
020    public abstract class InterwikiLinkNode extends LinkNode {
021    
022            public InterwikiLinkNode() {
023            }
024    
025            public InterwikiLinkNode(int token) {
026                    super(token);
027            }
028    
029            public InterwikiLinkNode(int token, String uri, String wikiName) {
030                    this(token);
031    
032                    _uri = uri;
033                    _wikiName = wikiName;
034            }
035    
036            public InterwikiLinkNode(String wikiname) {
037                    _wikiName = wikiname;
038            }
039    
040            public InterwikiLinkNode(String uri, String wikiname) {
041                    _uri = uri;
042                    _wikiName = wikiname;
043            }
044    
045            public String getUri() {
046                    return _uri;
047            }
048    
049            public String getWikiName() {
050                    return _wikiName;
051            }
052    
053            public void setUri(String uri) {
054                    _uri = uri;
055            }
056    
057            private String _uri;
058            private String _wikiName;
059    
060    }