Package psidev.psi.tools.xxindex.index

Examples of psidev.psi.tools.xxindex.index.IndexElement


  @Override
  public T next() throws NoSuchElementException {
    logger.info("Retrieve next element from the iterator for type <{}>", clss);
   
    // get the next index element
    IndexElement elem = iterator.next().getValue();
    // read the xml snippet
    String xmlSnippet = index.readXML(elem);
    // unmarshal this element
    S temp = unmarshaller.unmarshal(xmlSnippet, preClass);
    // manually call the adapter
View Full Code Here


  @Override
  public QualityAssessment next() throws NoSuchElementException {
    logger.info("Retrieve next element from the iterator for type <{}>", clss);
   
    // get the next index element
    IndexElement elem = iterator.next().getValue();
    // read the xml snippet
    String xmlSnippet = index.readXML(elem);
    try {
      // unmarshal this element
      Object temp = unmarshaller.unmarshal(xmlSnippet);
View Full Code Here

  @Override
  public T next() throws NoSuchElementException {
    logger.info("Retrieve next element from the iterator for type <{}>", clss);
   
    // get the next index element
    IndexElement elem = iterator.next().getValue();
    // read the xml snippet
    String xmlSnippet = index.readXML(elem);
    // unmarshal this element
    return unmarshaller.unmarshal(xmlSnippet, clss);
  }
View Full Code Here

   */
  public String getXMLSnippet(@SuppressWarnings("rawtypes") Class cls, String id) {
        // check if a mapping for the given class with the given ID exists
    Map<String, IndexElement> mapping = idMap.get(cls);
    if(mapping != null) {
      IndexElement elem = mapping.get(id);
      if(elem != null)
              return readXML(elem);
      else
        return null;
    }
View Full Code Here

TOP

Related Classes of psidev.psi.tools.xxindex.index.IndexElement

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.