Package ORG.oclc.oai.server.crosswalk

Examples of ORG.oclc.oai.server.crosswalk.Crosswalks.containsValue()


      if (metadataPrefix == null || metadataPrefix.length() == 0
    || identifier == null || identifier.length() == 0
    || hasBadArguments(request, validParamNames.iterator(), validParamNames)) {
    throw new BadArgumentException();
      }
      else if (!crosswalks.containsValue(metadataPrefix)) {
    throw new CannotDisseminateFormatException(metadataPrefix);
      } else {
    String record = abstractCatalog.getRecord(identifier, metadataPrefix);
    if (record != null) {
        sb.append(getRequestElement(request, validParamNames, baseURL));
View Full Code Here


        Crosswalks crosswalks = abstractCatalog.getCrosswalks();
        if (metadataPrefix == null) {
      throw new BadArgumentException();
        }
       
        if (!crosswalks.containsValue(metadataPrefix)) {
      throw new CannotDisseminateFormatException(metadataPrefix);
        } else {
      listIdentifiersMap = abstractCatalog.listIdentifiers(from, until, set,
                       metadataPrefix);
        }
View Full Code Here

  try {
      if (identifier == null || identifier.length() == 0) {
                if (debug) System.out.println("Bad argument");
    throw new BadArgumentException();
      }
      else if (!crosswalks.containsValue("oai_dc")) {
                if (debug) System.out.println("crosswalk not present: oai_dc");
    throw new CannotDisseminateFormatException("oai_dc");
      } else {
     String metadata = abstractCatalog.getRecord(identifier, "oai_dc");
     if (metadata != null) {
View Full Code Here

                    }
        Crosswalks crosswalks = abstractCatalog.getCrosswalks();
        if (metadataPrefix == null) {
      throw new BadArgumentException();
        }
        if (!crosswalks.containsValue(metadataPrefix)) {
      throw new CannotDisseminateFormatException(metadataPrefix);
        } else {
      listRecordsMap = abstractCatalog.listRecords(from, until, set,
                     metadataPrefix);
        }
View Full Code Here

      if (metadataPrefix == null || metadataPrefix.length() == 0
    || identifier == null || identifier.length() == 0) {
                if (debug) System.out.println("Bad argument");
    throw new BadArgumentException();
      }
      else if (!crosswalks.containsValue(metadataPrefix)) {
                if (debug) System.out.println("crosswalk not present: " + metadataPrefix);
    throw new CannotDisseminateFormatException(metadataPrefix);
      } else {
     String metadata = abstractCatalog.getMetadata(identifier, metadataPrefix);
     if (metadata != null) {
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.