Class PPage
java.lang.Object
|
+----PPage
- public class PPage
- extends Object
The ppage class is used to store words and meta tags.
- Author:
- Gregor Panzer
qversion 0.4
-
PPage()
- The Constructor.
-
appendElement(PElement)
- This method appends an element to a vector
of Elements.
-
appendMeta(String, String)
- This method appends a meta tag to a vector of
meta tags.
-
getContentLength()
- This method returns the length of the content
of the page.
-
getElements()
- This method returns a Vector containing
the elements of the page.
-
getLastModified()
- This method returns the date the page was
last modified.
-
getLinks()
- This method returns a HashSet containing the
links of the page.
-
getMeta()
- This method returns a vector containing the
meta tags of the page.
-
getPageURL()
- This method returns the URL of the page.
-
getWordCount()
- This method returns the number of words on the page.
-
incWordCount()
- This method increases the counter of words
on the page.
-
setContentLength(long)
- This method sets the length of the content
of the page.
-
setHashSet(HashSet)
- This method appends all links found on
the Page to the HashSet.
-
setLastMod(long)
- This method sets the date when the page
was last modified.
-
setPageURL(String)
- This method sets the URL of the page.
-
testausgabe()
-
PPage
public PPage()
- The Constructor.
getMeta
public Vector getMeta()
- This method returns a vector containing the
meta tags of the page.
getLastModified
public long getLastModified()
- This method returns the date the page was
last modified.
getPageURL
public String getPageURL()
- This method returns the URL of the page.
getContentLength
public long getContentLength()
- This method returns the length of the content
of the page.
getWordCount
public long getWordCount()
- This method returns the number of words on the page.
getElements
public Vector getElements()
- This method returns a Vector containing
the elements of the page. Elements can be of class
Link or Word.
getLinks
public HashSet getLinks()
- This method returns a HashSet containing the
links of the page.
appendMeta
public void appendMeta(String name,
String value)
- This method appends a meta tag to a vector of
meta tags.
setLastMod
public void setLastMod(long lastMod)
- This method sets the date when the page
was last modified.
setPageURL
public void setPageURL(String pageURL)
- This method sets the URL of the page.
setContentLength
public void setContentLength(long contentLength)
- This method sets the length of the content
of the page.
incWordCount
public void incWordCount()
- This method increases the counter of words
on the page.
appendElement
public void appendElement(PElement ele)
- This method appends an element to a vector
of Elements.
setHashSet
public void setHashSet(HashSet hs)
- This method appends all links found on
the Page to the HashSet.
testausgabe
public void testausgabe()