|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primus.searchcommon.parseroptions.ParserOptions
public class ParserOptions
Convenience class for building up parser options XML. All element names are enumerated for each request type, but not all element values are. Options can be added, but not removed. Many options can be repeated with different values: consult the supporting documentation for details.
Constructor Summary | |
---|---|
ParserOptions()
|
Method Summary | |
---|---|
ParserOptions |
addOption(com.primus.frameworks.Enum opt,
java.lang.Object value)
Adds an option and its value to the XML |
java.lang.String |
toString()
Returns the parserOptions XML, including the outer parserOptions tag. |
java.lang.String |
toXml()
Same as toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParserOptions()
Method Detail |
---|
public ParserOptions addOption(com.primus.frameworks.Enum opt, java.lang.Object value)
opt
- The option to addvalue
- The value for the option. Could be a String
or and Enum
-derived
type, if one exists for the option.public java.lang.String toString()
parserOptions
tag.
toString
in class java.lang.Object
public java.lang.String toXml()
toString
toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |