Examples of Crosswalk


Examples of ORG.oclc.oai.server.crosswalk.Crosswalk

    sb.append("<ListMetadataFormats>");
    while (iterator.hasNext()) {
        Map.Entry entry = (Map.Entry)iterator.next();
        String oaiSchemaLabel = (String)entry.getKey();
        CrosswalkItem crosswalkItem = (CrosswalkItem)entry.getValue();
        Crosswalk crosswalk = crosswalkItem.getCrosswalk();
//         StringTokenizer tokenizer = new StringTokenizer(crosswalk.getSchemaLocation());
//         String namespaceURI = tokenizer.nextToken();
//         String schemaURL = tokenizer.nextToken();
        String[] tokenizer = split(crosswalk.getSchemaLocation());
        String namespaceURI = null;
        String schemaURL = null;
        if (tokenizer.length == 1) {
      schemaURL = tokenizer[0];
        } else if (tokenizer.length > 1) {
View Full Code Here

Examples of ORG.oclc.oai.server.crosswalk.Crosswalk

  Vector v = new Vector();
  Iterator iterator = getCrosswalks().iterator();
  while (iterator.hasNext()) {
      Map.Entry entry = (Map.Entry)iterator.next();
      CrosswalkItem crosswalkItem = (CrosswalkItem)entry.getValue();
      Crosswalk crosswalk = crosswalkItem.getCrosswalk();
      if (crosswalk.isAvailableFor(nativeItem)) {
    v.add(crosswalk.getSchemaLocation());
      }
  }
  return v;
    }
View Full Code Here

Examples of ORG.oclc.oai.server.crosswalk.Crosswalk

            Iterator iterator = getCrosswalks().iterator();
            while (iterator.hasNext()) {
                Map.Entry entry = (Map.Entry)iterator.next();
                String itemPrefix = (String) entry.getKey();
                CrosswalkItem crosswalkItem = (CrosswalkItem)entry.getValue();
                Crosswalk crosswalk = crosswalkItem.getCrosswalk();
                if (debug) System.out.println("RecordFactory.create: crosswalk=" + crosswalk);
                if (schemaURL == null
                        || (metadataPrefix == null && crosswalk.getSchemaURL().equals(schemaURL))
                        || (metadataPrefix != null && itemPrefix.equals(metadataPrefix))) {
                    xmlRec.append(crosswalk.createMetadata(nativeItem));
                    break;
                }
            }
            xmlRec.append("</metadata>");
            if (debug) System.out.println("RecordFactory.create: finished metadata");
View Full Code Here

Examples of ORG.oclc.oai.server.crosswalk.Crosswalk

  }
        Iterator iterator = getCrosswalks().iterator();
        while (iterator.hasNext()) {
            Map.Entry entry = (Map.Entry)iterator.next();
            CrosswalkItem crosswalkItem = (CrosswalkItem)entry.getValue();
      Crosswalk crosswalk = crosswalkItem.getCrosswalk();
            if (schemaURL == null
                || crosswalk.getSchemaURL().equals(schemaURL)) {
                xmlRec.append(crosswalk.createMetadata(nativeItem));
            }
        }
  return xmlRec.toString();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.