|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.propertybrowser.editor.EditorParameterParser
public class EditorParameterParser
A String parser that parses the parameter element value obtained from the editor property file. The parameters are sorted into their different identifiers through which they can be accessed as a key.
| Constructor Summary | |
|---|---|
EditorParameterParser(PropertyEditor editor)
Default Constructor |
|
| Method Summary | |
|---|---|
protected void |
add(java.lang.String identifier,
java.lang.String value)
Adds a value with its corresponding identifier to the map. |
static java.lang.String |
determineDisplayValue(java.lang.String parameterValue)
Used to get the display value from a parameter string that contains more than one value, i.e. the parameter holds two value seperated by a pipe '|'; |
static java.lang.String |
determineInternalValue(java.lang.String parameterValue)
Used to get the value from a parameter string that contains more than one value, i.e. the parameter holds two value seperated by a pipe '|'; |
java.util.Iterator |
get(java.lang.String identifier)
Gets the given parameter as an iterator of string values. |
java.lang.String |
getString(java.lang.String identifier)
Gets the given parameter as string value. |
int |
numberOfEntries(java.lang.String identifier)
Gets the number of values contained for an identifier. |
protected void |
parse(java.lang.String parameters)
Parses the editor parameter string to populate the map with the values for each parameter identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorParameterParser(PropertyEditor editor)
editor - Property editor that owns the parameters| Method Detail |
|---|
public java.util.Iterator get(java.lang.String identifier)
identifier - The parameter identifier
public java.lang.String getString(java.lang.String identifier)
identifier - The parameter identifier
public static java.lang.String determineDisplayValue(java.lang.String parameterValue)
parameterValue - The parameter value
public static java.lang.String determineInternalValue(java.lang.String parameterValue)
parameterValue - The parameter value
public int numberOfEntries(java.lang.String identifier)
identifier - The parameter identifier
protected void add(java.lang.String identifier,
java.lang.String value)
identifier - The identifier for the valuevalue - The value to be added to the mapprotected void parse(java.lang.String parameters)
parameters - The editor parameter string to be parsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||