Java Doc for FeatureTypeInfo.java in  » GIS » GeoServer » org » vfny » geoserver » global » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoServer » org.vfny.geoserver.global 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.vfny.geoserver.global.GlobalLayerSupertype
      org.vfny.geoserver.global.FeatureTypeInfo

All known Subclasses:   org.vfny.geoserver.global.TemporaryFeatureTypeInfo,
FeatureTypeInfo
public class FeatureTypeInfo extends GlobalLayerSupertype (Code)
Represents a FeatureTypeInfo, its user config and autodefined information.

This class implements org.geotools.catalog.Service interface as a link to a catalog.


author:
   Gabriel Rold?n
author:
   Chris Holmes
author:
   dzwiers
author:
   Charles Kolbowicz
version:
   $Id: FeatureTypeInfo.java 8391 2008-02-13 16:44:23Z aaime $


Field Summary
public static  intFORCE
    
public static  intLEAVE
    
public static  intREPROJECT
    
 StringtypeName
    

Constructor Summary
public  FeatureTypeInfo()
     dont use this unless you know what you're doing.
public  FeatureTypeInfo(FeatureTypeInfoDTO dto, Data data)
     FeatureTypeInfo constructor.

Method Summary
public synchronized  AttributeTypeInfoAttributeTypeMetaData(String attributeName)
     Implement AttributeTypeMetaData.
public  booleancontainsMetaData(String key)
     Implement containsMetaData.
public  StringgetAbstract()
     Get abstract (description) of FeatureType.
protected  StringgetAttribute(Element elem, String attName, boolean mandatory)
     getAttribute purpose.

XLM helper method.


Parameters:
  elem - The element to work on.
Parameters:
  attName - The attribute name to find
Parameters:
  mandatory - true is an exception is be thrown when the attr is notfound.
public  ListgetAttributeNames()
     FeatureType attributes names as a List.

Convience method for accessing attribute names as a Collection.

public  ListgetAttributes()
     Returns a list of the attributeTypeInfo objects that make up this FeatureType.
public  EnvelopegetBoundingBox()
     Returns the FeatureType's envelope in its native CRS (or user declared CRS, if any).
public  StringgetCacheMaxAge()
     This value is added the headers of generated maps, marking them as being both "cache-able" and designating the time for which they are to remain valid.
public  DataStoreInfogetDataStoreInfo()
     getDataStore purpose.

gets the string of the path to the schema file.

public  DataStoreInfogetDataStoreMetaData()
     Implement getDataStoreMetaData.
public  CoordinateReferenceSystemgetDeclaredCRS()
    
 GeometryAttributeTypegetDefaultGeometry()
    
public  StylegetDefaultStyle()
     By now just return the default style to be able to declare it in WMS capabilities, but all this stuff needs to be revisited since it seems currently there is no way of retrieving all the styles declared for a given FeatureType.
public  FiltergetDefinitionQuery()
     getDefinitionQuery purpose.
public  StringgetDirName()
    
public  FeatureSourcegetFeatureSource()
     getFeatureSource purpose.
public  FeatureSourcegetFeatureSource(boolean skipReproject)
     If this layers has been setup to reproject data, skipReproject = true will disable reprojection.
public  FeatureTypegetFeatureType()
     Access real geotools2 FeatureType.
public  ListgetKeywords()
     Keywords describing content of FeatureType.
public  EnvelopegetLatLongBoundingBox()
     getLatLongBoundingBox purpose.
public  LegendURLgetLegendURL()
     getLegendURL purpose.
public  intgetMaxFeatures()
    
public  ObjectgetMetaData(String key)
     Implement getMetaData.
public  ListgetMetadataLinks()
     Metadata links providing metadata access for FeatureTypes.
