| java.lang.Object org.geoserver.ows.KvpParser
All known Subclasses: org.geoserver.ows.NestedKvpParser, org.geoserver.wms.kvp.ColorKvpParser, org.geoserver.wms.kvp.TilesOriginKvpParser, org.geoserver.ows.kvp.BooleanKvpParser, org.geoserver.wfs.kvp.ResultTypeKvpParser, org.geoserver.wfs.kvp.CQLFilterKvpParser, org.geoserver.ows.MessageKvpParser, org.geoserver.ows.kvp.IntegerKvpParser, org.geoserver.ows.kvp.URLKvpParser, org.geoserver.wfs.kvp.AcceptFormatsKvpParser, org.geoserver.ows.kvp.TimeKvpParser, org.geoserver.wfs.kvp.BBoxKvpParser, org.geoserver.ows.kvp.DoubleKvpParser, org.geoserver.ows.util.NumericKvpParser, org.geoserver.wfs.kvp.AcceptVersionsKvpParser, org.geoserver.ows.kvp.FormatOptionsKvpParser, org.geoserver.wms.kvp.PaletteKvpParser, org.geoserver.ows.FlatKvpParser, org.geoserver.wfs.kvp.FilterKvpParser,
KvpParser | abstract public class KvpParser (Code) | | Parses a key-value pair into a key-object pair.
This class is intended to be subclassed. Subclasses need declare the key in
which they parse, and the type of object they parse into.
Instances need to be declared in a spring context like the following:
<bean id="myKvpParser" class="org.xzy.MyKvpParser"/>
Where com.xzy.MyKvpParser could be something like:
public class MyKvpParser extends KvpParser {
public MyKvpParser() {
super( "MyKvp", MyObject.class )l
}
public Object parse( String value ) {
return new MyObject( value );
}
}
author: Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org |
binding | Class binding(Code) | | The class of parsed objects.
|
getBinding | protected Class getBinding()(Code) | | The type of parsed objects. |
getKey | public String getKey()(Code) | | The name of the key the parser binds to. |
parse | abstract public Object parse(String value) throws Exception(Code) | | Parses the string representation into the object representation.
Parameters: value - The string value. The parsed object, or null if it could not be parsed. throws: Exception - In the event of an unsuccesful parse. |
|
|