| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.util.args; |
| | | import org.opends.messages.Message; |
| | |
| | | |
| | | // The value placeholder for this argument, which will be used in usage |
| | | // information. |
| | | private String valuePlaceholder; |
| | | private Message valuePlaceholder; |
| | | |
| | | // Indicates whether this argument was provided in the set of properties |
| | | // found is a properties file. |
| | |
| | | protected Argument(String name, Character shortIdentifier, |
| | | String longIdentifier, boolean isRequired, |
| | | boolean isMultiValued, boolean needsValue, |
| | | String valuePlaceholder, String defaultValue, |
| | | Message valuePlaceholder, String defaultValue, |
| | | String propertyName, |
| | | Message description) |
| | | throws ArgumentException |
| | |
| | | * the generated usage information, or <CODE>null</CODE> if there is |
| | | * none. |
| | | */ |
| | | public String getValuePlaceholder() |
| | | public Message getValuePlaceholder() |
| | | { |
| | | return valuePlaceholder; |
| | | } |
| | |
| | | * @param valuePlaceholder The value placeholder that will be displayed for |
| | | * this argument in the generated usage information. |
| | | */ |
| | | public void setValuePlaceholder(String valuePlaceholder) |
| | | public void setValuePlaceholder(Message valuePlaceholder) |
| | | { |
| | | this.valuePlaceholder = valuePlaceholder; |
| | | } |