TYPE_ARTICLE, TYPE_PAGE, TYPE_SEARCH| Constructor and Description |
|---|
HistoryElement(Article article,
java.net.URL url)
Constructor for an article.
|
HistoryElement(Article article,
java.net.URL url,
java.lang.String anchor)
Constructor for an article.
|
HistoryElement(java.lang.String content,
char type)
Constructor for a String content.
|
HistoryElement(java.net.URL url,
char type)
Constructor for a page.
|
HistoryElement(java.net.URL url,
java.lang.String anchor,
char type) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAnchor()
Return the element anchor.
|
Article |
getArticle()
Return the article aƩssociated with the element (can be null).
|
java.lang.String |
getContent()
Return the element content (used for the full text search page).
|
java.net.URL |
getURL()
Return the element URL.
|
boolean |
hasAnchor()
Return true if the element has an anchor.
|
boolean |
isArticle()
Return true if this is an article.
|
boolean |
isResourcePage()
Return true if this is a resource page.
|
boolean |
isSearchPage()
Return true if this is a search page.
|
java.lang.String |
toString() |
public HistoryElement(Article article, java.net.URL url)
article - the articleurl - the article URLpublic HistoryElement(Article article, java.net.URL url, java.lang.String anchor)
article - the articleurl - the article URLanchor - the anchor on the articlepublic HistoryElement(java.net.URL url,
char type)
url - the URLtype - the page typepublic HistoryElement(java.lang.String content,
char type)
content - the String contenttype - the page typepublic HistoryElement(java.net.URL url,
java.lang.String anchor,
char type)
public boolean isArticle()
public boolean isSearchPage()
public boolean isResourcePage()
public Article getArticle()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getContent()
public java.net.URL getURL()
public boolean hasAnchor()
public java.lang.String getAnchor()
Copyright © 2016-2026 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence