|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentAttributeContract
Defines the contract for an attribute of a document. These attributes are generally extracted during an indexing process and stored as key-value pairs associated with the document. In addition to the key-value pair, the document attribute also defines the data type of data that is held by the attribute.
This contract simply defines the interface that specific (and strongly typed) implementations of document
attributes will implement. The number of possible implementations of this contract are generally constrainted by
the set of defined DocumentAttributeDataType
enumeration values.
Concrete instances of should be created using the DocumentAttributeFactory
. It is not generally
of value for a client of the API to create custom implementations of this contract interface.
DocumentAttributeFactory
Method Summary | |
---|---|
DocumentAttributeDataType |
getDataType()
Returns the data type of this document attribute. |
String |
getName()
Returns the name of this document attribute which serves as an identifier for this attribute on the document. |
Object |
getValue()
Returns the value of this document attribute. |
Method Detail |
---|
String getName()
Object getValue()
DocumentAttributeDataType getDataType()
#getValue
method. This method should never return a null value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |