com.collabnet.tracker.xml
Class QueryMetadataXMLHelper

java.lang.Object
  extended by com.collabnet.tracker.xml.QueryMetadataXMLHelper

public class QueryMetadataXMLHelper
extends java.lang.Object

Serializes/deserializes a QueryVO and the corresponding QueryCriteriaBuilder to/from XML

Author:
sszego

Constructor Summary
QueryMetadataXMLHelper()
           
 
Method Summary
 XMLOperationResult build(org.w3c.dom.Document document, XPathProcessor xpath)
           
 void visitQueries(XMLVisitor visitor)
          Generates the following format:
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryMetadataXMLHelper

public QueryMetadataXMLHelper()
Method Detail

visitQueries

public void visitQueries(XMLVisitor visitor)
                  throws XMLVisitorException
Generates the following format:

 <queries>
    <query>
      <queryMetadata>
        <name>name</name>
        <description>desc</description>
        <tagName>tagName</tagName>
        <namespace>namespace</namespace>
        <default>true | false</namespace>
        <scope>domain | project | personal</scope>
      </queryMetadata>
      <queryCriteria>QueryXMLHelper.visit(XMLVisitor, ProjectQueryCriteriaBuilder)</queryCriteria>
    </query>
 </queries>
 

Parameters:
visitor -
Throws:
XMLVisitorException

build

public XMLOperationResult build(org.w3c.dom.Document document,
                                XPathProcessor xpath)
                         throws XMLBuilderException
Parameters:
document -
xpath -
Returns:
the result of the operation
Throws:
XMLBuilderException