|
||||||||||
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.NameSpaceInfo
NameSpaceInfo purpose.
A representation of a namespace for the Geoserver application.
NameSpaceInfo ns = new NameSpaceInfo(dto); System.out.println(ns.getPrefix() + ns.getUri());
Field Summary | |
protected static java.util.logging.Logger |
LOGGER
for debugging |
Constructor Summary | |
NameSpaceInfo(Data data,
NameSpaceInfoDTO ns)
NameSpaceConfig constructor. |
|
NameSpaceInfo(NameSpaceInfo ns)
NameSpaceConfig constructor. |
Method Summary | |
java.lang.Object |
clone()
Implement clone. |
boolean |
containsMetaData(java.lang.String key)
Implement containsMetaData. |
boolean |
equals(java.lang.Object obj)
Implement equals. |
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. |
org.geotools.data.FeatureTypeMetaData |
getFeatureTypeMetaData(java.lang.String typeName)
Implement getFeatureTypeMetaData. |
java.lang.Object |
getMetaData(java.lang.String key)
Implement getMetaData. |
java.lang.String |
getPrefix()
getPrefix purpose. |
java.util.Set |
getTypeNames()
This should be a list of available typeNames for the namespace. |
java.lang.String |
getUri()
getUri purpose. |
java.lang.String |
getURI()
Implement getURI. |
boolean |
isDefault()
isDefault 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. |
void |
setDefault(boolean b)
setDdefault purpose. |
void |
setPrefix(java.lang.String string)
setPrefix purpose. |
void |
setUri(java.lang.String string)
setUri purpose. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final java.util.logging.Logger LOGGER
Constructor Detail |
public NameSpaceInfo(Data data, NameSpaceInfoDTO ns)
Creates a NameSpaceConfig based on the data provided. All the data structures are cloned.
data
- DOCUMENT ME!ns
- The namespace to copy.
java.lang.NullPointerException
- when the param is nullpublic NameSpaceInfo(NameSpaceInfo ns)
Creates a copy of the NameSpaceConfig provided. All the data structures are cloned.
ns
- The namespace to copy.
java.lang.NullPointerException
- when the param is nullMethod Detail |
public java.lang.Object clone()
creates a clone of this object
Object.clone()
public boolean equals(java.lang.Object obj)
recursively tests to determine if the object passed in is a copy of this object.
obj
- The NameSpaceConfig object to test.
Object.equals(java.lang.Object)
public boolean isDefault()
Whether this is the default namespace.
public java.lang.String getPrefix()
returns the namespace's prefix.
getPrefix
in interface org.geotools.data.NamespaceMetaData
public java.lang.String getUri()
returns the namespace's uri.
public void setDefault(boolean b)
sets the default namespace.
b
- this is the default namespace.public void setPrefix(java.lang.String string)
stores the namespace's prefix.
string
- the namespace's prefix.public void setUri(java.lang.String string)
Stores the namespace's uri.
string
- the namespace's uri.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)
public java.lang.String getURI()
Description ...
getURI
in interface org.geotools.data.NamespaceMetaData
NamespaceMetaData.getURI()
public java.util.Set getTypeNames()
Makes use of data to get the list of all FeatureTypes, returns the names that match this prefix. This is just the typeName and not the full prefix:typeName.
getTypeNames
in interface org.geotools.data.NamespaceMetaData
NamespaceMetaData.getTypeNames()
public org.geotools.data.FeatureTypeMetaData getFeatureTypeMetaData(java.lang.String typeName)
Description ...
getFeatureTypeMetaData
in interface org.geotools.data.NamespaceMetaData
typeName
-
NamespaceMetaData.getFeatureTypeMetaData(java.lang.String)
public java.lang.String toString()
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 |