org.deegree_impl.clients.context
Class General

java.lang.Object
  extended byorg.deegree_impl.clients.context.General
All Implemented Interfaces:
Marshallable

public class General
extends java.lang.Object
implements Marshallable

The class encapsulates the general informations common to all types of contexts

Version:
$Revision: 1.7 $
Author:
Andreas Poth

Field Summary
private  java.lang.String abstract_
           
private  GM_Point[] boundingBox
           
private  ContactInformation contactInformation
           
private  BaseURL descriptionURL
           
private  Marshallable extension
           
private  java.lang.String[] keywords
           
private  ImageURL logoURL
           
private  java.lang.String title
           
private  java.awt.Rectangle window
           
 
Constructor Summary
General(java.lang.String title, java.lang.String abstract_, java.awt.Rectangle window, ContactInformation contactInformation, GM_Point[] boundingBox, BaseURL descriptionURL, ImageURL logoURL, java.lang.String[] keywords, Marshallable extension)
          Creates a new General object.
 
Method Summary
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 java.lang.String getAbstract()
           
 GM_Point[] getBoundingBox()
           
 ContactInformation getContactInformation()
           
 BaseURL getDescriptionURL()
           
 Marshallable getExtension()
           
 java.lang.String[] getKeywords()
           
 ImageURL getLogoURL()
           
 java.lang.String getTitle()
           
 java.awt.Rectangle getWindow()
           
 void setAbstract(java.lang.String abstract_)
          An element “Abstract” that contains a description for the Context document describing its content.
 void setBoundingBox(GM_Point[] boundingBox)
          “BoundingBox” formatted as defined in the WMS 1.1.1 Specification.
 void setContactInformation(ContactInformation contactInformation)
          An element “ContactInformation” that presents contact information of the creator of the Context document.
 void setDescriptionURL(BaseURL descriptionURL)
          A URL reference to a webpage which contains relevant information to the view.
 void setExtension(Marshallable extension)
          The Extension element is a container tag in which arbitrary vendor specific information can be included without compromising the ability of other clients to enforce schema validation.
 void setKeywords(java.lang.String[] keywords)
          An element “KeywordList” that contains one or more Keyword elements which allow search across context collections.
 void setLogoURL(ImageURL logoURL)
          A reference to an image that might be attached to the Context document.
 void setTitle(java.lang.String title)
          An element “Title” that contains a human readable title of the Context.
 void setWindow(java.awt.Rectangle window)
          An element “Window” presenting the size in pixels of the map the Context document describes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contactInformation

private ContactInformation contactInformation

boundingBox

private GM_Point[] boundingBox

extension

private Marshallable extension

abstract_

private java.lang.String abstract_

title

private java.lang.String title

descriptionURL

private BaseURL descriptionURL

logoURL

private ImageURL logoURL

keywords

private java.lang.String[] keywords

window

private java.awt.Rectangle window
Constructor Detail

General

public General(java.lang.String title,
               java.lang.String abstract_,
               java.awt.Rectangle window,
               ContactInformation contactInformation,
               GM_Point[] boundingBox,
               BaseURL descriptionURL,
               ImageURL logoURL,
               java.lang.String[] keywords,
               Marshallable extension)
        throws ContextException
Creates a new General object.

Parameters:
title - title of the context
abstract_ - short description *
contactInformation - informations about creator of the context
boundingBox - bounding box of the map/data
descriptionURL - reference to a webpage which contains relevant information to the view.
logoURL - A reference to an image that might be attached to the context document.
keywords -
extension - The Extension element is a container tag in which arbitrary vendor specific information can be included without compromising the ability of other clients to enforce schema validation.
Throws:
ContextException
Method Detail

setWindow

public void setWindow(java.awt.Rectangle window)
An element “Window” presenting the size in pixels of the map the Context document describes. Negotiation between Context defined aspect ratio and typical client aspect ratio (according to the client’s vendor) is left to the client.

Parameters:
window -

setBoundingBox

public void setBoundingBox(GM_Point[] boundingBox)
                    throws ContextException
“BoundingBox” formatted as defined in the WMS 1.1.1 Specification. It represents the geographic extent that should be presented by the client1.

Parameters:
boundingBox -
Throws:
ContextException

setKeywords

public void setKeywords(java.lang.String[] keywords)
An element “KeywordList” that contains one or more Keyword elements which allow search across context collections.

Parameters:
keywords -

setTitle

public void setTitle(java.lang.String title)
              throws ContextException
An element “Title” that contains a human readable title of the Context.

Parameters:
title -
Throws:
ContextException

setAbstract

public void setAbstract(java.lang.String abstract_)
An element “Abstract” that contains a description for the Context document describing its content.

Parameters:
abstract_ -

setLogoURL

public void setLogoURL(ImageURL logoURL)
A reference to an image that might be attached to the Context document. It can be, for instance, the logo of the project for which the context has been setup, or an overview of the map the context describes. This element contains a link to the image as well as the dimension of the image (in pixels) and its format.

Parameters:
logoURL -

setDescriptionURL

public void setDescriptionURL(BaseURL descriptionURL)
A URL reference to a webpage which contains relevant information to the view.

Parameters:
descriptionURL -

setContactInformation

public void setContactInformation(ContactInformation contactInformation)
An element “ContactInformation” that presents contact information of the creator of the Context document. Contact is described as defined in WMS 1.1.1 Specification.

Parameters:
contactInformation -

setExtension

public void setExtension(Marshallable extension)
The Extension element is a container tag in which arbitrary vendor specific information can be included without compromising the ability of other clients to enforce schema validation.

This tag should not be used to introduce new candidate elements that are intended to promote interoperability. Content in an element should not be expected to be preserved in transfers of ViewContext documents between different systems.

Parameters:
extension -

getWindow

public java.awt.Rectangle getWindow()
Returns:

getBoundingBox

public GM_Point[] getBoundingBox()
Returns:

getKeywords

public java.lang.String[] getKeywords()
Returns:

getTitle

public java.lang.String getTitle()
Returns:

getAbstract

public java.lang.String getAbstract()
Returns:

getLogoURL

public ImageURL getLogoURL()
Returns:

getDescriptionURL

public BaseURL getDescriptionURL()
Returns:

getContactInformation

public ContactInformation getContactInformation()
Returns:

getExtension

public Marshallable getExtension()
Returns:

exportAsXML

public java.lang.String exportAsXML()
Description copied from interface: Marshallable
Produces an XML-representation of this object.

Specified by:
exportAsXML in interface Marshallable
Returns:
XML-representation of this object