[Htmlparser-cvs] htmlparser/src/org/htmlparser/tags/data CompositeTagData.java,1.29,1.30 FormData.ja
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-09-03 23:36:53
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/data In directory sc8-pr-cvs1:/tmp/cvs-serv31228/tags/data Modified Files: CompositeTagData.java FormData.java LinkData.java TagData.java Log Message: Change tabs to spaces in all source files. Index: CompositeTagData.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/data/CompositeTagData.java,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** CompositeTagData.java 24 Aug 2003 21:59:42 -0000 1.29 --- CompositeTagData.java 3 Sep 2003 23:36:20 -0000 1.30 *************** *** 34,69 **** public class CompositeTagData { ! private Tag startTag; ! private Tag endTag; ! private NodeList children; ! ! public CompositeTagData( ! Tag startTag, Tag endTag, NodeList children) { ! this.startTag = startTag; ! this.endTag = endTag; ! this.children = new NodeList(); ! if (children!=null) ! for (SimpleNodeIterator i = children.elements();i.hasMoreNodes();) { ! this.children.add(i.nextNode()); ! } ! } ! public NodeList getChildren() { ! return children; ! } ! public Tag getEndTag() { ! return endTag; ! } ! public Tag getStartTag() { ! return startTag; ! } ! ! public String toString() { ! StringBuffer childrenString = new StringBuffer(); ! for (int i=0;i<children.size();i++) ! childrenString.append(children.elementAt(i).toPlainTextString()); ! return childrenString.toString(); ! } } --- 34,69 ---- public class CompositeTagData { ! private Tag startTag; ! private Tag endTag; ! private NodeList children; ! ! public CompositeTagData( ! Tag startTag, Tag endTag, NodeList children) { ! this.startTag = startTag; ! this.endTag = endTag; ! this.children = new NodeList(); ! if (children!=null) ! for (SimpleNodeIterator i = children.elements();i.hasMoreNodes();) { ! this.children.add(i.nextNode()); ! } ! } ! public NodeList getChildren() { ! return children; ! } ! public Tag getEndTag() { ! return endTag; ! } ! public Tag getStartTag() { ! return startTag; ! } ! ! public String toString() { ! StringBuffer childrenString = new StringBuffer(); ! for (int i=0;i<children.size();i++) ! childrenString.append(children.elementAt(i).toPlainTextString()); ! return childrenString.toString(); ! } } Index: FormData.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/data/FormData.java,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** FormData.java 24 Aug 2003 21:59:42 -0000 1.24 --- FormData.java 3 Sep 2003 23:36:20 -0000 1.25 *************** *** 32,69 **** public class FormData { ! private String formURL; ! private String formName; ! private String formMethod; ! private Vector formInputVector; ! private Vector textAreaVector; ! ! public FormData(String formURL, String formName, String formMethod, ! Vector formInputVector, Vector textAreaVector) { ! this.formURL = formURL; ! this.formName = formName; ! this.formMethod = formMethod; ! this.formInputVector = formInputVector; ! this.textAreaVector = textAreaVector; ! } ! public Vector getFormInputVector() { ! return formInputVector; ! } ! public String getFormMethod() { ! return formMethod; ! } ! public String getFormName() { ! return formName; ! } ! public String getFormURL() { ! return formURL; ! } ! public Vector getTextAreaVector() { ! return textAreaVector; ! } } --- 32,69 ---- public class FormData { ! private String formURL; ! private String formName; ! private String formMethod; ! private Vector formInputVector; ! private Vector textAreaVector; ! ! public FormData(String formURL, String formName, String formMethod, ! Vector formInputVector, Vector textAreaVector) { ! this.formURL = formURL; ! this.formName = formName; ! this.formMethod = formMethod; ! this.formInputVector = formInputVector; ! this.textAreaVector = textAreaVector; ! } ! public Vector getFormInputVector() { ! return formInputVector; ! } ! public String getFormMethod() { ! return formMethod; ! } ! public String getFormName() { ! return formName; ! } ! public String getFormURL() { ! return formURL; ! } ! public Vector getTextAreaVector() { ! return textAreaVector; ! } } Index: LinkData.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/data/LinkData.java,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** LinkData.java 24 Aug 2003 21:59:43 -0000 1.26 --- LinkData.java 3 Sep 2003 23:36:20 -0000 1.27 *************** *** 30,70 **** public class LinkData { ! private String link; ! private String linkText; ! private String accessKey; ! private boolean mailLink; ! private boolean javascriptLink; ! ! public LinkData(String link,String linkText,String accessKey,boolean mailLink, ! boolean javascriptLink) { ! this.link = link; ! this.linkText = linkText; ! this.accessKey = accessKey; ! this.mailLink = mailLink; ! this.javascriptLink = javascriptLink; ! } ! public String getAccessKey() { ! return accessKey; ! } ! public boolean isJavascriptLink() { ! return javascriptLink; ! } ! public String getLink() { ! return link; ! } ! public String getLinkText() { ! return linkText; ! } ! public boolean isMailLink() { ! return mailLink; ! } ! public String toString() { ! return ""; ! } } --- 30,70 ---- public class LinkData { ! private String link; ! private String linkText; ! private String accessKey; ! private boolean mailLink; ! private boolean javascriptLink; ! ! public LinkData(String link,String linkText,String accessKey,boolean mailLink, ! boolean javascriptLink) { ! this.link = link; ! this.linkText = linkText; ! this.accessKey = accessKey; ! this.mailLink = mailLink; ! this.javascriptLink = javascriptLink; ! } ! public String getAccessKey() { ! return accessKey; ! } ! public boolean isJavascriptLink() { ! return javascriptLink; ! } ! public String getLink() { ! return link; ! } ! public String getLinkText() { ! return linkText; ! } ! public boolean isMailLink() { ! return mailLink; ! } ! public String toString() { ! return ""; ! } } Index: TagData.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/data/TagData.java,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** TagData.java 24 Aug 2003 21:59:43 -0000 1.27 --- TagData.java 3 Sep 2003 23:36:20 -0000 1.28 *************** *** 30,110 **** public class TagData { ! private int tagBegin; ! private int tagEnd; ! private int startLine; ! private int endLine; ! private String tagContents; ! private String tagLine; ! private String urlBeingParsed; ! private boolean isXmlEndTag; ! ! public TagData(int tagBegin, int tagEnd, String tagContents,String tagLine) { ! this(tagBegin, tagEnd, 0, 0, tagContents, tagLine, "", false); ! } ! ! public TagData(int tagBegin, int tagEnd, String tagContents,String tagLine, String urlBeingParsed) { ! this(tagBegin, tagEnd, 0, 0, tagContents, tagLine, urlBeingParsed, false); ! } ! ! public TagData(int tagBegin, int tagEnd, int startLine, int endLine, String tagContents,String tagLine, String urlBeingParsed, boolean isXmlEndTag) { ! this.tagBegin = tagBegin; ! this.tagEnd = tagEnd; ! this.startLine = startLine; ! this.endLine = endLine; ! this.tagContents = tagContents; ! this.tagLine = tagLine; ! this.urlBeingParsed = urlBeingParsed; ! this.isXmlEndTag = isXmlEndTag; ! } ! ! public int getTagBegin() { ! return tagBegin; ! } ! public String getTagContents() { ! return tagContents; ! } ! public int getTagEnd() { ! return tagEnd; ! } ! public String getTagLine() { ! return tagLine; ! } ! public void setTagContents(String tagContents) { ! this.tagContents = tagContents; ! } ! public String getUrlBeingParsed() { ! return urlBeingParsed; ! } ! public void setUrlBeingParsed(String baseUrl) { ! this.urlBeingParsed = baseUrl; ! } ! ! public boolean isEmptyXmlTag() { ! return isXmlEndTag; ! } ! /** ! * Returns the line number where the tag starts in the HTML. At the moment this ! * will only be valid for tags created with the ! * <code>CompositeTagScanner</code> or a subclass of it. ! */ ! public int getStartLine() { ! return startLine; ! } ! /** ! * Returns the line number where the tag ends in the HTML. At the moment this ! * will only be valid for tags created with the ! * <code>CompositeTagScanner</code> or a subclass of it. ! */ ! public int getEndLine() { ! return endLine; ! } ! } --- 30,110 ---- public class TagData { ! private int tagBegin; ! private int tagEnd; ! private int startLine; ! private int endLine; ! private String tagContents; ! private String tagLine; ! private String urlBeingParsed; ! private boolean isXmlEndTag; ! ! public TagData(int tagBegin, int tagEnd, String tagContents,String tagLine) { ! this(tagBegin, tagEnd, 0, 0, tagContents, tagLine, "", false); ! } ! ! public TagData(int tagBegin, int tagEnd, String tagContents,String tagLine, String urlBeingParsed) { ! this(tagBegin, tagEnd, 0, 0, tagContents, tagLine, urlBeingParsed, false); ! } ! ! public TagData(int tagBegin, int tagEnd, int startLine, int endLine, String tagContents,String tagLine, String urlBeingParsed, boolean isXmlEndTag) { ! this.tagBegin = tagBegin; ! this.tagEnd = tagEnd; ! this.startLine = startLine; ! this.endLine = endLine; ! this.tagContents = tagContents; ! this.tagLine = tagLine; ! this.urlBeingParsed = urlBeingParsed; ! this.isXmlEndTag = isXmlEndTag; ! } ! ! public int getTagBegin() { ! return tagBegin; ! } ! public String getTagContents() { ! return tagContents; ! } ! public int getTagEnd() { ! return tagEnd; ! } ! public String getTagLine() { ! return tagLine; ! } ! public void setTagContents(String tagContents) { ! this.tagContents = tagContents; ! } ! public String getUrlBeingParsed() { ! return urlBeingParsed; ! } ! public void setUrlBeingParsed(String baseUrl) { ! this.urlBeingParsed = baseUrl; ! } ! ! public boolean isEmptyXmlTag() { ! return isXmlEndTag; ! } ! /** ! * Returns the line number where the tag starts in the HTML. At the moment this ! * will only be valid for tags created with the ! * <code>CompositeTagScanner</code> or a subclass of it. ! */ ! public int getStartLine() { ! return startLine; ! } ! /** ! * Returns the line number where the tag ends in the HTML. At the moment this ! * will only be valid for tags created with the ! * <code>CompositeTagScanner</code> or a subclass of it. ! */ ! public int getEndLine() { ! return endLine; ! } ! } |