[Htmlparser-cvs] htmlparser/src/org/htmlparser/lexer/nodes TagNode.java,1.33,1.34
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2004-04-06 11:04:47
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19036 Modified Files: TagNode.java Log Message: Documentation modifications requested by Leos Literak via htmlparser-user mail list. Index: TagNode.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/nodes/TagNode.java,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** TagNode.java 20 Mar 2004 17:03:53 -0000 1.33 --- TagNode.java 6 Apr 2004 10:51:57 -0000 1.34 *************** *** 54,57 **** --- 54,59 ---- * The tag attributes. * Objects of type {@link Attribute}. + * The first element is the tag name, subsequent elements being either + * whitespace or real attributes. */ protected Vector mAttributes; *************** *** 280,283 **** --- 282,287 ---- * @param attribs The attribute collection to set. * Each element is an {@link Attribute Attribute}. + * The first attribute in the list must be the tag name ( + * <code>isStandalone()</code> returns <code>true</code>). */ public void setAttributeEx (Attribute attribute) *************** *** 341,344 **** --- 345,350 ---- * Gets the attributes in the tag. * @return Returns the list of {@link Attribute Attributes} in the tag. + * The first element is the tag name, subsequent elements being either + * whitespace or real attributes. */ public Vector getAttributesEx () *************** *** 491,494 **** --- 497,502 ---- /** * Sets the attributes. + * A special entry with a key of SpecialHashtable.TAGNAME ("$<TAGNAME>$") + * sets the tag name. * @param attributes The attribute collection to set. */ *************** *** 583,586 **** --- 591,598 ---- } + /** + * Parses the given text to create the tag contents. + * @param text A string of the form <TAGNAME xx="yy">. + */ public void setText (String text) { *************** *** 648,652 **** /** ! * Print the contents of the tag */ public String toString () --- 660,665 ---- /** ! * Print the contents of the tag. ! * @return An string describing the tag. For text that looks like HTML use #toHtml(). */ public String toString () |