|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the object returned by the parser for this data typepublic interface IDataType<T>
Objects that implement this interface represent possible types of data that occur in the dictionary data directory.
In the standard Wordnet distributions, data types would include, but would
not be limited to, Index files, Data files, and
Exception files. The objects implementing this interface are then
paired with an POS
instance and
ILineComparator
instance to form an instance of an
IContentType
class, which identifies the specific data contained in
the file. Note that here, 'data' refers not to an actual file, but to an
instance of the IDataSource
interface that provides access to the
data, be it a file in the file system, a socket connection to a database, or
something else.
Method Summary | |
---|---|
ILineParser<T> |
getParser()
Returns the line parser that can be used to process lines of data retrieved from an IDataSource file with this type. |
java.util.Set<java.lang.String> |
getResourceNameHints()
Returns an immutable set of strings that can be used as keywords to identify resources that are of this type. |
boolean |
hasVersion()
Indicates whether this content type usually has wordnet version information encoded in its header. |
Method Detail |
---|
ILineParser<T> getParser()
IDataSource
file with this type.
IDataSource
file with this type.boolean hasVersion()
true
if the content file that underlies this content
usually has wordnet version information in its comment header;
false
otherwise.java.util.Set<java.lang.String> getResourceNameHints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |