Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/Capabilities.java @ 4474:bd78d2b0e309
Map print settings can now be configured via settings window.
Configurable for now are page layout (A0 or A4), caption text and
comment text.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Sun, 11 Nov 2012 14:44:12 +0100 |
parents | ea2aae01e7c4 |
children |
line wrap: on
line source
package de.intevation.flys.client.shared.model; import java.io.Serializable; import java.util.ArrayList; import java.util.List; public class Capabilities implements Serializable { protected String title; protected String onlineResource; protected String fees; protected String accessConstraints; protected ContactInformation contactInformation; protected List<WMSLayer> layers; public Capabilities() { layers = new ArrayList<WMSLayer>(); } /** * @param fees * @param accessConstraints * @param layers */ public Capabilities( String title, String onlineResource, ContactInformation contactInformation, String fees, String accessConstraints, List<WMSLayer> layers ) { this.title = title; this.onlineResource = onlineResource; this.contactInformation = contactInformation; this.fees = fees; this.accessConstraints = accessConstraints; this.layers = layers; } public String getTitle() { return title; } public String getOnlineResource() { return onlineResource; } public ContactInformation getContactInformation() { return contactInformation; } public String getFees() { return fees; } public String getAccessConstraints() { return accessConstraints; } public List<WMSLayer> getLayers() { return layers; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("--- Capabilities ---\n"); sb.append("Title:.............. " + title + "\n"); sb.append("Online Resource:.... " + onlineResource + "\n"); sb.append("Contact Information: " + contactInformation + "\n"); sb.append("Fees:............... " + fees + "\n"); sb.append("Access Constraints:. " + accessConstraints + "\n"); sb.append("Layers: "); for (WMSLayer layer: layers) { sb.append(" - " + layer + "\n"); } return sb.toString(); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :