Examples of guessArcIMSContentTypeFromResourceType()


Examples of com.esri.gpt.catalog.search.ResourceIdentifier.guessArcIMSContentTypeFromResourceType()

       
    // classify the ArcIMS content type from the resource URL
    String aimsContentType = Val.chkStr(this.getFirstStoreableValue(Meaning.MEANINGTYPE_CONTENTTYPE));
    if (aimsContentType.length() > 0) {
      ResourceIdentifier ri = ensureResourceIdentifier();
      aimsContentType = Val.chkStr(ri.guessArcIMSContentTypeFromResourceType(aimsContentType));
    }
    if (aimsContentType.length() == 0) {
      PropertyMeaning meaning = this.getPropertyMeanings().get(Meaning.MEANINGTYPE_CONTENTTYPE);
      IStoreable storeable = this.getStoreables().get(Meaning.MEANINGTYPE_RESOURCE_URL);
      if ((meaning != null) && (storeable != null)) {
View Full Code Here

Examples of com.esri.gpt.catalog.search.ResourceIdentifier.guessArcIMSContentTypeFromResourceType()

      if (Val.chkStr(meaning.getName()).equalsIgnoreCase("contentType")) {
        ArrayList<String> al = new ArrayList<String>();
        boolean changed = false;
        ResourceIdentifier ri = context.ensureResourceIdentifier();
        for (String value: values) {
          String s = Val.chkStr(ri.guessArcIMSContentTypeFromResourceType(value));
          if ((s != null) && (s.length() > 0)) {
            al.add(s);
            changed = true;
          } else {
            // TODO: allow non-enumerated values?
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.