Package com.esri.gpt.catalog.discovery

Examples of com.esri.gpt.catalog.discovery.PropertyMeaning


  public void ensureMinimals() {
    if (getMeaning().getTitle().length() == 0) {
      getMeaning().setTitle("Untitled");
    }
    if (!getMeaning().getEnvelope().isValid()) {
      PropertyMeaning meaning = this.getPropertyMeanings().get("geometry");
      if ((meaning != null) && (meaning instanceof PropertyMeaning.Geometry)) {
        Envelope def = ((PropertyMeaning.Geometry)meaning).getDefaultEnvelope();
        if ((def != null) && def.isValid()) {
          getMeaning().getEnvelope().put(def.getMinX(),def.getMinY(),def.getMaxX(),def.getMaxY());
        }
View Full Code Here


    ServiceProperties svcProps = context.getServiceProperties();
    String httpContextPath = Val.chkStr(svcProps.getHttpContextPath());
    String cswBaseUrl = Val.chkStr(svcProps.getCswBaseURL());
    OperationResponse opResponse = context.getOperationResponse();
    Document responseDom = opResponse.getResponseDom();
    PropertyMeaning meaning = returnable.getMeaning();
    PropertyMeaningType meaningType = meaning.getMeaningType();
    Object[] values = returnable.getValues();
    DcElement dcElement = meaning.getDcElement();
    if ((dcElement == null) || dcElement.getElementName().startsWith("!")) {
      return;
    }
   
    // TODO create an empty element if the values are null?
    // return if the values are null
    if (values == null) {
      //Element elField = dom.createElement(returnable.getClientName());
      //elField.appendChild(dom.createTextNode(""));
      //record.appendChild(elField);
      return;
    }
   
    // add an element for each value found
    for (Object oValue: values) {
      if (oValue != null) {
        if (meaning.getValueType().equals(PropertyValueType.GEOMETRY)) {
          if (oValue instanceof Envelope) {
           
            // TODO include multiple envelope types in the response
            Envelope env = (Envelope)oValue;
            String sLower = env.getMinX()+" "+env.getMinY();
View Full Code Here

   * @return the storeable property (null if no match was located)
   */
  public IStoreable ensure(PropertyMeanings propertyMeanings, String meaningName) {
    IStoreable storeable = this.get(meaningName);
    if (storeable == null) {
      PropertyMeaning meaning = propertyMeanings.get(meaningName);
      if (meaning != null) {
        storeable = this.connect(meaning);
        if (storeable != null) {
          this.add(storeable);
        }
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.discovery.PropertyMeaning

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.