public  StringgetName()
     Complete xml name (namespace:element> for this FeatureType.
public  NameSpaceInfogetNameSpace()
     Gets the namespace for this featureType.

This isn't _really_ necessary, but I'm putting it in in case we change namespaces, letting FeatureTypes set their own namespaces instead of being dependant on datasources.

public  CoordinateReferenceSystemgetNativeCRS()
    
public  StringgetNativeTypeName()
     Access the name of this SimpleFeatureType.
public  intgetNumDecimals()
     getNumDecimals purpose.
public  StringgetPrefix()
     Returns the XML prefix used for GML output of this FeatureType.
public  StringgetSRS()
     getSRS purpose.
public  StringgetSchemaBase()
     getSchemaName purpose.
public  FilegetSchemaFile()
     Gets the schema.xml file associated with this FeatureType.
public  StringgetSchemaName()
     A valid schema name for this FeatureType.
public  ArrayListgetStyles()
    
public  StringgetTitle()
     getTitle purpose.
public  StringgetTypeName()
     Access the name of this FeatureType.
public  StringgetWmsPath()
    
public  booleanisCachingEnabled()
    
public  booleanisEnabled()
     Indicates if this FeatureTypeInfo is enabled.
public  booleanisGeometryless()
    
public  voidputMetaData(String key, Object value)
     Implement putMetaData.
public  voidsetCacheMaxAge(String cacheMaxAge)
    
public  voidsetCachingEnabled(boolean cachingEnabled)
    
public  voidsetMaxFeatures(int maxFeatures)
    
public  voidsetSchemaBase(String string)
     setSchemaName purpose.
public  voidsetSchemaName(String string)
     setSchemaName purpose.
public  voidsetWmsPath(String wmsPath)
    
public  ObjecttoDTO()
     toDTO purpose.

This method is package visible only, and returns a reference to the GeoServerDTO.


Field Detail
FORCE
public static int FORCE(Code)
Force declared SRS



LEAVE
public static int LEAVE(Code)
Don't do anything, declared and actual are equal



REPROJECT
public static int REPROJECT(Code)
Reproject to declared SRS



typeName
String typeName(Code)
typeName as defined by gt2 DataStore




Constructor Detail
FeatureTypeInfo
public FeatureTypeInfo()(Code)
dont use this unless you know what you're doing. its for TemporaryFeatureTypeInfo.



FeatureTypeInfo
public FeatureTypeInfo(FeatureTypeInfoDTO dto, Data data) throws ConfigurationException(Code)
FeatureTypeInfo constructor.

Generates a new object from the data provided.


Parameters:
  dto - FeatureTypeInfoDTO The data to populate this class with.
Parameters:
  data - Data a reference for future use to get at DataStoreInfoinstances
throws:
  ConfigurationException -




Method Detail
AttributeTypeMetaData
public synchronized AttributeTypeInfo AttributeTypeMetaData(String attributeName)(Code)
Implement AttributeTypeMetaData.

Description ...


Parameters:
  attributeName -
See Also:   org.geotools.data.FeatureTypeMetaData.AttributeTypeMetaData(java.lang.String)



containsMetaData
public boolean containsMetaData(String key)(Code)
Implement containsMetaData.
Parameters:
  key -
See Also:   org.geotools.data.MetaData.containsMetaData(java.lang.String)



getAbstract
public String getAbstract()(Code)
Get abstract (description) of FeatureType. Short description of FeatureType



getAttribute
protected String getAttribute(Element elem, String attName, boolean mandatory) throws ConfigurationException(Code)
getAttribute purpose.

XLM helper method.


Parameters:
  elem - The element to work on.
Parameters:
  attName - The attribute name to find
Parameters:
  mandatory - true is an exception is be thrown when the attr is notfound. String the Attr value
throws:
  ConfigurationException - thrown when an error occurs.



getAttributeNames
public List getAttributeNames()(Code)
FeatureType attributes names as a List.

Convience method for accessing attribute names as a Collection. You may use the names for AttributeTypeMetaData lookup or with the schema for XPATH queries.

List of attribute names
See Also:   org.geotools.data.FeatureTypeMetaData.getAttributeNames



getAttributes
public List getAttributes()(Code)
Returns a list of the attributeTypeInfo objects that make up this FeatureType. list of attributeTypeInfo objects.



getBoundingBox
public Envelope getBoundingBox() throws IOException(Code)
Returns the FeatureType's envelope in its native CRS (or user declared CRS, if any).

Note the Envelope is cached in order to avoid a potential performance penalty every time this value is requires (for example, at every GetCapabilities request)

Envelope of the feature source bounds.
throws:
  IOException - when an error occurs



getCacheMaxAge
public String getCacheMaxAge()(Code)
This value is added the headers of generated maps, marking them as being both "cache-able" and designating the time for which they are to remain valid. The specific header added is "Cache-Control: max-age=" a string representing the number of seconds to be added to the "Cache-Control: max-age=" header



getDataStoreInfo
public DataStoreInfo getDataStoreInfo()(Code)
getDataStore purpose.

gets the string of the path to the schema file. This is set during feature reading, the schema file should be in the same folder as the feature type info, with the name schema.xml. This function does not guarantee that the schema file actually exists, it just gives the location where it _should_ be located.

DataStoreInfo the requested DataStoreInfo if it was found.
See Also:   Data.getDataStoreInfo(String)



getDataStoreMetaData
public DataStoreInfo getDataStoreMetaData()(Code)
Implement getDataStoreMetaData.
See Also:   org.geotools.data.FeatureTypeMetaData.getDataStoreMetaData



getDeclaredCRS
public CoordinateReferenceSystem getDeclaredCRS()(Code)
Returns the declared CRS, that is, the CRS specified in the feature type editor form



getDefaultGeometry
GeometryAttributeType getDefaultGeometry() throws IOException(Code)
Returns the default geometry for this feature type
throws:
  IOException - if the layer is not properly configured



getDefaultStyle
public Style getDefaultStyle()(Code)
By now just return the default style to be able to declare it in WMS capabilities, but all this stuff needs to be revisited since it seems currently there is no way of retrieving all the styles declared for a given FeatureType. the default Style for the FeatureType



getDefinitionQuery
public Filter getDefinitionQuery()(Code)
getDefinitionQuery purpose.

Returns the definition query for this feature source

Filter the definition query



getDirName
public String getDirName()(Code)



getFeatureSource
public FeatureSource getFeatureSource() throws IOException(Code)
getFeatureSource purpose.

Returns a real FeatureSource.

FeatureSource the feature source represented by this info class
throws:
  IOException - when an error occurs.



getFeatureSource
public FeatureSource getFeatureSource(boolean skipReproject) throws IOException(Code)
If this layers has been setup to reproject data, skipReproject = true will disable reprojection. This method is build especially for the rendering subsystem that should be able to perform a full reprojection on its own, and do generalization before reprojection (thus avoid to reproject all of the original coordinates)



getFeatureType
public FeatureType getFeatureType() throws IOException(Code)
Access real geotools2 FeatureType. Schema information.
throws:
  IOException -
See Also:   org.geotools.data.FeatureTypeMetaData.getFeatureType



getKeywords
public List getKeywords()(Code)
Keywords describing content of FeatureType.

Keywords are often used by Search engines or Catalog services.

List the FeatureTypeInfo keywords



getLatLongBoundingBox
public Envelope getLatLongBoundingBox() throws IOException(Code)
getLatLongBoundingBox purpose.

The feature source lat/long bounds.

Envelope the feature source lat/long bounds.
throws:
  IOException - when an error occurs



getLegendURL
public LegendURL getLegendURL()(Code)
getLegendURL purpose.

returns the FeatureTypeInfo legendURL

String the FeatureTypeInfo legendURL



getMaxFeatures
public int getMaxFeatures()(Code)
Returns the maximum number of features to be served by WFS GetFeature for this feature type (or 0 for no limit)



getMetaData
public Object getMetaData(String key)(Code)
Implement getMetaData.
Parameters:
  key -
See Also:   org.geotools.data.MetaData.getMetaData(java.lang.String)



getMetadataLinks
public List getMetadataLinks()(Code)
Metadata links providing metadata access for FeatureTypes. List the FeatureTypeInfo metadata links



getName
public String getName()(Code)
Complete xml name (namespace:element> for this FeatureType. This is the full type name with namespace prefix. String the FeatureTypeInfo name - should be unique for theparent Data instance.



getNameSpace
public NameSpaceInfo getNameSpace()(Code)
Gets the namespace for this featureType.

This isn't _really_ necessary, but I'm putting it in in case we change namespaces, letting FeatureTypes set their own namespaces instead of being dependant on datasources. This method will allow us to make that change more easily in the future. NameSpaceInfo the namespace specified for the specifiedDataStoreInfo (by ID)
throws:
  IllegalStateException - THrown when disabled.




getNativeCRS
public CoordinateReferenceSystem getNativeCRS() throws IOException(Code)



getNativeTypeName
public String getNativeTypeName()(Code)
Access the name of this SimpleFeatureType.

This is the typeName as provided by the gt2 datastore, even when an alias is set

String getName()
See Also:   org.geotools.data.FeatureTypeMetaData.getTypeName



getNumDecimals
public int getNumDecimals()(Code)
getNumDecimals purpose.

The default number of decimals allowed in the data.

int the default number of decimals allowed in the data.



getPrefix
public String getPrefix()(Code)
Returns the XML prefix used for GML output of this FeatureType.

Returns the namespace prefix for this FeatureTypeInfo.

String the namespace prefix.



getSRS
public String getSRS()(Code)
getSRS purpose.

Proprietary identifier number

int the SRS number.



getSchemaBase
public String getSchemaBase()(Code)
getSchemaName purpose.

Description ...




getSchemaFile
public File getSchemaFile()(Code)
Gets the schema.xml file associated with this FeatureType. This is set during the reading of configuration, it is not persisted as an element of the FeatureTypeInfoDTO, since it is just whether the schema.xml file was persisted, and its location. If there is no schema.xml file then this method will return a File object with the location where the schema file would be located, but the file will return false for exists().



getSchemaName
public String getSchemaName()(Code)
A valid schema name for this FeatureType. schemaName if provided or typeName+"_Type"



getStyles
public ArrayList getStyles()(Code)



getTitle
public String getTitle()(Code)
getTitle purpose.

returns the FeatureTypeInfo title

String the FeatureTypeInfo title



getTypeName
public String getTypeName()(Code)
Access the name of this FeatureType.

This is the typeName as provided by the gt2 datastore, unless an alias is set, in that case the alias is returned

String getName()
See Also:   org.geotools.data.FeatureTypeMetaData.getTypeName



getWmsPath
public String getWmsPath()(Code)



isCachingEnabled
public boolean isCachingEnabled()(Code)
Should we add the cache-control: max-age header to maps containing this layer? true if we should, false if we should omit the header



isEnabled
public boolean isEnabled()(Code)
Indicates if this FeatureTypeInfo is enabled. For now just gets whether the backing datastore is enabled. true if this FeatureTypeInfo is enabled.



isGeometryless
public boolean isGeometryless() throws IOException(Code)
If true, the layer does not have a default geometry
throws:
  IOException -



putMetaData
public void putMetaData(String key, Object value)(Code)
Implement putMetaData.
Parameters:
  key -
Parameters:
  value -
See Also:   org.geotools.data.MetaData.putMetaData(java.lang.Stringjava.lang.Object)



setCacheMaxAge
public void setCacheMaxAge(String cacheMaxAge)(Code)

Parameters:
  cacheMaxAge - a string representing the number of seconds to be added to the "Cache-Control: max-age=" header



setCachingEnabled
public void setCachingEnabled(boolean cachingEnabled)(Code)
Sets whether we should add the cache-control: max-age header to maps containing this layer
Parameters:
  cachingEnabled - true if we should add the header, false if we should omit the header



setMaxFeatures
public void setMaxFeatures(int maxFeatures)(Code)



setSchemaBase
public void setSchemaBase(String string)(Code)
setSchemaName purpose.

Description ...


Parameters:
  string -



setSchemaName
public void setSchemaName(String string)(Code)
setSchemaName purpose.

Description ...


Parameters:
  string -



setWmsPath
public void setWmsPath(String wmsPath)(Code)



toDTO
public Object toDTO()(Code)
toDTO purpose.

This method is package visible only, and returns a reference to the GeoServerDTO. This method is unsafe, and should only be used with extreme caution.

FeatureTypeInfoDTO the generated object



Fields inherited from org.vfny.geoserver.global.GlobalLayerSupertype
final protected static Logger LOGGER(Code)(Java Doc)

Methods inherited from org.vfny.geoserver.global.GlobalLayerSupertype
public static String get(Map map, String key)(Code)(Java Doc)
public static File get(Map map, String key, File defaultFile)(Code)(Java Doc)
public static String get(Map map, String key, String defaultValue)(Code)(Java Doc)
public static List get(Map map, String key, List defaultList)(Code)(Java Doc)
public static Map get(Map map, String key, Map defaultMap)(Code)(Java Doc)
public static int get(Map map, String key, int defaultValue)(Code)(Java Doc)
public static boolean get(Map map, String key, boolean defaultValue)(Code)(Java Doc)
public static Charset get(Map map, String key, Charset defaultCharSet)(Code)(Java Doc)
public static Level get(Map map, String key, Level defaultLevel)(Code)(Java Doc)
public static URL get(Map map, String key, URL defaultUrl)(Code)(Java Doc)
public static Class get(Map map, String key, Class defaultType)(Code)(Java Doc)
protected String notNull(String s)(Code)(Java Doc)
abstract Object toDTO()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.