Package com.esri.gpt.framework.search

Examples of com.esri.gpt.framework.search.DcList


    String result = this.getMetadataXsltObj().transform(Utils.chkStr(response));
       
    String xmlUrl = null;
    String dctReferences = result;
    LOG.finer("Native GetRecordBYID from transform = " + dctReferences);
    DcList lstDctReferences = new DcList(dctReferences);
   
    Iterator<DcList.Value> iter = lstDctReferences.iterator();
    while(iter.hasNext()) {
      DcList.Value value = iter.next();
      if(value.getValue().toLowerCase().endsWith(".xml")
          || value.getScheme().equals(SCHEME_METADATA_DOCUMENT)) {
        xmlUrl = value.getValue();
View Full Code Here


      .transform(Utils.chkStr(recordByIdResponse));
       
    String xmlUrl = null;
    String dctReferences = sRecordByIdXslt;
    LOG.finer("Native GetRecordBYID from transform = " + dctReferences);
    DcList lstDctReferences = new DcList(dctReferences);
   
    Iterator<DcList.Value> iter = lstDctReferences.iterator();
    while(iter.hasNext()) {
      DcList.Value value = iter.next();
      if(value.getValue().toLowerCase().endsWith(".xml")
          || value.getScheme().equals(SCHEME_METADATA_DOCUMENT)) {
        xmlUrl = value.getValue();
View Full Code Here

protected void buildThumbnailLink(SearchXslRecord xRecord, SearchResultRecord record) {
  if(this.showThumbnail() == false) {
    return;
  }
  String url = "";
  DcList references = xRecord.getReferences();
  List<String> schemeVals = references.get(Scheme.THUMBNAIL_FGDC.getUrn());
  if (schemeVals.size() < 1) {
    schemeVals = references.get(Scheme.THUMBNAIL_ISO.getUrn());
  }
  if (schemeVals.size() > 0) {
    url = schemeVals.get(0);
  } else {
    for (DcList.Value reference : references) {
View Full Code Here

protected void buildWebsiteLink(SearchXslRecord xRecord, SearchResultRecord record) {
  if(!xRecord.getLinks().readShowLink(ResourceLink.TAG_WEBSITE)) {
    return;
  }
  String url = "";
  DcList references = xRecord.getReferences();
  List<String> schemeVals = references.get(Scheme.ONLINK_FGDC.getUrn());
  if (schemeVals.size() < 1) {
    schemeVals = references.get(Scheme.ONLINK_ISO.getUrn());
  }
  if (schemeVals.size() > 0) {
    url = Val.chkStr(schemeVals.get(0));
  }
View Full Code Here

  // initialize
  String resourceUrl = "";
  String serviceType = "";
  String serviceName = "";
  DcList references = xRecord.getReferences();

  // determine the service url, name and type
  List<String> schemeVals = references.get(Scheme.SERVER.getUrn());
  if (schemeVals.size() > 0) {
    resourceUrl = Val.chkStr(schemeVals.get(0));
  }

  schemeVals = references.get(Scheme.SERVICE.getUrn());
  if (schemeVals.size() > 0) {
    serviceName = Val.chkStr((schemeVals.get(0)));
  }

  schemeVals = references.get(Scheme.SERVICE_TYPE.getUrn());
  if (schemeVals.size() > 0) {
    serviceType = Val.chkStr((schemeVals.get(0)));
  }
  if ((resourceUrl.length() > 0) && (serviceType.length() == 0)) {
    serviceType = this.getResourceIdentifier().guessServiceTypeFromUrl(
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.search.DcList

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.