com.sap.scheduler.runtime

Class JobParameterDefinition

java.lang.Object
  extended by com.sap.scheduler.runtime.JobParameterDefinition
All Implemented Interfaces:
Serializable

public class JobParameterDefinition
extends Object
implements Serializable

This class represents the definition for a single job definition parameter.

See Also:
Serialized Form

Constructor Summary
JobParameterDefinition()
          Deprecated. Needed for jver tests. Use only the non-empty constructor!
JobParameterDefinition(String name, JobParameterType type, boolean nullable, String description, String dataDefault, boolean display, String direction, String group, HashMap<String,HashMap<String,String>> localizedTextMap)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDefaultData()
           
 String getDescription()
           
 String getDirection()
           
 String getGroup()
           
 HashMap<String,HashMap<String,String>> getLocalizationInfoMap()
          Returns the localization info for this parameter.
 String getLocalizedDescription()
          Returns the localized description depending on the current system locale, if not available, the default description deployed with this job will be returned.
 String getLocalizedDescription(Locale l)
          Returns the localized description depending on the provided locale if available, otherwise the default description deployed with this job will be returned.
 String getLocalizedName()
          Returns the localized name depending on the current system locale.
 String getLocalizedName(Locale l)
          Returns the localized name depending on the provided locale if available, otherwise the default name deployed with this job will be returned.
 String getName()
           
 JobParameterType getType()
          This method returns the type of the parameter.
 int hashCode()
           
 boolean isDisplay()
           
 boolean isIn()
           
 boolean isInOut()
           
 boolean isNullable()
           
 boolean isOut()
           
 void setDefaultData(String data_default)
          Deprecated. use constructor instead
 void setDescription(String description)
          Deprecated. use constructor instead
 void setDirection(String direction)
          Deprecated. use constructor instead
 void setDisplay(boolean display)
          Deprecated. use constructor instead
 void setGroup(String group)
          Deprecated. use constructor instead
 void setLocalizationInfoMap(HashMap<String,HashMap<String,String>> localizedTextMap)
          Deprecated. use constructor instead
 void setName(String name)
          Deprecated. use constructor instead
 void setNullable(boolean nullable)
          Deprecated. use constructor instead
 void setType(JobParameterType type)
          Deprecated. use constructor instead
 String toFormattedString()
          Returns this JobParameterDefinition in a formatted way
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobParameterDefinition

public JobParameterDefinition()
Deprecated. Needed for jver tests. Use only the non-empty constructor!

Default constructor


JobParameterDefinition

public JobParameterDefinition(String name,
                              JobParameterType type,
                              boolean nullable,
                              String description,
                              String dataDefault,
                              boolean display,
                              String direction,
                              String group,
                              HashMap<String,HashMap<String,String>> localizedTextMap)
Method Detail

setLocalizationInfoMap

public void setLocalizationInfoMap(HashMap<String,HashMap<String,String>> localizedTextMap)
Deprecated. use constructor instead

Sets the localization info fpr this parameter

Parameters:
the - localization info

getLocalizationInfoMap

public HashMap<String,HashMap<String,String>> getLocalizationInfoMap()
Returns the localization info for this parameter.

Note: This method should be used only by the Scheduler runtime.

Returns:
the localization info

getDefaultData

public String getDefaultData()
Returns:
Returns the default value for this parameter (or null if there is no default)

setDefaultData

public void setDefaultData(String data_default)
Deprecated. use constructor instead

Parameters:
data_default - the default value for this parameter

getDescription

public String getDescription()
Returns:
Returns the description of this parameter to be displayed in a dialog.

setDescription

public void setDescription(String description)
Deprecated. use constructor instead

Set the description for a parameter

Parameters:
description - The description to set.

getDirection

public String getDirection()
Returns:
Returns the direction. It can either be in, out, or inout

isIn

public boolean isIn()

isOut

public boolean isOut()

isInOut

public boolean isInOut()

setDirection

public void setDirection(String direction)
Deprecated. use constructor instead

Parameters:
direction - The direction to set. It can either be in, out, or inout
Throws:
IllegalArgumentException - if the string is not in, out, or inout

isDisplay

public boolean isDisplay()
Returns:
Returns true if this parameter should be displayed in a dialog box, false otherwise.

setDisplay

public void setDisplay(boolean display)
Deprecated. use constructor instead

Parameters:
display - The display to set.

getGroup

public String getGroup()
Returns:
Returns the group.

setGroup

public void setGroup(String group)
Deprecated. use constructor instead

Parameters:
group - The group to set.

getName

public String getName()
Returns:
Returns the name of the parameter.

setName

public void setName(String name)
Deprecated. use constructor instead

Parameters:
name - Set the name of this parameter.

isNullable

public boolean isNullable()
Returns:
Returns true if this parameter may be null, false otherwise

setNullable

public void setNullable(boolean nullable)
Deprecated. use constructor instead

Parameters:
nullable - Set this to true if the parameter may be null, false otherwise

getType

public JobParameterType getType()
This method returns the type of the parameter. The following types are supported:

Returns:
Returns the type.

setType

public void setType(JobParameterType type)
Deprecated. use constructor instead

Sets the type of this parameter.

Parameters:
type - The type to set. See description of getType()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getLocalizedName

public String getLocalizedName()
Returns the localized name depending on the current system locale. If not available, the default name deployed with this job will be returned.

Returns:
the localized name

getLocalizedName

public String getLocalizedName(Locale l)
Returns the localized name depending on the provided locale if available, otherwise the default name deployed with this job will be returned.

Parameters:
l - the locale
Returns:
the localized String if available, otherwise the default name

getLocalizedDescription

public String getLocalizedDescription()
Returns the localized description depending on the current system locale, if not available, the default description deployed with this job will be returned.

Returns:
the localized description

getLocalizedDescription

public String getLocalizedDescription(Locale l)
Returns the localized description depending on the provided locale if available, otherwise the default description deployed with this job will be returned.

Parameters:
l - the locale
Returns:
the localized String if available, otherwise the default description

toFormattedString

public String toFormattedString()
Returns this JobParameterDefinition in a formatted way

Returns:
JobParameterDefinition in formatted way


Copyright 2009 SAP AG Complete Copyright Notice