DTDDoc
Class CommentParser

java.lang.Object
  extended by DTDDoc.CommentParser

public class CommentParser
extends java.lang.Object

This class contains several tools used for parsing javadoc-like comments (tags) appearing in XML comments.

Such a comment is made of text and "tags". A tag is a \@ immediately followed by a word and preceeded by at least a space. This function will return a map that associate tags to their text. The text associated to a tag is the one that follows it and that precedes the next tag or the end of the comment. The text that appears before the first tag will automatically associated to the "comment" tag.

Right now, only "attr" tag can appear multiple times : other tags can appear once and only once!

It is guaranteed that there are no spaces at the beginning or at the end of the tag's value.

Author:
Stefan Champailler
See Also:
getUniqueTagValue(String), getMultipleTagValue(String)

Constructor Summary
CommentParser(com.wutka.dtd.DTDComment comment, Logger log, boolean getAroundNetBeanComments)
           
 
Method Summary
 java.util.Map getMultipleTagValue(java.lang.String tagName)
           
 java.lang.String getUniqueTagValue(java.lang.String tagName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentParser

public CommentParser(com.wutka.dtd.DTDComment comment,
                     Logger log,
                     boolean getAroundNetBeanComments)
Method Detail

getUniqueTagValue

public java.lang.String getUniqueTagValue(java.lang.String tagName)

getMultipleTagValue

public java.util.Map getMultipleTagValue(java.lang.String tagName)


Copyright © 2002-2008 DTDDoc. All Rights Reserved.