001 /* 002 * Copyright (C) 2006-2007 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 package org.codehaus.gmaven.runtime.support.stubgen.model; 018 019 import java.util.LinkedHashSet; 020 import java.util.Set; 021 022 /** 023 * Representation of Javadoc definition. 024 * 025 * @version $Id: JavaDocDef.java 18 2009-07-16 09:39:40Z user57 $ 026 * @author <a href="mailto:jason@planet57.com">Jason Dillon</a> 027 */ 028 public class JavaDocDef 029 extends Element 030 { 031 private String comment; 032 033 private final Set tags = new LinkedHashSet(); 034 035 public JavaDocDef() {} 036 037 public JavaDocDef(final String comment) { 038 setComment(comment); 039 } 040 041 public String getComment() { 042 return comment; 043 } 044 045 public void setComment(final String comment) { 046 this.comment = comment; 047 } 048 049 public void addTag(final TagDef tag) { 050 assert tag != null; 051 052 tags.add(tag); 053 } 054 055 public Set getTags() { 056 return tags; 057 } 058 }