|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.eos.document.EosDocument
public final class EosDocument
Represents a simple εοs document. An instance of this document never contains any linefeed (ASCII 0xa) or carriage return (ASCII 0xd) characters.
Field Summary | |
---|---|
static String |
CREATOR_META_KEY
A metadata key for the creator in a metadata. |
static String |
ID_META_KEY
A metadata key for the IDs in a metadata. |
static String |
YEAR_META_KEY
A metadata key for the year in a metadata. |
Constructor Summary | |
---|---|
EosDocument()
|
Method Summary | |
---|---|
boolean |
equals(Object other)
|
Map<String,List<String>> |
getMeta()
Returns the metadata of the document. |
CharSequence |
getText()
Returns the text of the document. |
CharSequence |
getTitle()
Returns the title of the document. |
int |
hashCode()
Implemented for hash contract. |
void |
setMeta(Map<String,List<String>> meta)
Sets the metadata of the document. |
void |
setText(CharSequence text)
Sets the text of the document. |
void |
setTitle(CharSequence title)
Sets the title of the document. |
String |
toString()
The value of the return string may change in future implementations. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String YEAR_META_KEY
public static final String CREATOR_META_KEY
public static final String ID_META_KEY
Constructor Detail |
---|
public EosDocument()
Method Detail |
---|
public CharSequence getText()
public CharSequence getTitle()
public Map<String,List<String>> getMeta()
getMeta
in interface Metadata
public void setText(CharSequence text)
text
- the text of the documentpublic void setTitle(CharSequence title)
title
- the title of the documentpublic void setMeta(Map<String,List<String>> meta)
meta
- the metadata of the documentpublic String toString()
toString
in class Object
String
representation of the documentfor serialization
public boolean equals(Object other)
equals
in class Object
Object.equals(Object)
public int hashCode()
EosDocument
instance in a hash oriented dictionary.
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |