|
Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
oracle.ultrasearch.crawler.DocAttributes
DocAttributes is to be used by a crawler agent to submit url related data to the crawler. It does not check the validity of the data it stored.
| Field Summary |
| Fields inherited from interface oracle.ultrasearch.crawler.UrlData |
ACCESS_URL, ACL, ATTR_DATE, ATTR_NUMBER, ATTR_STRING, DELETED, DISPLAY_URL, DOC_KEY, FALSE, LANGUAGE, OWNER, OWNER_FORMAT, PARSE_DOC, TRUE |
| Constructor Summary | |
DocAttributes() |
|
| Method Summary | |
void |
addAttribute(java.lang.String name, java.math.BigDecimal value)Add an attribute value whose type is number |
void |
addAttribute(java.lang.String name, java.sql.Date value)Add an attribute value whose type is java.sql.Date |
void |
addAttribute(java.lang.String name, java.lang.String value)Add an attribute value whose type is String |
void |
clearData()Clear all URL data |
java.lang.String |
getAttributeName(int attrIndex)Get the name of the specified attribute |
int |
getAttributeType(int attrIndex)Get the data type of the specified attribute |
java.util.Enumeration |
getAttributeValues(int attrIndex)Get the list of values for a specified attribute |
int |
getNumAttributes()Get number of attributes |
int |
getNumAttrValues()Get number of attribute values |
java.lang.String |
getProperty(int name)Get the value of an URL data property |
void |
setProperty(int name, java.lang.String value)Set physical attribute or update preference of an URL data invalid value is still set with error reported in the log file |
java.lang.String |
toString()Print out hte list of attribute values |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DocAttributes()
| Method Detail |
public java.lang.String toString()
public void setProperty(int name,
java.lang.String value)
setProperty in interface UrlDataname - the name of the propertyvalue - the value of the propertypublic java.lang.String getProperty(int name)
getProperty in interface UrlDataname - the name of the property
public void addAttribute(java.lang.String name,
java.math.BigDecimal value)
addAttribute in interface UrlDataname - the name of the attributevalue - the value of the attribute
public void addAttribute(java.lang.String name,
java.sql.Date value)
addAttribute in interface UrlDataname - the name of the attributevalue - the value of the attribute
public void addAttribute(java.lang.String name,
java.lang.String value)
addAttribute in interface UrlDataname - the name of the attributevalue - the value of the attributepublic int getNumAttributes()
getNumAttributes in interface UrlDatapublic int getNumAttrValues()
getNumAttrValues in interface UrlDatapublic java.lang.String getAttributeName(int attrIndex)
getAttributeName in interface UrlDataattrIndex - is the 0 based index indicating which attributepublic int getAttributeType(int attrIndex)
getAttributeType in interface UrlDataattrIndex - is the 0 based index indicating which attributepublic java.util.Enumeration getAttributeValues(int attrIndex)
getAttributeValues in interface UrlDataattrIndex - is the 0 based index indicating which attributepublic void clearData()
clearData in interface UrlData
|
Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||