001    /**
002     * Copyright (c) 2000-2011 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.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    }