org.apache.droids.parse
Class ParseImpl
java.lang.Object
org.apache.droids.parse.ParseImpl
- All Implemented Interfaces:
- Parse
public class ParseImpl
- extends java.lang.Object
- implements Parse
Default implementation of Parse
- Version:
- 1.0
|
Field Summary |
protected java.lang.Object |
data
|
protected java.util.Collection<Link> |
outlinks
|
protected java.lang.String |
text
|
|
Constructor Summary |
ParseImpl()
|
ParseImpl(java.lang.String text,
java.util.Collection<Link> outlinks)
|
ParseImpl(java.lang.String text,
java.lang.Object data,
java.util.Collection<Link> outlinks)
|
|
Method Summary |
java.lang.Object |
getData()
Other data extracted from the page. |
java.util.Collection<Link> |
getOutlinks()
Outlinks extracted from the Content Entity |
java.lang.String |
getText()
The textual content of the page. |
void |
setData(java.lang.Object data)
|
void |
setOutlinks(java.util.Collection<Link> outlinks)
|
void |
setText(java.lang.String text)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text
protected java.lang.String text
data
protected java.lang.Object data
outlinks
protected java.util.Collection<Link> outlinks
ParseImpl
public ParseImpl()
ParseImpl
public ParseImpl(java.lang.String text,
java.util.Collection<Link> outlinks)
ParseImpl
public ParseImpl(java.lang.String text,
java.lang.Object data,
java.util.Collection<Link> outlinks)
getText
public java.lang.String getText()
- Description copied from interface:
Parse
- The textual content of the page. This is indexed, searched, and used when
generating snippets.
- Specified by:
getText in interface Parse
- Returns:
- the textual representation of the underlying page.
setText
public void setText(java.lang.String text)
getData
public java.lang.Object getData()
- Description copied from interface:
Parse
- Other data extracted from the page.
- Specified by:
getData in interface Parse
- Returns:
- the processed parse data.
setData
public void setData(java.lang.Object data)
getOutlinks
public java.util.Collection<Link> getOutlinks()
- Description copied from interface:
Parse
- Outlinks extracted from the Content Entity
- Specified by:
getOutlinks in interface Parse
- Returns:
setOutlinks
public void setOutlinks(java.util.Collection<Link> outlinks)
Copyright © 2007-2009. All Rights Reserved.