|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.lucene.ParserAdaptorInfo
public class ParserAdaptorInfo
Parser adaptor info.
Stores all the information neccesary to create instance of the parser adaptor. Parser adaptor is a mechanizm to delegate query parsing to another mechanizm. Adaptor is never accessible directly. Instead, an instance ofIParserProxy
is created and used to submit query through the adaptor
to the external mechanizm.
Adaptor class has to have one mandatory method String parse(String queryTerm)
,
and may have optional method void init(Properties attributes)
.
Typically, adaptors are defined in Lucene configuration node, which
may look like on the example below:
<lucene
indexLocation="c:/gpt9/lucene-index/catalog1"
analyzerClassName="org.apache.lucene.analysis.standard.StandardAnalyzer">
<adaptor name="ontology" className="com.esri.gpt.catalog.lucene.StandardParserAdaptor">
<attribute key="baseUrl" value="http://localhost:8080/OntologyService/query?term="/>
</adaptor>
</lucene>
Constructor Summary | |
---|---|
ParserAdaptorInfo()
|
Method Summary | |
---|---|
IParserProxy |
createParserProxy()
Creates instance of parser proxy corresponding to the definition. |
StringAttributeMap |
getAttributes()
Gets attributes. |
String |
getClassName()
Gets class name. |
String |
getName()
Gets adaptor name. |
void |
setAttributes(StringAttributeMap attributes)
Sets attributes. |
void |
setClassName(String className)
Sets class name. |
void |
setName(String name)
Sets adaptor name. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParserAdaptorInfo()
Method Detail |
---|
public String getName()
public void setName(String name)
name
- adaptor namepublic String getClassName()
public void setClassName(String className)
className
- adaptor class namepublic StringAttributeMap getAttributes()
public void setAttributes(StringAttributeMap attributes)
attributes
- attributespublic String toString()
toString
in class Object
public IParserProxy createParserProxy()
null
if unable to create parser proxy
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |