Class AbstractParameter
- java.lang.Object
-
- org.apache.jackrabbit.standalone.cli.AbstractParameter
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceBundlebundleResource bundle
-
Constructor Summary
Constructors Constructor Description AbstractParameter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidclone(AbstractParameter param)StringgetContextKey()StringgetDescription()abstract StringgetLocalizedArgName()abstract StringgetLocalizedDescription()StringgetLongName()StringgetName()StringgetValue()abstract booleanisRequired()voidsetContextKey(String commandAttribute)voidsetDescription(String description)voidsetLongName(String longName)voidsetName(String name)voidsetValue(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- theAbstractParameterto 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
-
-