Class JavaDocData
- java.lang.Object
- 
- org.codehaus.mojo.jaxb2.schemageneration.postprocessing.javadoc.JavaDocData
 
- 
 public class JavaDocData extends Object Simplified structure containing comments and tags read from a JavaDoc comment block.- Since:
- 2.0
- Author:
- Lennart Jörelid, jGuru Europe AB
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringNO_COMMENTSubstitution value for when no JavaDoc comment text was found within a JavaDoc comment block.
 - 
Constructor SummaryConstructors Constructor Description JavaDocData(String comment, List<com.thoughtworks.qdox.model.DocletTag> tags)Creates a JavaDocData for a particular entry with the supplied JavaDoc comment and List of DocletTags.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComment()Retrieves the comment/text in the JavaDoc structure, minus the names and values of any given JavaDoc tags.SortedMap<String,String>getTag2ValueMap()Retrieves the names and values of all JavaDoc tags found.StringtoString()
 
- 
- 
- 
Field Detail- 
NO_COMMENTpublic static final String NO_COMMENT Substitution value for when no JavaDoc comment text was found within a JavaDoc comment block.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
JavaDocDatapublic JavaDocData(String comment, List<com.thoughtworks.qdox.model.DocletTag> tags) Creates a JavaDocData for a particular entry with the supplied JavaDoc comment and List of DocletTags.- Parameters:
- comment- The actual comment in the JavaDoc. Null values are replaced with the value- NO_COMMENT, to ensure that the- getComment()method does not return null values.
- tags- The DocletTags of the JavaDoc entry. Can be null or empty.
 
 
- 
 - 
Method Detail- 
getCommentpublic String getComment() Retrieves the comment/text in the JavaDoc structure, minus the names and values of any given JavaDoc tags.- Returns:
- the comment/text in the JavaDoc structure, or NO_COMMENTif no JavaDoc was provided. Never returns anullvalue.
 
 - 
getTag2ValueMappublic SortedMap<String,String> getTag2ValueMap() Retrieves the names and values of all JavaDoc tags found. If two tags were found (such as two@authortags, the value contains all found- Returns:
- A non-null Map relating the names of all supplied JavaDoc Tags to their value(s).
 
 
- 
 
-