com.primus.searchstudio
Class CategoryConverter

java.lang.Object
  extended by com.primus.searchstudio.CategoryConverter

public class CategoryConverter
extends java.lang.Object

Convert Categories value object to/from XML.


Constructor Summary
CategoryConverter()
           
 
Method Summary
 Categories fromXMLNew(java.lang.String xmlString, boolean isSOAP, boolean allowListProperties)
          Deprecated. as of 2007.1
 Categories fromXMLNew(java.lang.String resultXml, boolean isSOAP, boolean allowListProperties, Refinements refinements)
          Deprecated. as of 2007.1.
 Categories fromXMLNew(java.lang.String resultXml, boolean allowListProperties, Refinements refinements)
           
static void main(java.lang.String[] args)
          Simple test function.
static void printCategoryDetail(Category cat)
           
static void printCatResults(CategoryResultObjects catDocs)
           
 java.lang.String toXML(Categories categories)
          Convert Categories value object to its XML representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryConverter

public CategoryConverter()
Method Detail

toXML

public java.lang.String toXML(Categories categories)
Convert Categories value object to its XML representation.

Parameters:
categories - value object to be converted to XML
Returns:
XML representation of value object

fromXMLNew

public Categories fromXMLNew(java.lang.String xmlString,
                             boolean isSOAP,
                             boolean allowListProperties)
                      throws com.primus.searchstudio.InvalidResponseXMLException
Deprecated. as of 2007.1

Constructs a Categories object from xml

Parameters:
xmlString - xml results of a category request
isSOAP - pass true if a soap envelope is being passed in
allowListProperties - pass true to allow multi-valued properties. All property values become lists.
Returns:
Categories
Throws:
com.primus.searchstudio.InvalidResponseXMLException

fromXMLNew

public Categories fromXMLNew(java.lang.String resultXml,
                             boolean isSOAP,
                             boolean allowListProperties,
                             Refinements refinements)
                      throws com.primus.searchstudio.InvalidResponseXMLException
Deprecated. as of 2007.1.

Parameters:
resultXml - xml results of a category request
isSOAP - pass true if a soap envelope is being passed in
allowListProperties - pass true to allow multi-valued properties. All property values become lists.
refinements - The output refinements. Must be non-null, or else it will be ignored.
Returns:
Categories and the refinements
Throws:
com.primus.searchstudio.InvalidResponseXMLException

fromXMLNew

public Categories fromXMLNew(java.lang.String resultXml,
                             boolean allowListProperties,
                             Refinements refinements)
                      throws com.primus.searchstudio.InvalidResponseXMLException
Parameters:
resultXml - xml results of a category request
allowListProperties - pass true to allow multi-valued properties. All property values become lists.
refinements - The output refinements. Must be non-null, or else it will be ignored.
Returns:
Categories and the refinements
Throws:
com.primus.searchstudio.InvalidResponseXMLException

printCatResults

public static void printCatResults(CategoryResultObjects catDocs)

printCategoryDetail

public static void printCategoryDetail(Category cat)

main

public static void main(java.lang.String[] args)
Simple test function. See unit test for more comprehensive test.

Parameters:
args - arguments