Exemple #1
0
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();

    for (DCPInfo dcpi : this.getDCPInfos()) {
      sb.append(dcpi.protocol).append(", ");
      sb.append(dcpi.method).append(", ");
      sb.append(dcpi.onlineResource.toString());
    }

    return sb.toString();
  }
  @Override
  public String toString() // TODO: Complete this method
      {
    StringBuilder sb = new StringBuilder(super.toString());

    sb.append("LAYERS\n");

    for (WMSLayerCapabilities layerCaps : this.getNamedLayers()) {
      sb.append(layerCaps.toString()).append("\n");
    }

    return sb.toString();
  }