| | |
| | | |
| | | import java.util.Collection; |
| | | |
| | | import com.sun.opends.sdk.util.Message; |
| | | import com.sun.opends.sdk.util.MessageBuilder; |
| | | import org.opends.sdk.LocalizableMessage; |
| | | import org.opends.sdk.LocalizableMessageBuilder; |
| | | |
| | | |
| | | |
| | | |
| | |
| | | * Indicates whether the set of allowed values should be |
| | | * treated in a case-sensitive manner. |
| | | * @param description |
| | | * Message for the description of this argument. |
| | | * LocalizableMessage for the description of this argument. |
| | | * @throws ArgumentException |
| | | * If there is a problem with any of the parameters used to |
| | | * create this argument. |
| | | */ |
| | | public MultiChoiceArgument(String name, Character shortIdentifier, |
| | | String longIdentifier, boolean isRequired, boolean needsValue, |
| | | Message valuePlaceholder, Collection<T> allowedValues, |
| | | boolean caseSensitive, Message description) |
| | | LocalizableMessage valuePlaceholder, Collection<T> allowedValues, |
| | | boolean caseSensitive, LocalizableMessage description) |
| | | throws ArgumentException |
| | | { |
| | | super(name, shortIdentifier, longIdentifier, isRequired, false, |
| | |
| | | * Indicates whether the set of allowed values should be |
| | | * treated in a case-sensitive manner. |
| | | * @param description |
| | | * Message for the description of this argument. |
| | | * LocalizableMessage for the description of this argument. |
| | | * @throws ArgumentException |
| | | * If there is a problem with any of the parameters used to |
| | | * create this argument. |
| | | */ |
| | | public MultiChoiceArgument(String name, Character shortIdentifier, |
| | | String longIdentifier, boolean isRequired, boolean isMultiValued, |
| | | boolean needsValue, Message valuePlaceholder, |
| | | boolean needsValue, LocalizableMessage valuePlaceholder, |
| | | String defaultValue, String propertyName, |
| | | Collection<T> allowedValues, boolean caseSensitive, |
| | | Message description) throws ArgumentException |
| | | LocalizableMessage description) throws ArgumentException |
| | | { |
| | | super(name, shortIdentifier, longIdentifier, isRequired, |
| | | isMultiValued, needsValue, valuePlaceholder, defaultValue, |
| | |
| | | * <CODE>false</CODE> if it is not. |
| | | */ |
| | | public boolean valueIsAcceptable(String valueString, |
| | | MessageBuilder invalidReason) |
| | | LocalizableMessageBuilder invalidReason) |
| | | { |
| | | for (T o : allowedValues) |
| | | { |