Package net.sf.okapi.common
Class ParameterDescriptor
- java.lang.Object
-
- net.sf.okapi.common.ParameterDescriptor
-
- All Implemented Interfaces:
IParameterDescriptor
public class ParameterDescriptor extends Object implements IParameterDescriptor
Default implementation of theIParameterDescriptorinterface.
-
-
Constructor Summary
Constructors Constructor Description ParameterDescriptor(String name, Object parent, String displayName, String shortDescription)Creates a new ParameterDescriptor object with a given name and type, associated with a given parent object, and with a given display name and short description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()Gets the localizable name of this parameter.StringgetName()Gets the programming name of this parameter.ObjectgetParent()Gets the object where this parameter is instantiated.MethodgetReadMethod()Gets the method to obtain the current value of this parameter.StringgetShortDescription()Gets the short localizable description of this parameter.TypegetType()Gets the type of this parameter.MethodgetWriteMethod()Gets the method to set a new value for this this parameter.voidsetDisplayName(String displayName)Sets the localizable name of this parameter.voidsetShortDescription(String shortDescription)Gets the short localizable description of this parameter.
-
-
-
Constructor Detail
-
ParameterDescriptor
public ParameterDescriptor(String name, Object parent, String displayName, String shortDescription)
Creates a new ParameterDescriptor object with a given name and type, associated with a given parent object, and with a given display name and short description.- Parameters:
name- the name of this parameter. The name must follow the JavaBean naming conventions.parent- the object where this parameter is instantiated (or null for container-only).displayName- the localizable name of this parameter.shortDescription- a short localizable description of this parameter.
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IParameterDescriptorGets the programming name of this parameter. the name must follow the JavaBean naming conventions. For example, a parameter accessible bygetMyTextandsetMyTextmust be namedmyText- Specified by:
getNamein interfaceIParameterDescriptor- Returns:
- the programming name of this parameter.
-
getDisplayName
public String getDisplayName()
Description copied from interface:IParameterDescriptorGets the localizable name of this parameter.- Specified by:
getDisplayNamein interfaceIParameterDescriptor- Returns:
- the localizable name of this parameter.
-
setDisplayName
public void setDisplayName(String displayName)
Description copied from interface:IParameterDescriptorSets the localizable name of this parameter.- Specified by:
setDisplayNamein interfaceIParameterDescriptor- Parameters:
displayName- the new localizable name of this parameter.
-
getShortDescription
public String getShortDescription()
Description copied from interface:IParameterDescriptorGets the short localizable description of this parameter.- Specified by:
getShortDescriptionin interfaceIParameterDescriptor- Returns:
- the short localizable description of this parameter.
-
setShortDescription
public void setShortDescription(String shortDescription)
Description copied from interface:IParameterDescriptorGets the short localizable description of this parameter.- Specified by:
setShortDescriptionin interfaceIParameterDescriptor- Parameters:
shortDescription- the new short localizable description of this parameter.
-
getType
public Type getType()
Description copied from interface:IParameterDescriptorGets the type of this parameter.- Specified by:
getTypein interfaceIParameterDescriptor- Returns:
- the type of this parameter.
-
getReadMethod
public Method getReadMethod()
Description copied from interface:IParameterDescriptorGets the method to obtain the current value of this parameter.- Specified by:
getReadMethodin interfaceIParameterDescriptor- Returns:
- the method to get the current value of this parameter.
-
getWriteMethod
public Method getWriteMethod()
Description copied from interface:IParameterDescriptorGets the method to set a new value for this this parameter.- Specified by:
getWriteMethodin interfaceIParameterDescriptor- Returns:
- the method to set a new value of this parameter.
-
getParent
public Object getParent()
Description copied from interface:IParameterDescriptorGets the object where this parameter is instantiated.- Specified by:
getParentin interfaceIParameterDescriptor- Returns:
- the object where this parameter is instantiated.
-
-