edu.mit.jwi.data
Interface IContentType<T>

Type Parameters:
T - the parameterization of the data type for this content type
All Superinterfaces:
IHasCharset, IHasPOS
All Known Implementing Classes:
ContentType

public interface IContentType<T>
extends IHasPOS, IHasCharset

Objects that implement this interface represent all possible types of content that are contained in the dictionary data resources. Each unique object of this type will correspond to a particular resource or file.

In the standard Wordnet distributions, examples of content types would include, but would not be limited to, Index, Data, and Exception files for each part of speech.

Since:
JWI 1.0
Version:
2.4.0
Author:
Mark A. Finlayson

Method Summary
 IDataType<T> getDataType()
          Returns the assigned resource type of this object.
 ILineComparator getLineComparator()
          Returns a comparator that can be used to determine ordering between different lines of data in the resource.
 
Methods inherited from interface edu.mit.jwi.item.IHasPOS
getPOS
 
Methods inherited from interface edu.mit.jwi.data.IHasCharset
getCharset
 

Method Detail

getDataType

IDataType<T> getDataType()
Returns the assigned resource type of this object. This method may not return null

Returns:
the data type object representing the resource type for this content type
Since:
JWI 1.0

getLineComparator

ILineComparator getLineComparator()
Returns a comparator that can be used to determine ordering between different lines of data in the resource. This is used for searching. If the data in the resource is not ordered, then this method returns null.

Returns:
a comparator that imposes an ordering on the lines in the data file; or null if there is no comparator
Since:
JWI 1.0


Copyright © 2007-2013 Massachusetts Institute of Technology. All Rights Reserved.