|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDefaultResourceInfo
public class DefaultResourceInfo
Default implementation of ResourceInfo; a simple java bean.
Constructor Summary | |
---|---|
DefaultResourceInfo()
|
|
DefaultResourceInfo(ResourceInfo copy)
|
Method Summary | |
---|---|
ReferencedEnvelope |
getBounds()
Bounding box of the resource (in the native CRS), envelope isNull otherwise. |
CoordinateReferenceSystem |
getCRS()
Returns the CRS of the resource if known. |
String |
getDescription()
Resource's description or abstract. |
Set<String> |
getKeywords()
Keywords associated with this resource Known Mappings: Maps to Dublin Core's Subject element |
String |
getName()
Name of the resource with the context of its service. |
URI |
getSchema()
A URI used to identify the resource type. |
String |
getTitle()
Resource's title. |
void |
setBounds(ReferencedEnvelope bounds)
|
void |
setCRS(CoordinateReferenceSystem crs)
|
void |
setDescription(String description)
|
void |
setKeywords(Set<String> keywords)
|
void |
setName(String name)
|
void |
setSchema(URI schema)
|
void |
setTitle(String title)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultResourceInfo()
public DefaultResourceInfo(ResourceInfo copy)
Method Detail |
---|
public String getTitle()
ResourceInfo
The title is human readable text representing the resource, in the current locale if available.
getTitle
in interface ResourceInfo
public URI getSchema()
ResourceInfo
Known Mappings:
getSchema
in interface ResourceInfo
public String getName()
ResourceInfo
Known Mappings:
getName
in interface ResourceInfo
public Set<String> getKeywords()
ResourceInfo
Known Mappings:
getKeywords
in interface ResourceInfo
public String getDescription()
ResourceInfo
Known Mappings:
getDescription
in interface ResourceInfo
public ReferencedEnvelope getBounds()
ResourceInfo
You can transform this envelope to Lat Long with a single line:
info.getBounds().transform( DefaultGeographicCRS.WGS84, true );
Here are several other options for LatLong:
getBounds
in interface ResourceInfo
public CoordinateReferenceSystem getCRS()
ResourceInfo
Known Mappings:
getCRS
in interface ResourceInfo
public void setCRS(CoordinateReferenceSystem crs)
crs
- the crs to setpublic void setTitle(String title)
title
- the title to setpublic void setSchema(URI schema)
schema
- the schema to setpublic void setName(String name)
name
- the name to setpublic void setKeywords(Set<String> keywords)
keywords
- the keywords to setpublic void setDescription(String description)
description
- the description to setpublic void setBounds(ReferencedEnvelope bounds)
bounds
- the bounds to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |