Package org.apache.fulcrum.parser
Klasse BaseValueParser
java.lang.Object
org.apache.fulcrum.parser.BaseValueParser
- Alle implementierten Schnittstellen:
Iterable<String>,org.apache.avalon.framework.logger.LogEnabled,ParserServiceSupport,ValueParser
- Bekannte direkte Unterklassen:
DefaultCookieParser,DefaultParameterParser,StringValueParser
public class BaseValueParser
extends Object
implements ValueParser, ParserServiceSupport, org.apache.avalon.framework.logger.LogEnabled
BaseValueParser is a base class for classes that need to parse
name/value Parameters, for example GET/POST data or Cookies
(DefaultParameterParser and DefaultCookieParser)
It can also be used standalone, for an example see DataStreamParser.
NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behavior is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match:
ValueParser vp = new BaseValueParser();
vp.add("ERROR",1);
vp.add("eRrOr",2);
int result = vp.getInt("ERROR");
In the above example, result is 2.- Version:
- $Id$
- Autor:
- Ilkka Priha, Jon S. Stevens, Sean Legassick, Jason van Zyl, Jürgen Hoffmann, Thomas Vandahl
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.apache.fulcrum.parser.ValueParser
ValueParser.URLCaseFolding -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungRandom access storage for parameter data.protected ParserServiceThe ParserService instance to query for conversion and configurationVon Schnittstelle geerbte Felder org.apache.fulcrum.parser.ValueParser
DEFAULT_CHARACTER_ENCODING -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBaseValueParser(String characterEncoding) Constructor that takes a character encodingBaseValueParser(String characterEncoding, Locale locale) Constructor that takes a character encoding and a locale -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAdd a name/value pair into this object.voidAdd a name/value pair into this object.voidAdd a name/value pair into this object.voidAdd a name/value pair into this object.voidAdd a name/value pair into this object.voidAdd an array of Strings for a key.voidclear()Clear all name/value pairs out of this object.booleancontainsKey(Object key) Determine whether a given key has been inserted.Trims the string data and applies the conversion specified in the property given by URL_CASE_FOLDING.convertAndTrim(String value) Convert a String value according to the url-case-folding property.convertAndTrim(String value, ValueParser.URLCaseFolding fold) A convert method, which trims the string data and applies the conversion specified in the parameter given.voiddispose()Disposes the parser.voidenableLogging(org.apache.avalon.framework.logger.Logger logger) Return a String for the given name.getBigDecimal(String name) Return a BigDecimal for the given name.getBigDecimal(String name, BigDecimal defaultValue) Return a BigDecimal for the given name.getBigDecimals(String name) Return an array of BigDecimals for the given name.booleangetBoolean(String name) Return a boolean for the given name.booleangetBoolean(String name, boolean defaultValue) Return a boolean for the given name.getBooleanObject(String name) Returns a Boolean object for the given name.getBooleanObject(String name, Boolean defaultValue) Returns a Boolean object for the given name.Boolean[]getBooleanObjects(String name) Return an array of Booleans for the given name.boolean[]getBooleans(String name) Return an array of booleans for the given name.byteReturn a byte for the given name.byteReturn a byte for the given name.getByteObject(String name) Return a byte for the given name.getByteObject(String name, Byte defaultValue) Return a byte for the given name.byte[]Return an array of bytes for the given name.Get the character encoding that will be used by this ValueParser.Returns aDateobject.getDate(String name, DateFormat df) Returns aDateobject.getDate(String name, DateFormat df, Date defaultValue) Returns aDateobject.Get the date format that will be used by this ValueParser.doubleReturn a double for the given name.doubleReturn a double for the given name.getDoubleObject(String name) Return a Double for the given name.getDoubleObject(String name, Double defaultValue) Return a Double for the given name.Double[]getDoubleObjects(String name) Return an array of doubles for the given name.double[]getDoubles(String name) Return an array of doubles for the given name.floatReturn a float for the given name.floatReturn a float for the given name.getFloatObject(String name) Return a float for the given name.getFloatObject(String name, Float defaultValue) Return a Float for the given name.Float[]getFloatObjects(String name) Return an array of floats for the given name.float[]Return an array of floats for the given name.intReturn an int for the given name.intReturn an int for the given name.getIntObject(String name) Return an Integer for the given name.getIntObject(String name, Integer defaultValue) Return an Integer for the given name.Integer[]getIntObjects(String name) Return an array of Integers for the given name.int[]Return an array of ints for the given name.String[]getKeys()Returns all the available parameter names.final LocaleGet the locale that will be used by this ValueParser.protected org.apache.avalon.framework.logger.LoggerProvide an Avalon logger to the derived classeslongReturn a long for the given name.longReturn a long for the given name.getLongObject(String name) Return a Long for the given name.getLongObject(String name, Long defaultValue) Return a Long for the given name.Long[]getLongObjects(String name) Return an array of Longs for the given name.long[]Return an array of longs for the given name.Get the number format that will be used by this ValueParser.Return an Object for the given name.Object[]getObjects(String name) Return an array of Objects for the given name.protected String[]fetches a key from the parameters map.Return a String for the given name.Return a String for the given name.String[]getStrings(String name) Return an array of Strings for the given name.String[]getStrings(String name, String[] defaultValue) Return an array of Strings for the given name.protected Object[]getToStringParam(String name) This method is only used in toString() and can be used by derived classes to add their local parameters to the toString()Gets the folding value from the ParserService configurationbooleanChecks whether the object is disposed.booleanisValid()iterator()Gets an iterator over the set of keyskeySet()Gets the set of keysprotected voidPuts a key into the parameters map.final voidrecycle()Recycles the parser.final voidRecycles the parser with a character encoding.Removes the named parameter from the contained hashtable.final voidSet the character encoding that will be used by this ValueParser.final voidSet the date format that will be used by this ValueParser.final voidSet the locale that will be used by this ValueParser.voidSet the number format that will be used by this ValueParser.voidsetParserService(ParserService parserService) Set a ParserService instancevoidsetProperties(Object bean) Uses bean introspection to set writable properties of bean from the parameters, where a (case-insensitive) name match between the bean property and the parameter is looked for.protected voidsetProperty(Object bean, PropertyDescriptor prop) Set the property 'prop' in the bean to the value of the corresponding parameters.voidSet a parameter to a specific value.voidsetStrings(String name, String[] values) Set a parameter to a specific value.toString()Simple method that attempts to get a textual representation of this object's name/value pairs.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
-
Felddetails
-
parserService
The ParserService instance to query for conversion and configuration -
parameters
Random access storage for parameter data.
-
-
Konstruktordetails
-
BaseValueParser
public BaseValueParser() -
BaseValueParser
Constructor that takes a character encoding- Parameter:
characterEncoding- desired character encoding
-
BaseValueParser
Constructor that takes a character encoding and a locale- Parameter:
characterEncoding- Sets the character encodinglocale- Sets the locale
-
-
Methodendetails
-
setParserService
Set a ParserService instance- Angegeben von:
setParserServicein SchnittstelleParserServiceSupport- Parameter:
parserService- The parser service instance
-
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger logger) - Angegeben von:
enableLoggingin Schnittstelleorg.apache.avalon.framework.logger.LogEnabled- Parameter:
logger- The logger to be used- Siehe auch:
-
getLogger
protected org.apache.avalon.framework.logger.Logger getLogger()Provide an Avalon logger to the derived classes- Gibt zurück:
- An Avalon logger instance
-
recycle
public final void recycle()Recycles the parser. -
recycle
Recycles the parser with a character encoding.- Parameter:
characterEncoding- the character encoding.
-
dispose
public void dispose()Disposes the parser.- Angegeben von:
disposein SchnittstelleValueParser
-
clear
public void clear()Clear all name/value pairs out of this object.- Angegeben von:
clearin SchnittstelleValueParser
-
setCharacterEncoding
Set the character encoding that will be used by this ValueParser.- Angegeben von:
setCharacterEncodingin SchnittstelleValueParser- Parameter:
s- the character encoding to use
-
getCharacterEncoding
Get the character encoding that will be used by this ValueParser.- Angegeben von:
getCharacterEncodingin SchnittstelleValueParser- Gibt zurück:
- Current character encoding
-
setLocale
Set the locale that will be used by this ValueParser.- Angegeben von:
setLocalein SchnittstelleValueParser- Parameter:
l- the default locale to be used by the parser
-
getLocale
Get the locale that will be used by this ValueParser.- Angegeben von:
getLocalein SchnittstelleValueParser- Gibt zurück:
- Locale the locale being used
-
setDateFormat
Set the date format that will be used by this ValueParser.- Angegeben von:
setDateFormatin SchnittstelleValueParser- Parameter:
df- the date format
-
getDateFormat
Get the date format that will be used by this ValueParser.- Angegeben von:
getDateFormatin SchnittstelleValueParser- Gibt zurück:
- DateFormat current date format used by this ValueParser
-
setNumberFormat
Set the number format that will be used by this ValueParser.- Angegeben von:
setNumberFormatin SchnittstelleValueParser- Parameter:
nf- the number format to use
-
getNumberFormat
Get the number format that will be used by this ValueParser.- Angegeben von:
getNumberFormatin SchnittstelleValueParser- Gibt zurück:
- NumberFormat the current number format
-
add
Add a name/value pair into this object.- Angegeben von:
addin SchnittstelleValueParser- Parameter:
name- A String with the name.value- A double with the value.
-
add
Add a name/value pair into this object.- Angegeben von:
addin SchnittstelleValueParser- Parameter:
name- A String with the name.value- An int with the value.
-
add
Add a name/value pair into this object.- Angegeben von:
addin SchnittstelleValueParser- Parameter:
name- A String with the name.value- An Integer with the value.
-
add
Add a name/value pair into this object.- Angegeben von:
addin SchnittstelleValueParser- Parameter:
name- A String with the name.value- A long with the value.
-
add
Add a name/value pair into this object.- Angegeben von:
addin SchnittstelleValueParser- Parameter:
name- A String with the name.value- A long with the value.
-
add
Add an array of Strings for a key. This is simply adding all the elements in the array one by one.- Angegeben von:
addin SchnittstelleValueParser- Parameter:
name- A String with the name.value- A String Array.
-
remove
Removes the named parameter from the contained hashtable. Wraps to the containedMap.remove().- Angegeben von:
removein SchnittstelleValueParser- Parameter:
name- the name of the mapped value to remove- Gibt zurück:
- The value that was mapped to the key (a
String[]) ornullif the key was not mapped.
-
convert
Trims the string data and applies the conversion specified in the property given by URL_CASE_FOLDING. It returns a new string so that it does not destroy the value data.- Angegeben von:
convertin SchnittstelleValueParser- Parameter:
value- A String to be processed.- Gibt zurück:
- A new String converted to lowercase and trimmed.
-
containsKey
Determine whether a given key has been inserted. All keys are stored in lowercase strings, so override method to account for this.- Angegeben von:
containsKeyin SchnittstelleValueParser- Parameter:
key- An Object with the key to search for.- Gibt zurück:
- True if the object is found.
-
keySet
Gets the set of keys- Angegeben von:
keySetin SchnittstelleValueParser- Gibt zurück:
- A
Setof the keys.
-
getKeys
Returns all the available parameter names.- Angegeben von:
getKeysin SchnittstelleValueParser- Gibt zurück:
- A object array with the keys.
-
iterator
Gets an iterator over the set of keys -
getBoolean
Return a boolean for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getBooleanin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A boolean.
-
getBoolean
Return a boolean for the given name. If the name does not exist, return false.- Angegeben von:
getBooleanin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A boolean.
-
getBooleans
Return an array of booleans for the given name. If the name does not exist, return null.- Angegeben von:
getBooleansin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A boolean[].
-
getBooleanObject
Returns a Boolean object for the given name. If the parameter does not exist or can not be parsed as a boolean, null is returned.Valid values for true: true, on, 1, yes
Valid values for false: false, off, 0, no
The string is compared without reguard to case.
- Angegeben von:
getBooleanObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A Boolean.
-
getBooleanObject
Returns a Boolean object for the given name. If the parameter does not exist or can not be parsed as a boolean, null is returned.Valid values for true: true, on, 1, yes
Valid values for false: false, off, 0, no
The string is compared without reguard to case.
- Angegeben von:
getBooleanObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A Boolean.
-
getBooleanObjects
Return an array of Booleans for the given name. If the name does not exist, return null.- Angegeben von:
getBooleanObjectsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A Boolean[].
-
getDouble
Return a double for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getDoublein SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A double.
-
getDouble
Return a double for the given name. If the name does not exist, return 0.0.- Angegeben von:
getDoublein SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A double.
-
getDoubles
Return an array of doubles for the given name. If the name does not exist, return null.- Angegeben von:
getDoublesin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A double[].
-
getDoubleObject
Return a Double for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getDoubleObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A double.
-
getDoubleObject
Return a Double for the given name. If the name does not exist, return null.- Angegeben von:
getDoubleObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A double.
-
getDoubleObjects
Return an array of doubles for the given name. If the name does not exist, return null.- Angegeben von:
getDoubleObjectsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A double[].
-
getFloat
Return a float for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getFloatin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A float.
-
getFloat
Return a float for the given name. If the name does not exist, return 0.0.- Angegeben von:
getFloatin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A float.
-
getFloats
Return an array of floats for the given name. If the name does not exist, return null.- Angegeben von:
getFloatsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A float[].
-
getFloatObject
Return a Float for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getFloatObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A Float.
-
getFloatObject
Return a float for the given name. If the name does not exist, return null.- Angegeben von:
getFloatObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A Float.
-
getFloatObjects
Return an array of floats for the given name. If the name does not exist, return null.- Angegeben von:
getFloatObjectsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A float[].
-
getBigDecimal
Return a BigDecimal for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getBigDecimalin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A BigDecimal.
-
getBigDecimal
Return a BigDecimal for the given name. If the name does not exist, return null.- Angegeben von:
getBigDecimalin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A BigDecimal.
-
getBigDecimals
Return an array of BigDecimals for the given name. If the name does not exist, return null.- Angegeben von:
getBigDecimalsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A BigDecimal[].
-
getInt
Return an int for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getIntin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- An int.
-
getInt
Return an int for the given name. If the name does not exist, return 0.- Angegeben von:
getIntin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- An int.
-
getInts
Return an array of ints for the given name. If the name does not exist, return null.- Angegeben von:
getIntsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- An int[].
-
getIntObject
Return an Integer for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getIntObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- An Integer.
-
getIntObject
Return an Integer for the given name. If the name does not exist, return null.- Angegeben von:
getIntObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- An Integer.
-
getIntObjects
Return an array of Integers for the given name. If the name does not exist, return null.- Angegeben von:
getIntObjectsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- An Integer[].
-
getLong
Return a long for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getLongin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A long.
-
getLong
Return a long for the given name. If the name does not exist, return 0.- Angegeben von:
getLongin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A long.
-
getLongs
Return an array of longs for the given name. If the name does not exist, return null.- Angegeben von:
getLongsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A long[].
-
getLongObjects
Return an array of Longs for the given name. If the name does not exist, return null.- Angegeben von:
getLongObjectsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A Long[].
-
getLongObject
Return a Long for the given name. If the name does not exist, return null.- Angegeben von:
getLongObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A Long.
-
getLongObject
Return a Long for the given name. If the name does not exist, return the default value.- Angegeben von:
getLongObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A Long.
-
getByte
Return a byte for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getBytein SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A byte.
-
getByte
Return a byte for the given name. If the name does not exist, return 0.- Angegeben von:
getBytein SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A byte.
-
getBytes
Return an array of bytes for the given name. If the name does not exist, return null. The array is returned according to the HttpRequest's character encoding.- Angegeben von:
getBytesin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A byte[].
- Löst aus:
UnsupportedEncodingException- Generic exception
-
getByteObject
Return a byte for the given name. If the name does not exist, return defaultValue.- Angegeben von:
getByteObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A byte.
-
getByteObject
Return a byte for the given name. If the name does not exist, return 0.- Angegeben von:
getByteObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A byte.
-
getString
Return a String for the given name. If the name does not exist, return null.- Angegeben von:
getStringin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A String or null if the key is unknown.
-
get
Return a String for the given name. If the name does not exist, return null. It is the same as the getString() method however has been added for simplicity when working with template tools such as Velocity which allow you to do something like this:$data.Parameters.form_variable_name- Angegeben von:
getin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A String.
-
getString
Return a String for the given name. If the name does not exist, return the defaultValue.- Angegeben von:
getStringin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A String.
-
setString
Set a parameter to a specific value. This is useful if you want your action to override the values of the parameters for the screen to use.- Angegeben von:
setStringin SchnittstelleValueParser- Parameter:
name- The name of the parameter.value- The value to set.
-
getStrings
Return an array of Strings for the given name. If the name does not exist, return null.- Angegeben von:
getStringsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A String[].
-
getStrings
Return an array of Strings for the given name. If the name does not exist, return the defaultValue.- Angegeben von:
getStringsin SchnittstelleValueParser- Parameter:
name- A String with the name.defaultValue- The default value.- Gibt zurück:
- A String[].
-
setStrings
Set a parameter to a specific value. This is useful if you want your action to override the values of the parameters for the screen to use.- Angegeben von:
setStringsin SchnittstelleValueParser- Parameter:
name- The name of the parameter.values- The value to set.
-
getObject
Return an Object for the given name. If the name does not exist, return null.- Angegeben von:
getObjectin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- An Object.
-
getObjects
Return an array of Objects for the given name. If the name does not exist, return null.- Angegeben von:
getObjectsin SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- An Object[].
-
getDate
Returns aDateobject. String is parsed by supplied DateFormat. If the name does not exist or the value could not be parsed into a date return the defaultValue.- Angegeben von:
getDatein SchnittstelleValueParser- Parameter:
name- A String with the name.df- A DateFormat.defaultValue- The default value.- Gibt zurück:
- A Date.
-
getDate
Returns aDateobject. If there are DateSelector or TimeSelector style parameters then these are used. If not and there is a parameter 'name' then this is parsed by DateFormat. If the name does not exist, return null.- Angegeben von:
getDatein SchnittstelleValueParser- Parameter:
name- A String with the name.- Gibt zurück:
- A Date.
-
getDate
Returns aDateobject. String is parsed by supplied DateFormat. If the name does not exist, return null.- Angegeben von:
getDatein SchnittstelleValueParser- Parameter:
name- A String with the name.df- A DateFormat.- Gibt zurück:
- A Date.
-
setProperties
Uses bean introspection to set writable properties of bean from the parameters, where a (case-insensitive) name match between the bean property and the parameter is looked for.- Angegeben von:
setPropertiesin SchnittstelleValueParser- Parameter:
bean- An Object.- Löst aus:
Exception- a generic exception.
-
toString
Simple method that attempts to get a textual representation of this object's name/value pairs. String[] handling is currently a bit rough.- Angegeben von:
toStringin SchnittstelleValueParser- Setzt außer Kraft:
toStringin KlasseObject- Gibt zurück:
- A textual representation of the parsed name/value pairs.
-
getToStringParam
This method is only used in toString() and can be used by derived classes to add their local parameters to the toString()- Parameter:
name- A string with the name- Gibt zurück:
- the value object array or null if not set
-
setProperty
Set the property 'prop' in the bean to the value of the corresponding parameters. Supports all types supported by getXXX methods plus a few more that come for free because primitives have to be wrapped before being passed to invoke anyway.- Parameter:
bean- An Object.prop- A PropertyDescriptor.- Löst aus:
Exception- a generic exception.
-
putParam
Puts a key into the parameters map. Makes sure that the name is always mapped correctly. This method also enforces the usage of arrays for the parameters.- Parameter:
name- A String with the name.value- An array of Objects with the values.
-
getParam
fetches a key from the parameters map. Makes sure that the name is always mapped correctly.- Parameter:
name- A string with the name- Gibt zurück:
- the value object array or null if not set
-
isDisposed
public boolean isDisposed()Checks whether the object is disposed.- Gibt zurück:
- true, if the object is disposed.
-
convertAndTrim
Convert a String value according to the url-case-folding property.- Angegeben von:
convertAndTrimin SchnittstelleValueParser- Parameter:
value- the String to convert- Gibt zurück:
- a new String.
-
convertAndTrim
A convert method, which trims the string data and applies the conversion specified in the parameter given. It returns a new string so that it does not destroy the value data.- Angegeben von:
convertAndTrimin SchnittstelleValueParser- Parameter:
value- A String to be processed.fold- The parameter folding to be applied (seeParserService)- Gibt zurück:
- A new String converted to the correct case and trimmed.
-
getUrlFolding
Gets the folding value from the ParserService configuration- Angegeben von:
getUrlFoldingin SchnittstelleValueParser- Gibt zurück:
- The current Folding Value
-
isValid
public boolean isValid()
-