|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.remote.crawler.DocumentMetaData
Stores metadata information about a Document
object.
Note: When providing values for date properties, the value should be in the format MM/dd/yy HH:mm:ss PM.
For example, 10/25/04 12:53:30 PM.
Constructor Summary | |
DocumentMetaData()
Default constructor. |
|
DocumentMetaData(NamedValue[] nvArray)
Valued constructor. |
Method Summary | |
void |
fromArray(NamedValue[] nvArray)
Overwrites the content of this map with the data from the input NamedValue array. |
java.lang.Object |
get(java.lang.Object key,
java.lang.Object def)
Returns an object mapped to a key or uses a default object if no value is found. |
java.lang.String |
get(java.lang.String key)
Gets the value for the input key. |
java.lang.String |
getClickThroughURL()
Gets the URL used for click-through to the underlying document. |
java.lang.String |
getContentType()
Gets the HTTP content-type of this document. |
java.lang.String |
getDescription()
Gets the textual description of this document. |
java.lang.String |
getFileName()
Gets the file name of this document. |
java.lang.String |
getImageUUID()
Gets the UUID for the document image. |
java.lang.String |
getIndexingURL()
Gets the URL used for crawl-time indexing to the underlying document. |
java.lang.String |
getName()
Gets the display name of this document. |
java.lang.String |
put(java.lang.String key,
java.lang.String value)
Inserts a key/value mapping into the map. |
java.lang.String |
setClickThroughURL(java.lang.String value)
Sets the URL used for click-through to the underlying document. |
java.lang.String |
setContentType(java.lang.String value)
Sets the HTTP content-type of this document, for example text/html Note: This value must be set when using DocFetch. |
java.lang.String |
setDescription(java.lang.String value)
Sets the textual description of this document. |
java.lang.String |
setFileName(java.lang.String value)
Sets the file name of this document. |
java.lang.String |
setImageUUID(java.lang.String value)
Sets the UUID for the document image. |
java.lang.String |
setIndexingURL(java.lang.String value)
Sets the URL used for crawl-time indexing to the underlying document. |
java.lang.String |
setName(java.lang.String value)
Sets the display name of this document. |
void |
setUseDocFetch(boolean value)
If |
NamedValue[] |
toArray()
Returns the contents of this map as a NamedValue array. |
java.lang.String |
toString()
Returns a String representation of the mapping for debugging. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DocumentMetaData()
public DocumentMetaData(NamedValue[] nvArray)
nvArray
- a NamedValue
array to use as dataMethod Detail |
public java.lang.String getName()
public java.lang.String setName(java.lang.String value)
value
- the display name
public java.lang.String getDescription()
public java.lang.String setDescription(java.lang.String value)
value
- the description
public java.lang.String getFileName()
public java.lang.String setFileName(java.lang.String value)
value
- the file name
public java.lang.String getContentType()
public java.lang.String setContentType(java.lang.String value)
value
- the content-type string
public java.lang.String getClickThroughURL()
public java.lang.String setClickThroughURL(java.lang.String value)
value
- the URL to the document
public java.lang.String getIndexingURL()
public java.lang.String setIndexingURL(java.lang.String value)
value
- the URL to the document
public java.lang.String getImageUUID()
public java.lang.String setImageUUID(java.lang.String value)
value
- the new image UUID
public void setUseDocFetch(boolean value)
SetClickThroughURL
) and crawl-time indexing (SetIndexingURL
).
value
- a boolean indicating whether or not to use DocFetchIDocument.getDocument()
public java.lang.Object get(java.lang.Object key, java.lang.Object def)
key
- the key mapped to the object to be returneddef
- the default object value
public java.lang.String get(java.lang.String key)
key
- the key
public java.lang.String put(java.lang.String key, java.lang.String value)
key
- the key string to addvalue
- the value string to map to the key
public void fromArray(NamedValue[] nvArray)
NamedValue
array.
nvArray
- the NamedValue
array containing the new datapublic NamedValue[] toArray()
NamedValue
array.
NamedValue
array containing this map's datapublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©2010 Oracle® Corporation. All Rights Reserved.