Class AbstractParameter
- java.lang.Object
-
- org.apache.jackrabbit.standalone.cli.AbstractParameter
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceBundle
bundle
Resource bundle
-
Constructor Summary
Constructors Constructor Description AbstractParameter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
clone(AbstractParameter param)
String
getContextKey()
String
getDescription()
abstract String
getLocalizedArgName()
abstract String
getLocalizedDescription()
String
getLongName()
String
getName()
String
getValue()
abstract boolean
isRequired()
void
setContextKey(String commandAttribute)
void
setDescription(String description)
void
setLongName(String longName)
void
setName(String name)
void
setValue(String value)
-
-
-
Field Detail
-
bundle
protected ResourceBundle bundle
Resource bundle
-
-
Method Detail
-
getDescription
public String getDescription()
- Returns:
- the description
-
getLocalizedDescription
public abstract String getLocalizedDescription()
- Returns:
- the localized description
-
getName
public String getName()
- Returns:
- the name
-
setDescription
public void setDescription(String description)
- Parameters:
description
- The description to set
-
setName
public void setName(String name)
- Parameters:
name
- the name to set
-
getValue
public String getValue()
- Returns:
- the value
-
setValue
public void setValue(String value)
- Parameters:
value
- The value to set
-
getLongName
public String getLongName()
- Returns:
- the longName
-
setLongName
public void setLongName(String longName)
- Parameters:
longName
- The longName to set
-
clone
protected void clone(AbstractParameter param)
- Parameters:
param
- theAbstractParameter
to clone
-
getContextKey
public String getContextKey()
- Returns:
- the commandAttribute. if the context key is unset it returns the parameter name
-
setContextKey
public void setContextKey(String commandAttribute)
- Parameters:
commandAttribute
- The commandAttribute to set
-
isRequired
public abstract boolean isRequired()
- Returns:
- true if this parameter is mandatory
-
getLocalizedArgName
public abstract String getLocalizedArgName()
- Returns:
- argumentlocalized name
-
-