org.geoserver.catalog.LayerGroupInfo Maven / Gradle / Ivy
The newest version!
/* Copyright (c) 2001 - 2008 TOPP - www.openplans.org. All rights reserved.
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.catalog;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import org.geotools.geometry.jts.ReferencedEnvelope;
/**
* A map in which the layers grouped together can be referenced as
* a regular layer.
*
* @author Justin Deoliveira, The Open Planning Project
*
*/
public interface LayerGroupInfo {
String getId();
/**
* The name of the layer group.
*/
String getName();
/**
* Sets the name of the layer group.
*/
void setName( String name );
/**
* The layers in the group.
*/
List getLayers();
/**
* The styles for the layers in the group.
*
* This list is a 1-1 correspondence to {@link #getLayers()}.
*
*/
List getStyles();
/**
* The bounds for the base map.
*/
ReferencedEnvelope getBounds();
/**
* Sets the bounds for the base map.
*/
void setBounds( ReferencedEnvelope bounds );
/**
* A persistent map of metadata.
*
* Data in this map is intended to be persisted. Common case of use is to
* have services associate various bits of data with a particular layer group.
* An example might include caching information.
*
*
* The key values of this map are of type {@link String} and values are of
* type {@link Serializable}.
*
*
*/
Map getMetadata();
}