Package org.wijiscommons.ssaf.schema.search

Examples of org.wijiscommons.ssaf.schema.search.RecordRetrievalResult


            Node payloadNode = getXPathNode(ssafDocument, xPathlocation);
            payloadChildElementNode = DomUtils.getElementChildNode(payloadNode);
           
        }
   
        RecordRetrievalResult result =
            constructObject(recordUri, payloadChildElementNode);
   
    // Convert to Document and Return
    return getResultDocument(result);
   
View Full Code Here


   * @return
   */
  private RecordRetrievalResult constructObject(String recordUri, Node node)
  {
    // Get RecordRetrievalResult Object from JAXB ObjectFactory
    RecordRetrievalResult result = new ObjectFactory().createRecordRetrievalResult();
   
    // If node is not null add to Payload Object
    // else add to Empty Object
    if (node != null)
    {
      Payload payload = new Payload();
     
      List<Object> payloads = payload.getAny();
      payloads.add(node);
     
      result.setPayload(payload);
    } else {
     
      Empty empty = new Empty();
      result.setEmpty(empty);
    }
   
    // set RecordUri to RecordRetrievalResult Object
    result.setRecordUri(recordUri);
   
    // return result
    return result;
  }
View Full Code Here

   
    // Get payloadNode from Document
    Node payloadNode = getXPathNode(ssafDocument, xPathlocation);
   
    // Construct RecordRetrievalResult Object
    RecordRetrievalResult result = constructObject(recordUri, payloadNode.getFirstChild());
   
    // Convert to Document and Return
    return getResultDocument(result);
   
  }
View Full Code Here

   * @return
   */
  private RecordRetrievalResult constructObject(String recordUri, Node node)
  {
    // Get RecordRetrievalResult Object from JAXB ObjectFactory
    RecordRetrievalResult result = new ObjectFactory().createRecordRetrievalResult();
   
    // If node is not null add to Payload Object
    // else add to Empty Object
    if (node != null)
    {
      Payload payload = new Payload();
      List<Object> payloads = payload.getAny();
      payloads.add(node);
     
      result.setPayload(payload);
    } else {
     
      Empty empty = new Empty();
      result.setEmpty(empty);
    }
   
    // set RecordUri to RecordRetrievalResult Object
    result.setRecordUri(recordUri);
   
    // return result
    return result;
  }
View Full Code Here

TOP

Related Classes of org.wijiscommons.ssaf.schema.search.RecordRetrievalResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.