|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.config.AbstractReflectedChoice
org.crosswire.common.config.StringArrayChoice
public class StringArrayChoice
A class to convert between strings and objects of a type.
|
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence| Field Summary | |
|---|---|
private String |
separator
|
| Fields inherited from interface org.crosswire.common.config.Choice |
|---|
PRIORITY_ACCESSOR, PRIORITY_CTOR, PRIORITY_EXTENDER, PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_NORMAL, PRIORITY_SYSTEM |
| Constructor Summary | |
|---|---|
StringArrayChoice()
|
|
| Method Summary | |
|---|---|
Object |
convertToObject(String orig)
Convert from a stored string to an object to use with relfection |
String |
convertToString(Object orig)
Convert from a reflection return value to a String for storage |
Class |
getConvertionClass()
The class that this Choice works on. |
void |
init(org.jdom.Element option,
ResourceBundle configResources)
String value to associate with the name (key) |
| Methods inherited from class org.crosswire.common.config.AbstractReflectedChoice |
|---|
getFullPath, getHelpText, getPriority, getString, getType, isSaveable, requiresRestart, setFullPath, setHelpText, setPriority, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String separator
| Constructor Detail |
|---|
public StringArrayChoice()
| Method Detail |
|---|
public void init(org.jdom.Element option,
ResourceBundle configResources)
throws StartupException
Choice
init in interface Choiceinit in class AbstractReflectedChoiceStartupExceptionpublic Class getConvertionClass()
Choice
public String convertToString(Object orig)
AbstractReflectedChoice
convertToString in class AbstractReflectedChoicepublic Object convertToObject(String orig)
AbstractReflectedChoice
convertToObject in class AbstractReflectedChoice
|
Copyright ? 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||