| java.lang.Object org.vfny.geoserver.global.GlobalLayerSupertype
All known Subclasses: org.vfny.geoserver.global.NameSpaceInfo, org.vfny.geoserver.global.MetaDataLink, org.vfny.geoserver.global.LegendURL, org.vfny.geoserver.global.GeoServer, org.vfny.geoserver.global.Data, org.vfny.geoserver.global.CoverageStoreInfo, org.vfny.geoserver.global.CoverageInfo, org.vfny.geoserver.global.CoverageDimension, org.vfny.geoserver.global.DataStoreInfo, org.vfny.geoserver.global.MapLayerInfo, org.vfny.geoserver.global.FeatureTypeInfo,
GlobalLayerSupertype | abstract class GlobalLayerSupertype (Code) | | This class implements some library function for all the sub classes in this
package. This class follows the Layer Supertype pattern as defined in
Fowler's Patterns of Enterprise Application Architecture. Here the pattern
is described in great detail between pages 475 and 479. The main idea is to
have a super class contain all the common functionality of the sub-classes
which does not pertain to particular manipulations within the classes.
author: Gabriel Rold�n author: dzwiers version: $Id: GlobalLayerSupertype.java 7746 2007-11-13 15:38:35Z aaime $ |
Method Summary | |
public static String | get(Map map, String key) get purpose.
Gets a String from a map of Strings
Parameters: map - Map the map to extract the string from Parameters: key - String the key for the map. | public static File | get(Map map, String key, File defaultFile) get purpose.
Gets a File from a map given the specified key. | public static String | get(Map map, String key, String defaultValue) get purpose.
Gets a String from a map of Strings, and returns the default if the
string does not exist.
Parameters: map - Map the map to extract the string from Parameters: key - String the key for the map. Parameters: defaultValue - The default value should the key not exist. | public static List | get(Map map, String key, List defaultList) get purpose.
Gets a List from a map given the specified key. | public static Map | get(Map map, String key, Map defaultMap) get purpose.
Gets a Map from a map given the specified key. | public static int | get(Map map, String key, int defaultValue) get purpose.
Gets a int from a map given the specified key. | public static boolean | get(Map map, String key, boolean defaultValue) get purpose.
Gets a boolean from a map given the specified key. | public static Charset | get(Map map, String key, Charset defaultCharSet) get purpose.
Gets a Charset from a map given the specified key. | public static Level | get(Map map, String key, Level defaultLevel) get purpose.
Gets a Level from a map given the specified key. | public static URL | get(Map map, String key, URL defaultUrl) get purpose.
Gets a URL from a map given the specified key. | public static Class | get(Map map, String key, Class defaultType) get purpose.
Gets a Class from a map given the specified key. | protected String | notNull(String s) | abstract Object | toDTO() getDTO purpose.
A hook to get the DTO object of all subclasses. |
LOGGER | final protected static Logger LOGGER(Code) | | for debugging
|
get | public static String get(Map map, String key)(Code) | | get purpose.
Gets a String from a map of Strings
Parameters: map - Map the map to extract the string from Parameters: key - String the key for the map. String the value in the map. See Also: Map |
get | public static File get(Map map, String key, File defaultFile)(Code) | | get purpose.
Gets a File from a map given the specified key. If the file is not found
the default file is returned.
Parameters: map - Map the map to extract the file from Parameters: key - String the key to extract the value for Parameters: defaultFile - The default value should the key not exist. File a File as described above. |
get | public static String get(Map map, String key, String defaultValue)(Code) | | get purpose.
Gets a String from a map of Strings, and returns the default if the
string does not exist.
Parameters: map - Map the map to extract the string from Parameters: key - String the key for the map. Parameters: defaultValue - The default value should the key not exist. String the value in the map. See Also: Map |
get | public static List get(Map map, String key, List defaultList)(Code) | | get purpose.
Gets a List from a map given the specified key. If the list is not found
the default list is returned.
Parameters: map - Map the map to extract the file from Parameters: key - String the key to extract the value for Parameters: defaultList - The default value should the key not exist. List a List as described above. |
get | public static Map get(Map map, String key, Map defaultMap)(Code) | | get purpose.
Gets a Map from a map given the specified key. If the map is not found
the default map is returned.
Parameters: map - Map the map to extract the file from Parameters: key - String the key to extract the value for Parameters: defaultMap - The default value should the key not exist. Map a Map as described above. |
get | public static int get(Map map, String key, int defaultValue)(Code) | | get purpose.
Gets a int from a map given the specified key. If the int is not found
the default int is returned.
Parameters: map - Map the map to extract the file from Parameters: key - String the key to extract the value for Parameters: defaultValue - The default value should the key not exist. int an int as described above. |
get | public static boolean get(Map map, String key, boolean defaultValue)(Code) | | get purpose.
Gets a boolean from a map given the specified key. If the boolean is not
found the default boolean is returned.
Parameters: map - Map the map to extract the file from Parameters: key - String the key to extract the value for Parameters: defaultValue - The default value should the key not exist. boolean an boolean as described above. |
get | public static Charset get(Map map, String key, Charset defaultCharSet)(Code) | | get purpose.
Gets a Charset from a map given the specified key. If the Charset is not
found the default Charset is returned.
Parameters: map - Map the map to extract the file from Parameters: key - String the key to extract the value for Parameters: defaultCharSet - The default value should the key not exist. Charset an boolean as described above. |
get | public static Level get(Map map, String key, Level defaultLevel)(Code) | | get purpose.
Gets a Level from a map given the specified key. If the Level is not
found the default Level is returned.
Parameters: map - Map the map to extract the file from Parameters: key - String the key to extract the value for Parameters: defaultLevel - The default value should the key not exist. Level an boolean as described above. |
get | public static URL get(Map map, String key, URL defaultUrl)(Code) | | get purpose.
Gets a URL from a map given the specified key. If the URL is not found
the default URL is returned.
Parameters: map - Map the map to extract the file from Parameters: key - String the key to extract the value for Parameters: defaultUrl - The default value should the key not exist. URL an boolean as described above. |
get | public static Class get(Map map, String key, Class defaultType)(Code) | | get purpose.
Gets a Class from a map given the specified key. If the Class is not
found the default Class is returned.
Parameters: map - Map the map to extract the file from Parameters: key - String the key to extract the value for Parameters: defaultType - The default value should the key not exist. Class an boolean as described above. |
notNull | protected String notNull(String s)(Code) | | checks s for nullity and if so, returns an empty String,
else just returns s
Parameters: s - String String non-null String (null -> "") |
toDTO | abstract Object toDTO()(Code) | | getDTO purpose.
A hook to get the DTO object of all subclasses. This method is
dangerous as it return the original. It is not intended to be public,
and should only be accessed without a clone being created inside the
package.
A DTO object to be casted as appropriate. |
|
|