1 27 package org.htmlparser.tags; 28 29 import org.htmlparser.nodes.TagNode; 30 31 34 public class FrameTag 35 extends 36 TagNode 37 { 38 41 private static final String [] mIds = new String [] {"FRAME"}; 42 43 46 public FrameTag () 47 { 48 } 49 50 54 public String [] getIds () 55 { 56 return (mIds); 57 } 58 59 63 public String getFrameLocation () 64 { 65 String ret; 66 67 ret = getAttribute ("SRC"); 68 if (null == ret) 69 ret = ""; 70 else if (null != getPage ()) 71 ret = getPage ().getAbsoluteURL (ret); 72 73 return (ret); 74 } 75 76 80 public void setFrameLocation (String url) 81 { 82 setAttribute ("SRC", url); 83 } 84 85 public String getFrameName() 86 { 87 return (getAttribute ("NAME")); 88 } 89 90 93 public String toString() 94 { 95 return "FRAME TAG : Frame " +getFrameName() + " at "+getFrameLocation()+"; begins at : "+getStartPosition ()+"; ends at : "+getEndPosition (); 96 } 97 } 98 | Popular Tags |