|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.metadata.Metadata org.apache.nutch.metadata.SpellCheckedMetadata
public class SpellCheckedMetadata
A decorator to Metadata that adds spellchecking capabilities to property
names. Currently used spelling vocabulary contains just the httpheaders from
HttpHeaders
class.
Field Summary |
---|
Fields inherited from interface org.apache.nutch.metadata.CreativeCommons |
---|
LICENSE_LOCATION, LICENSE_URL, WORK_TYPE |
Fields inherited from interface org.apache.nutch.metadata.DublinCore |
---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRIPTION, FORMAT, IDENTIFIER, LANGUAGE, MODIFIED, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Fields inherited from interface org.apache.nutch.metadata.HttpHeaders |
---|
CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_TYPE, LAST_MODIFIED, LOCATION |
Fields inherited from interface org.apache.nutch.metadata.Feed |
---|
FEED, FEED_AUTHOR, FEED_PUBLISHED, FEED_TAGS, FEED_UPDATED |
Constructor Summary | |
---|---|
SpellCheckedMetadata()
|
Method Summary | |
---|---|
void |
add(String name,
String value)
Add a metadata name/value mapping. |
String |
get(String name)
Get the value associated to a metadata name. |
static String |
getNormalizedName(String name)
Get the normalized name of metadata attribute name. |
String[] |
getValues(String name)
Get the values associated to a metadata name. |
void |
remove(String name)
Remove a metadata and all its associated values. |
void |
set(String name,
String value)
Set metadata name/value. |
Methods inherited from class org.apache.nutch.metadata.Metadata |
---|
clear, equals, isMultiValued, names, readFields, setAll, size, toString, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpellCheckedMetadata()
Method Detail |
---|
public static String getNormalizedName(String name)
name
- Name to normalize
public void remove(String name)
Metadata
remove
in class Metadata
name
- metadata name to removepublic void add(String name, String value)
Metadata
add
in class Metadata
name
- the metadata name.value
- the metadata value.public String[] getValues(String name)
Metadata
getValues
in class Metadata
name
- of the metadata.
public String get(String name)
Metadata
get
in class Metadata
name
- of the metadata.
public void set(String name, String value)
Metadata
set
in class Metadata
name
- the metadata name.value
- the metadata value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |