org.neovera.jdiablo.internal
Class OptionPropertyImpl
java.lang.Object
org.neovera.jdiablo.internal.OptionPropertyImpl
- All Implemented Interfaces:
- OptionPropertySpi, OptionProperty, OptionPropertyAccessor
public class OptionPropertyImpl
- extends Object
- implements OptionPropertySpi
Information about a property that is annotated as an option.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionPropertyImpl
public OptionPropertyImpl()
getPropertyName
public String getPropertyName()
- Specified by:
getPropertyName in interface OptionPropertyAccessor
- Returns:
- Name of the property
setPropertyName
public void setPropertyName(String propertyName)
- Specified by:
setPropertyName in interface OptionPropertySpi
- Parameters:
propertyName - Name of the property
getSetterMethod
public Method getSetterMethod()
- Specified by:
getSetterMethod in interface OptionPropertyAccessor
- Returns:
- Setter method to manipulate property.
setSetterMethod
public void setSetterMethod(Method setterMethod)
- Specified by:
setSetterMethod in interface OptionPropertySpi
- Parameters:
setterMethod - Setter method for the property.
getOption
public Option getOption()
- Specified by:
getOption in interface OptionPropertyAccessor
- Returns:
- Option annotation for the property
setOption
public void setOption(Option option)
- Specified by:
setOption in interface OptionPropertySpi
- Parameters:
option - Option annotation specified.
isValueInCommandLine
public boolean isValueInCommandLine()
- Specified by:
isValueInCommandLine in interface OptionProperty
- Returns:
- true if property value was provided in the command line.
setValueInCommandLine
public void setValueInCommandLine(boolean valueInCommandLine)
- Specified by:
setValueInCommandLine in interface OptionPropertySpi
- Parameters:
valueInCommandLine - true to indicate value was provided in command line.
isOptionNotRequiredOverride
public boolean isOptionNotRequiredOverride()
- Specified by:
isOptionNotRequiredOverride in interface OptionProperty
- Returns:
- true if property has a value provided via specialization or option-value-provider.
setOptionNotRequiredOverride
public void setOptionNotRequiredOverride(boolean optionNotRequiredOverride)
- Specified by:
setOptionNotRequiredOverride in interface OptionPropertySpi
- Parameters:
optionNotRequiredOverride - set to true to indicate that a value has been provided for this option
and hence the command-line option should be overridden to set it to not-required.
Copyright © 2014 Neovera Inc.. All rights reserved.