|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.global.GlobalLayerSupertype org.vfny.geoserver.global.FeatureTypeInfo
Represents a FeatureTypeInfo, its user config and autodefined information.
Field Summary | |
protected static java.util.logging.Logger |
LOGGER
for debugging |
Constructor Summary | |
FeatureTypeInfo(FeatureTypeInfoDTO dto,
Data data)
FeatureTypeInfo constructor. |
Method Summary | |
org.geotools.data.AttributeTypeMetaData |
AttributeTypeMetaData(java.lang.String attributeName)
Implement AttributeTypeMetaData. |
boolean |
containsMetaData(java.lang.String key)
Implement containsMetaData. |
static java.lang.String |
get(java.util.Map map,
java.lang.String key)
get purpose. |
static boolean |
get(java.util.Map map,
java.lang.String key,
boolean defaultValue)
get purpose. |
static java.nio.charset.Charset |
get(java.util.Map map,
java.lang.String key,
java.nio.charset.Charset defaultCharSet)
get purpose. |
static java.lang.Class |
get(java.util.Map map,
java.lang.String key,
java.lang.Class defaultType)
get purpose. |
static java.io.File |
get(java.util.Map map,
java.lang.String key,
java.io.File defaultFile)
get purpose. |
static int |
get(java.util.Map map,
java.lang.String key,
int defaultValue)
get purpose. |
static java.util.logging.Level |
get(java.util.Map map,
java.lang.String key,
java.util.logging.Level defaultLevel)
get purpose. |
static java.util.List |
get(java.util.Map map,
java.lang.String key,
java.util.List defaultList)
get purpose. |
static java.util.Map |
get(java.util.Map map,
java.lang.String key,
java.util.Map defaultMap)
get purpose. |
static java.lang.String |
get(java.util.Map map,
java.lang.String key,
java.lang.String defaultValue)
get purpose. |
static java.net.URL |
get(java.util.Map map,
java.lang.String key,
java.net.URL defaultUrl)
get purpose. |
java.lang.String |
getAbstract()
Get abstract (description) of FeatureType. |
protected java.lang.String |
getAttribute(org.w3c.dom.Element elem,
java.lang.String attName,
boolean mandatory)
getAttribute purpose. |
java.util.List |
getAttributeNames()
FeatureType attributes names as a List. |
com.vividsolutions.jts.geom.Envelope |
getBoundingBox()
getBoundingBox purpose. |
DataStoreInfo |
getDataStoreInfo()
getDataStore purpose. |
org.geotools.data.DataStoreMetaData |
getDataStoreMetaData()
Implement getDataStoreMetaData. |
org.geotools.filter.Filter |
getDefinitionQuery()
getDefinitionQuery purpose. |
org.geotools.data.FeatureSource |
getFeatureSource()
getFeatureSource purpose. |
org.geotools.feature.FeatureType |
getFeatureType()
Access real geotools2 FeatureType. |
java.util.List |
getKeywords()
Keywords describing content of FeatureType. |
com.vividsolutions.jts.geom.Envelope |
getLatLongBoundingBox()
getLatLongBoundingBox purpose. |
java.lang.Object |
getMetaData(java.lang.String key)
Implement getMetaData. |
java.lang.String |
getName()
overrides getName to return full type name with namespace prefix |
java.lang.String |
getName(boolean allowShort)
Convenience method for those who just want to report the name of the featureType instead of requiring the full name for look up. |
NameSpaceInfo |
getNameSpace()
Gets the namespace for this featureType. |
int |
getNumDecimals()
getNumDecimals purpose. |
java.lang.String |
getPrefix()
Returns the XML prefix used for GML output of this FeatureType. |
java.lang.String |
getSchemaBase()
getSchemaName purpose. |
java.lang.String |
getSchemaName()
getSchemaName purpose. |
java.lang.String |
getShortName()
Same as getName() |
java.lang.String |
getSRS()
getSRS purpose. |
java.lang.String |
getTitle()
getTitle purpose. |
java.lang.String |
getTypeName()
Access typeName. |
java.lang.String |
getXMLSchema()
Get XMLSchema for this FeatureType. |
boolean |
isEnabled()
Indicates if this FeatureTypeInfo is enabled. |
static org.w3c.dom.Element |
loadConfig(java.io.Reader fis)
loadConfig purpose. |
protected java.lang.String |
notNull(java.lang.String s)
checks s for nullity and if so, returns an empty String,
else just returns s |
void |
putMetaData(java.lang.String key,
java.lang.Object value)
Implement putMetaData. |
static org.geotools.data.FeatureSource |
reTypeSource(org.geotools.data.FeatureSource source,
FeatureTypeInfoDTO ftc)
|
void |
setSchemaBase(java.lang.String string)
setSchemaName purpose. |
void |
setSchemaName(java.lang.String string)
setSchemaName purpose. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.util.logging.Logger LOGGER
Constructor Detail |
public FeatureTypeInfo(FeatureTypeInfoDTO dto, Data data) throws ConfigurationException
Generates a new object from the data provided.
dto
- FeatureTypeInfoDTO The data to populate this class with.data
- Data a reference for future use to get at DataStoreInfo
instances
ConfigurationException
Method Detail |
public int getNumDecimals()
The default number of decimals allowed in the data.
public DataStoreInfo getDataStoreInfo()
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.
Data.getDataStoreInfo(String)
public boolean isEnabled()
public java.lang.String getPrefix()
Returns the namespace prefix for this FeatureTypeInfo. This prefix also seems to be used as a "ID" for looking up GeoServer Namespace.
public NameSpaceInfo getNameSpace()
java.lang.IllegalStateException
- THrown when disabled.public java.lang.String getName()
public java.lang.String getName(boolean allowShort)
allowShort
- does nothing
getName()
public java.lang.String getShortName()
getName()
public org.geotools.data.FeatureSource getFeatureSource() throws java.io.IOException
Returns a real FeatureSource.
getFeatureSource
in interface org.geotools.data.FeatureTypeMetaData
java.io.IOException
- when an error occurs.
org.geotools.data.DataSourceException
- DOCUMENT ME!public static org.geotools.data.FeatureSource reTypeSource(org.geotools.data.FeatureSource source, FeatureTypeInfoDTO ftc) throws org.geotools.feature.SchemaException
org.geotools.feature.SchemaException
public com.vividsolutions.jts.geom.Envelope getBoundingBox() throws java.io.IOException
The feature source bounds.
java.io.IOException
- when an error occurspublic org.geotools.filter.Filter getDefinitionQuery()
Returns the definition query for this feature source
public com.vividsolutions.jts.geom.Envelope getLatLongBoundingBox() throws java.io.IOException
The feature source lat/long bounds.
java.io.IOException
- when an error occurspublic java.lang.String getSRS()
Proprietary identifier number
public java.lang.String getXMLSchema() throws java.io.IOException
Note this may require connection to the real geotools2 DataStore and as such is subject to IOExceptions.
You have been warned.
java.io.IOException
- DOCUMENT ME!protected java.lang.String getAttribute(org.w3c.dom.Element elem, java.lang.String attName, boolean mandatory) throws ConfigurationException
XLM helper method.
elem
- The element to work on.attName
- The attribute name to findmandatory
- true is an exception is be thrown when the attr is not
found.
ConfigurationException
- thrown when an error occurs.public static org.w3c.dom.Element loadConfig(java.io.Reader fis) throws ConfigurationException
Parses the specified file into a DOM tree.
fis
- The file to parse int a DOM tree.
ConfigurationException
public java.lang.String getAbstract()
public java.util.List getKeywords()
Keywords are often used by Search engines or Catalog services.
public java.lang.String getTitle()
returns the FeatureTypeInfo title
public java.lang.String getSchemaName()
Description ...
public void setSchemaName(java.lang.String string)
Description ...
string
- public java.lang.String getSchemaBase()
Description ...
public void setSchemaBase(java.lang.String string)
Description ...
string
- public java.lang.String getTypeName()
getTypeName
in interface org.geotools.data.FeatureTypeMetaData
FeatureTypeMetaData.getTypeName()
public org.geotools.feature.FeatureType getFeatureType() throws java.io.IOException
getFeatureType
in interface org.geotools.data.FeatureTypeMetaData
java.io.IOException
FeatureTypeMetaData.getFeatureType()
public org.geotools.data.DataStoreMetaData getDataStoreMetaData()
getDataStoreMetaData
in interface org.geotools.data.FeatureTypeMetaData
FeatureTypeMetaData.getDataStoreMetaData()
public java.util.List getAttributeNames()
Convience method for accessing attribute names as a Collection. You may use the names for AttributeTypeMetaData lookup or with the schema for XPATH queries.
getAttributeNames
in interface org.geotools.data.FeatureTypeMetaData
FeatureTypeMetaData.getAttributeNames()
public org.geotools.data.AttributeTypeMetaData AttributeTypeMetaData(java.lang.String attributeName)
Description ...
AttributeTypeMetaData
in interface org.geotools.data.FeatureTypeMetaData
attributeName
-
FeatureTypeMetaData.AttributeTypeMetaData(java.lang.String)
public boolean containsMetaData(java.lang.String key)
containsMetaData
in interface org.geotools.data.MetaData
key
-
MetaData.containsMetaData(java.lang.String)
public void putMetaData(java.lang.String key, java.lang.Object value)
putMetaData
in interface org.geotools.data.MetaData
key
- value
- MetaData.putMetaData(java.lang.String,
java.lang.Object)
public java.lang.Object getMetaData(java.lang.String key)
getMetaData
in interface org.geotools.data.MetaData
key
-
MetaData.getMetaData(java.lang.String)
protected java.lang.String notNull(java.lang.String s)
s
for nullity and if so, returns an empty String,
else just returns s
s
- String
public static java.lang.String get(java.util.Map map, java.lang.String key)
Gets a String from a map of Strings
map
- Map the map to extract the string fromkey
- String the key for the map.
Map
public static java.io.File get(java.util.Map map, java.lang.String key, java.io.File defaultFile)
Gets a File from a map given the specified key. If the file is not found the default file is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultFile
- The default value should the key not exist.
public static java.lang.String get(java.util.Map map, java.lang.String key, java.lang.String defaultValue)
Gets a String from a map of Strings, and returns the default if the string does not exist.
map
- Map the map to extract the string fromkey
- String the key for the map.defaultValue
- The default value should the key not exist.
Map
public static java.util.List get(java.util.Map map, java.lang.String key, java.util.List defaultList)
Gets a List from a map given the specified key. If the list is not found the default list is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultList
- The default value should the key not exist.
public static java.util.Map get(java.util.Map map, java.lang.String key, java.util.Map defaultMap)
Gets a Map from a map given the specified key. If the map is not found the default map is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultMap
- The default value should the key not exist.
public static int get(java.util.Map map, java.lang.String key, int defaultValue)
Gets a int from a map given the specified key. If the int is not found the default int is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultValue
- The default value should the key not exist.
public static boolean get(java.util.Map map, java.lang.String key, boolean defaultValue)
Gets a boolean from a map given the specified key. If the boolean is not found the default boolean is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultValue
- The default value should the key not exist.
public static java.nio.charset.Charset get(java.util.Map map, java.lang.String key, java.nio.charset.Charset defaultCharSet)
Gets a Charset from a map given the specified key. If the Charset is not found the default Charset is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultCharSet
- The default value should the key not exist.
public static java.util.logging.Level get(java.util.Map map, java.lang.String key, java.util.logging.Level defaultLevel)
Gets a Level from a map given the specified key. If the Level is not found the default Level is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultLevel
- The default value should the key not exist.
public static java.net.URL get(java.util.Map map, java.lang.String key, java.net.URL defaultUrl)
Gets a URL from a map given the specified key. If the URL is not found the default URL is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultUrl
- The default value should the key not exist.
public static java.lang.Class get(java.util.Map map, java.lang.String key, java.lang.Class defaultType)
Gets a Class from a map given the specified key. If the Class is not found the default Class is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultType
- The default value should the key not exist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |