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.kernel.sourceformatter;
016    
017    import java.util.List;
018    
019    /**
020     * @author Hugo Huijser
021     */
022    public class JavaTerm {
023    
024            public JavaTerm(
025                    String name, int type, List<String> parameterTypes, String content,
026                    int lineCount) {
027    
028                    _name = name;
029                    _type = type;
030                    _parameterTypes = parameterTypes;
031                    _content = content;
032                    _lineCount = lineCount;
033            }
034    
035            public String getContent() {
036                    return _content;
037            }
038    
039            public int getLineCount() {
040                    return _lineCount;
041            }
042    
043            public String getName() {
044                    return _name;
045            }
046    
047            public List<String> getParameterTypes() {
048                    return _parameterTypes;
049            }
050    
051            public int getType() {
052                    return _type;
053            }
054    
055            public void setContent(String content) {
056                    _content = content;
057            }
058    
059            public void setLineCount(int lineCount) {
060                    _lineCount = lineCount;
061            }
062    
063            public void setName(String name) {
064                    _name = name;
065            }
066    
067            public void setParameterTypes(List<String> parameterTypes) {
068                    _parameterTypes = parameterTypes;
069            }
070    
071            public void setType(int type) {
072                    _type = type;
073            }
074    
075            private String _content;
076            private int _lineCount;
077            private String _name;
078            private List<String> _parameterTypes;
079            private int _type;
080    
081    }