Package com.esri.gpt.catalog.search

Examples of com.esri.gpt.catalog.search.ResourceLinks$UrlsByTag


public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
 
  if(!(arg2 instanceof ResourceLinks)) {
    return ""
  }
  ResourceLinks links = (ResourceLinks) arg2;
 
  StringBuffer sb = new StringBuffer();
  for (ResourceLink link: links) {
    String target = link.getTarget();
    String tag = link.getTag();
View Full Code Here


    String indexKey = dcatField.getIndex();
    Map<String, IFeedAttribute> index = r.getData(IFeedRecord.STD_COLLECTION_INDEX);
    if (indexKey.length() > 0) {
      before = writeField(r,index, dcatField, delimiter, before);
    } else if (dcatField.getName().equalsIgnoreCase("identifier") && indexKey.length() == 0) {
      ResourceLinks links = r.getResourceLinks();
      before = writeFieldValue("\"" + getIdentifierUrl(links) + "\"", "identifier", delimiter, before,dcatField);
    }
    return before;
  }
View Full Code Here

    printTab();
    for (DcatField dcatField : dcatFields) {
      before = lookUpFieldFromDcat(r, dcatField, before);
    }
    ResourceLinks links = r.getResourceLinks();
    printLinks(links, false, before);
  }
View Full Code Here

      IFeedAttribute indexValue = index.get(fld);
      String val = "";
      if (indexValue == null) {
        if(dcatField.isRequired()){
          if(dcatFieldName.equalsIgnoreCase("accessURL")){
            ResourceLinks links = r.getResourceLinks();
            for (int j = 0; j < links.size(); j++) {
                ResourceLink link = links.get(j);
                if (link.getTag().equals(ResourceLink.TAG_METADATA)) {             
                  val = link.getUrl();
                  break;
                }
            }
View Full Code Here

   * @param record record
   */
  private void writeLinks(IFeedRecord record) {
    _writer.println("<div class=\"" + LINKS_STYLE_CLASS + "\">");
   
    ResourceLinks links = record.getResourceLinks();
    writeLinks(links);
   
    _writer.println("</div>");
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.search.ResourceLinks$UrlsByTag

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.