Skip navigation links

Oracle© Data Integrator Open Tools Java API Reference
11g Release 1 (11.1.1.7.0)

E17061-04


oracle.odi.sdk.opentools
Class OpenToolParameter

java.lang.Object
  extended by oracle.odi.sdk.opentools.OpenToolParameter

All Implemented Interfaces:
IOpenToolParameter

public class OpenToolParameter
extends java.lang.Object
implements IOpenToolParameter

This class provides a basic implementation for IOpenToolParameter and thus can be used to define parameters for IOpenTool objects. See the documentation for the IOpenToolParameter class for further details.


Constructor Summary
OpenToolParameter(java.lang.String pCode)
          Creates an OpenToolParameter object by only specifying its parameter code.
OpenToolParameter(java.lang.String pCode, java.lang.String pName)
          Creates an OpenToolParameter object by specifying only the parameter code and user-friendly name.
OpenToolParameter(java.lang.String pCode, java.lang.String pName, java.lang.String pHelp, boolean pMandatory)
          Constructs an OpenToolParameter object by specifying the parameter code, its user-friendly name, a help text, and whether or not it is mandatory.

 

Method Summary
 java.lang.String getCode()
          Returns the code (the actual word used on a command line) that represents the parameter.
 java.lang.String getHelp()
          Returns a string describing what the parameter does.
 java.lang.String getName()
          Returns the user-friendly name of the parameter.
 java.lang.Object getValue()
          Returns the value of this parameter previously set by setValue().
 boolean isMandatory()
          Returns a boolean that defines whether this parameter must be present for a command that calls the Open Tool to be valid.
 void setCode(java.lang.String pCode)
          Sets the parameter code.
 void setHelp(java.lang.String pHelp)
          Sets the help text which describes what the parameter does.
 void setMandatory(boolean pMandatory)
          Sets the flag that specifies whether this parameter is mandatory or not.
 void setName(java.lang.String pName)
          Sets the user-friendly name of the parameter.
 void setValue(java.lang.Object pValue)
          Sets the current value of this parameter.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

OpenToolParameter

public OpenToolParameter(java.lang.String pCode,
                         java.lang.String pName,
                         java.lang.String pHelp,
                         boolean pMandatory)
Constructs an OpenToolParameter object by specifying the parameter code, its user-friendly name, a help text, and whether or not it is mandatory.
Parameters:
pCode - - The code for the parameter as it will appear on a command line. Must not contain any spaces, minus signs (-) or equals signs (=).
pName - - The user friendly name for the parameter.
pHelp - - The help text for the parameter.
pMandatory - - Sets the mandatory flag for the parameter.

OpenToolParameter

public OpenToolParameter(java.lang.String pCode,
                         java.lang.String pName)
Creates an OpenToolParameter object by specifying only the parameter code and user-friendly name. The help text will be set to the default "no help for parameter" text, and the parameter will be mandatory.
Parameters:
pCode - - The code for the parameter as it will appear on a command line. Must not contain any spaces, minus signs (-) or equals signs (=).
pName - - The user friendly name for the parameter.

OpenToolParameter

public OpenToolParameter(java.lang.String pCode)
Creates an OpenToolParameter object by only specifying its parameter code. The name will be the same as its code, the help text will be set to the default "no help for parameter" text, and the parameter will be mandatory.
Parameters:
pCode - - The code for the parameter as it will appear on a command line. Must not contain any spaces, minus signs (-) or equals signs (=).

Method Detail

getCode

public java.lang.String getCode()
Description copied from interface: IOpenToolParameter
Returns the code (the actual word used on a command line) that represents the parameter. It must not contain any spaces, minus signs (-) or equals signs (=).
Specified by:
getCode in interface IOpenToolParameter
Returns:
The parameter code.
See Also:
IOpenToolParameter.getCode()

setCode

public void setCode(java.lang.String pCode)
Description copied from interface: IOpenToolParameter
Sets the parameter code.
Specified by:
setCode in interface IOpenToolParameter
Parameters:
pCode - - The new code for this parameter.
See Also:
IOpenToolParameter.setCode(java.lang.String)

getHelp

public java.lang.String getHelp()
Description copied from interface: IOpenToolParameter
Returns a string describing what the parameter does. This text is displayed on the General tab of the properties pane for the Open Tool when used in a package.
Specified by:
getHelp in interface IOpenToolParameter
Returns:
A string containing the help text.
See Also:
IOpenToolParameter.getHelp()

setHelp

public void setHelp(java.lang.String pHelp)
Description copied from interface: IOpenToolParameter
Sets the help text which describes what the parameter does.
Specified by:
setHelp in interface IOpenToolParameter
Parameters:
pHelp - - A string containing the new help text
See Also:
IOpenToolParameter.setHelp(java.lang.String)

isMandatory

public boolean isMandatory()
Description copied from interface: IOpenToolParameter
Returns a boolean that defines whether this parameter must be present for a command that calls the Open Tool to be valid.
Specified by:
isMandatory in interface IOpenToolParameter
Returns:
True if the parameter must be present; false if it is optional.
See Also:
IOpenToolParameter.isMandatory()

setMandatory

public void setMandatory(boolean pMandatory)
Description copied from interface: IOpenToolParameter
Sets the flag that specifies whether this parameter is mandatory or not.
Specified by:
setMandatory in interface IOpenToolParameter
Parameters:
pMandatory - - The new value of the flag.
See Also:
IOpenToolParameter.setMandatory(boolean)

getName

public java.lang.String getName()
Description copied from interface: IOpenToolParameter
Returns the user-friendly name of the parameter. This name, which may contain spaces and other characters, is displayed on the General tab of the properties pane of a package window.
Specified by:
getName in interface IOpenToolParameter
Returns:
A string containing the user-friendly name.
See Also:
IOpenToolParameter.getName()

setName

public void setName(java.lang.String pName)
Description copied from interface: IOpenToolParameter
Sets the user-friendly name of the parameter.
Specified by:
setName in interface IOpenToolParameter
Parameters:
pName - - A string containing the new user-friendly name.
See Also:
IOpenToolParameter.setName(java.lang.String)

getValue

public java.lang.Object getValue()
Description copied from interface: IOpenToolParameter
Returns the value of this parameter previously set by setValue(). This can be any type of object.
Specified by:
getValue in interface IOpenToolParameter
Returns:
Any object representing the current value of the parameter.
See Also:
IOpenToolParameter.getValue()

setValue

public void setValue(java.lang.Object pValue)
Description copied from interface: IOpenToolParameter
Sets the current value of this parameter. This can be any type of object.
Specified by:
setValue in interface IOpenToolParameter
Parameters:
pValue - - The new current value of the parameter.
See Also:
IOpenToolParameter.setValue(java.lang.Object)

Skip navigation links

Oracle© Data Integrator Open Tools Java API Reference
11g Release 1 (11.1.1.7.0)

E17061-04


Copyright © 2010, 2013, Oracle and/or its affiliates. All rights reserved.