Package ORG.oclc.oai.server.crosswalk

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


    Iterator iterator = crosswalks.iterator();
    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;
View Full Code Here


  }
  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

            xmlRec.append("<metadata>");
            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));
View Full Code Here

            throw new CannotDisseminateFormatException("Record is deleted");
  }
        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));
            }
        }
View Full Code Here

      // Load the formats the repository supports directly
      HashMap crosswalkMap = new HashMap();
      for (int i=0; i<schemas.getLength(); ++i) {
    Object[] crosswalkItem = crosswalkItemFactory(schemas.item(i));
    for (int j=0; j<crosswalkItem.length; ++j) {
        CrosswalkItem currentItem = (CrosswalkItem)crosswalkItem[j];
        //     logger.debug(currentItem.toString());
        Object key = currentItem.getMetadataPrefix();
        CrosswalkItem storedItem = (CrosswalkItem)crosswalkMap.get(key);
        if (storedItem == null || (currentItem.getRank() < storedItem.getRank())) {
      crosswalkMap.put(key, currentItem);
        }
    }
      }
View Full Code Here

//       logger.warn("Problem obtaining namespace", e);
      System.out.println("Failed to get schema: " + schema);
      e.printStackTrace();
      metadataNamespace = "";
  }
  CrosswalkItem crosswalkItem = new CrosswalkItem(nativeRecordSchema, metadataPrefix, schema, metadataNamespace, NodePassThruCrosswalk.class);
  crosswalkItemList.add(crosswalkItem);
//   logger.debug("Service_srw2oai.crosswalkItemFactory: metadataPrefix=" + metadataPrefix);
//   logger.debug("Service_srw2oai.crosswalkItemFactory: nativeRecordSchema=" + crosswalkItem.getNativeRecordSchema());
//   if (nativeRecordSchema.equals("info:srw/schema/1/marcxml-v1.1")) {
//   }
View Full Code Here

TOP

Related Classes of ORG.oclc.oai.server.crosswalk.CrosswalkItem

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.