org.n52.oxf.context
Class ContextCollection
java.lang.Object
org.n52.oxf.context.ContextCollection
- All Implemented Interfaces:
- IContextSerializableXML
public class ContextCollection
- extends Object
- implements IContextSerializableXML
Context Collections represent a list of context documents. Context collections could be used in several
ways:
A particular Viewer Client could use a Collection to construct a menu of default start-up views.
A Collection of related contexts could serve as a script for a demonstration.
A user could create a Collection to "bookmark" public or user-specific contexts. The creation of such
a Collection might be managed by the Viewer Client itself.
- Author:
- Arne Broering
|
Field Summary |
protected ArrayList<Context> |
contexts
|
protected String |
version
The published specification version number contains three positive integers, separated by decimal
point, in the form �x.y.z�. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
version
protected String version
- The published specification version number contains three positive integers, separated by decimal
point, in the form �x.y.z�. Each context collection specification is numbered independently. This
attribute is required.
contexts
protected ArrayList<Context> contexts
ContextCollection
public ContextCollection()
addContext
public void addContext(Context context)
- Parameters:
context -
getContextIterator
public Iterator<Context> getContextIterator()
- Returns:
getContextByID
public Context getContextByID(String id)
- Parameters:
id -
- Returns:
- the context with the specified id.
getLayerContexts
public List<LayerContext> getLayerContexts()
- Returns:
serializeToContext
public void serializeToContext(StringBuffer sb)
- Description copied from interface:
IContextSerializableXML
- serializes the implementing class (downwardly) compatible to the "Web Map
Context Documents" Specification (OGC 05-005) of the OGC in version
1.1.0.
- Specified by:
serializeToContext in interface IContextSerializableXML
Copyright © 2005 - 2010 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.