edu.mayo.informatics.lexgrid.convert.options
Class DefaultOptionHolder

java.lang.Object
  extended by edu.mayo.informatics.lexgrid.convert.options.DefaultOptionHolder
All Implemented Interfaces:
OptionHolder

public class DefaultOptionHolder
extends java.lang.Object
implements OptionHolder

The Class DefaultOptionHolder.

Author:
Kevin Peterson

Constructor Summary
DefaultOptionHolder()
           
 
Method Summary
<T> MultiValueOption<T>
findMultiValueOption(java.lang.String optionName, java.util.List<MultiValueOption<T>> optionList)
           
<T> Option<T>
findOption(java.lang.String optionName, java.util.List<Option<T>> optionList)
          Find option.
<T extends Option<?>>
T
findTypedOption(java.lang.String optionName, java.util.List<T> optionList)
          Find typed option.
 Option<java.lang.Boolean> getBooleanOption(java.lang.String optionName)
          Gets the boolean option.
 java.util.List<Option<java.lang.Boolean>> getBooleanOptions()
          Gets the boolean options.
 Option<java.lang.Integer> getIntegerOption(java.lang.String optionName)
          Gets the integer option.
 java.util.List<Option<java.lang.Integer>> getIntegerOptions()
          Gets the integer options.
 java.util.List<java.lang.String> getResourceUriAllowedFileTypes()
          Gets the resource uri allowed file types.
 MultiValueOption<java.lang.String> getStringArrayOption(java.lang.String optionName)
           
 java.util.List<MultiValueOption<java.lang.String>> getStringArrayOptions()
           
 Option<java.lang.String> getStringOption(java.lang.String optionName)
          Gets the string option.
 java.util.List<Option<java.lang.String>> getStringOptions()
          Gets the string options.
 URIOption getURIOption(java.lang.String optionName)
          Gets the uRI option.
 java.util.List<URIOption> getUriOptions()
           
 java.util.List<URIOption> getURIOptions()
          Gets the uRI options.
 boolean isResourceUriFolder()
          Checks if is resource uri folder.
 void setBooleanOptions(java.util.List<Option<java.lang.Boolean>> booleanOptions)
          Sets the boolean options.
 void setIntegerOptions(java.util.List<Option<java.lang.Integer>> integerOptions)
          Sets the integer options.
 void setIsResourceUriFolder(boolean isResourceUriFolder)
          Sets the checks if is resource uri folder.
 void setResourceUriAllowedFileTypes(java.util.List<java.lang.String> resourceUriAllowedFileTypes)
          Sets the resource uri allowed file types.
 void setStringArrayOptions(java.util.List<MultiValueOption<java.lang.String>> stringArrayOptions)
           
 void setStringOptions(java.util.List<Option<java.lang.String>> stringOptions)
          Sets the string options.
 void setUriOptions(java.util.List<URIOption> uriOptions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOptionHolder

public DefaultOptionHolder()
Method Detail

getStringArrayOption

public MultiValueOption<java.lang.String> getStringArrayOption(java.lang.String optionName)
Specified by:
getStringArrayOption in interface OptionHolder

getBooleanOption

public Option<java.lang.Boolean> getBooleanOption(java.lang.String optionName)
Description copied from interface: OptionHolder
Gets the boolean option.

Specified by:
getBooleanOption in interface OptionHolder
Parameters:
optionName - the option name
Returns:
the boolean option

getStringOption

public Option<java.lang.String> getStringOption(java.lang.String optionName)
Description copied from interface: OptionHolder
Gets the string option.

Specified by:
getStringOption in interface OptionHolder
Parameters:
optionName - the option name
Returns:
the string option

getIntegerOption

public Option<java.lang.Integer> getIntegerOption(java.lang.String optionName)
Description copied from interface: OptionHolder
Gets the integer option.

Specified by:
getIntegerOption in interface OptionHolder
Parameters:
optionName - the option name
Returns:
the integer option

getURIOption

public URIOption getURIOption(java.lang.String optionName)
Description copied from interface: OptionHolder
Gets the uRI option.

Specified by:
getURIOption in interface OptionHolder
Parameters:
optionName - the option name
Returns:
the uRI option

findOption

public <T> Option<T> findOption(java.lang.String optionName,
                                java.util.List<Option<T>> optionList)
Find option.

Parameters:
optionName - the option name
optionList - the option list
Returns:
the option< t>

findMultiValueOption

public <T> MultiValueOption<T> findMultiValueOption(java.lang.String optionName,
                                                    java.util.List<MultiValueOption<T>> optionList)

findTypedOption

public <T extends Option<?>> T findTypedOption(java.lang.String optionName,
                                               java.util.List<T> optionList)
Find typed option.

Parameters:
optionName - the option name
optionList - the option list
Returns:
the t

getBooleanOptions

public java.util.List<Option<java.lang.Boolean>> getBooleanOptions()
Description copied from interface: OptionHolder
Gets the boolean options.

Specified by:
getBooleanOptions in interface OptionHolder
Returns:
the boolean options

setBooleanOptions

public void setBooleanOptions(java.util.List<Option<java.lang.Boolean>> booleanOptions)
Sets the boolean options.

Parameters:
booleanOptions - the new boolean options

getIntegerOptions

public java.util.List<Option<java.lang.Integer>> getIntegerOptions()
Description copied from interface: OptionHolder
Gets the integer options.

Specified by:
getIntegerOptions in interface OptionHolder
Returns:
the integer options

setIntegerOptions

public void setIntegerOptions(java.util.List<Option<java.lang.Integer>> integerOptions)
Sets the integer options.

Parameters:
integerOptions - the new integer options

getStringOptions

public java.util.List<Option<java.lang.String>> getStringOptions()
Description copied from interface: OptionHolder
Gets the string options.

Specified by:
getStringOptions in interface OptionHolder
Returns:
the string options

setStringOptions

public void setStringOptions(java.util.List<Option<java.lang.String>> stringOptions)
Sets the string options.

Parameters:
stringOptions - the new string options

getURIOptions

public java.util.List<URIOption> getURIOptions()
Description copied from interface: OptionHolder
Gets the uRI options.

Specified by:
getURIOptions in interface OptionHolder
Returns:
the uRI options

getStringArrayOptions

public java.util.List<MultiValueOption<java.lang.String>> getStringArrayOptions()
Specified by:
getStringArrayOptions in interface OptionHolder

setStringArrayOptions

public void setStringArrayOptions(java.util.List<MultiValueOption<java.lang.String>> stringArrayOptions)

getUriOptions

public java.util.List<URIOption> getUriOptions()

setUriOptions

public void setUriOptions(java.util.List<URIOption> uriOptions)

setResourceUriAllowedFileTypes

public void setResourceUriAllowedFileTypes(java.util.List<java.lang.String> resourceUriAllowedFileTypes)
Sets the resource uri allowed file types.

Parameters:
resourceUriAllowedFileTypes - the new resource uri allowed file types

getResourceUriAllowedFileTypes

public java.util.List<java.lang.String> getResourceUriAllowedFileTypes()
Description copied from interface: OptionHolder
Gets the resource uri allowed file types.

Specified by:
getResourceUriAllowedFileTypes in interface OptionHolder
Returns:
the resource uri allowed file types

isResourceUriFolder

public boolean isResourceUriFolder()
Description copied from interface: OptionHolder
Checks if is resource uri folder.

Specified by:
isResourceUriFolder in interface OptionHolder
Returns:
true, if is resource uri folder

setIsResourceUriFolder

public void setIsResourceUriFolder(boolean isResourceUriFolder)
Description copied from interface: OptionHolder
Sets the checks if is resource uri folder.

Specified by:
setIsResourceUriFolder in interface OptionHolder
Parameters:
isResourceUriFolder - the new checks if is resource uri folder

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.