Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama
Interface Argument

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
InitArgument, InputArgument, OutputArgument

public interface Argument
extends java.io.Serializable

Generic Interface for an Argument. An argument is defined and used by the Adapter and can be of one the types Init, Input and Output.

See Also:
ArgumentType

Field Summary
static ArgumentType ENUM
          Deprecated.  
static ArgumentType FILE
          Deprecated. since 102 use definition in the new ArgumentType class instead.
static ArgumentType MULTI_LINE
          Deprecated.  
static ArgumentType SINGLE_LINE
          Deprecated.  

 

Method Summary
 java.lang.String getCaption()
          Gets the caption.
 java.lang.String getComment()
          Gets the comment.
 java.lang.String getName()
          Gets the name.
 java.lang.String[] getOptions()
          Gets the options.
 ArgumentType getType()
          Gets the type.
 java.lang.Boolean getUsageUser()
          Gets the end user usage.
 java.lang.String getValue()
          Gets the value.
 java.lang.String[] getValues()
          Returns the values or null if none.
 boolean isUsageUser()
          Checks if this argument is a target for end-user customization.
 void setCaption(java.lang.String caption)
          Sets the caption.
 void setComment(java.lang.String comment)
          Sets the comment.
 void setName(java.lang.String name)
          Sets the name.
 void setOptions(java.lang.String[] options)
          Sets the options, this call is only valid if the type is ENUM.
 void setType(ArgumentType type)
          Sets the type.
 void setUsageUser(boolean usageUser)
          Sets the user usage.
 void setUsageUser(java.lang.Boolean usageUser)
          Sets the user usage.
 void setValue(java.lang.String value)
          Sets the value.
 void setValues(java.lang.String[] values)
          Sets the values.

 

Field Detail

SINGLE_LINE

public static final ArgumentType SINGLE_LINE
Deprecated.  
The single line constant.

MULTI_LINE

public static final ArgumentType MULTI_LINE
Deprecated.  
The multi line constant.

ENUM

public static final ArgumentType ENUM
Deprecated.  
The enum constant.

FILE

public static final ArgumentType FILE
Deprecated. since 102 use definition in the new ArgumentType class instead.
The file constant.
Method Detail

getName

public java.lang.String getName()
Gets the name.

Typically defined by the Adapter.

Returns:
the non null unqiue name.

setName

public void setName(java.lang.String name)
Sets the name.
Parameters:
name - the new name.

getValue

public java.lang.String getValue()
Gets the value.
Returns:
the value or null if none.

getValues

public java.lang.String[] getValues()
Returns the values or null if none.
Returns:
an array of values

setValue

public void setValue(java.lang.String value)
Sets the value.
Parameters:
value - the value.

setValues

public void setValues(java.lang.String[] values)
Sets the values.
Parameters:
values - an array of values.

getCaption

public java.lang.String getCaption()
Gets the caption.

Typically set by the MasterService.

Returns:
the caption or the name of the argument if not defined.

setCaption

public void setCaption(java.lang.String caption)
Sets the caption.

Typically set by the MasterService.

Parameters:
caption - the caption.

getComment

public java.lang.String getComment()
Gets the comment.
Returns:
the comment or null if not defined.

setComment

public void setComment(java.lang.String comment)
Sets the comment.

Typically set by the Adapter.

Parameters:
comment - the comment.

getUsageUser

public java.lang.Boolean getUsageUser()
Gets the end user usage.
Returns:
Boolean.TRUE if this argument is a target of end-user customization, Boolean.FALSE if not or null if undefined.

setUsageUser

public void setUsageUser(java.lang.Boolean usageUser)
Sets the user usage.

setUsageUser

public void setUsageUser(boolean usageUser)
Sets the user usage.

isUsageUser

public boolean isUsageUser()
Checks if this argument is a target for end-user customization.
Returns:
true of this argument is a target for end-user customization, otherwise false.

setType

public void setType(ArgumentType type)
Sets the type.

Typically set by the Adapter.

Parameters:
type - one of SINGLE_LINE, MULTI_LINE or ENUM.

getType

public ArgumentType getType()
Gets the type.
Returns:
the type, one of SINGLE_LINE, MULTI_LINE or ENUM.

getOptions

public java.lang.String[] getOptions()
Gets the options. Options are used for ENUM arguments, and is just a list of values that this argument can have.
Returns:
the options if the type is ENUM, otherwise null.
See Also:
ArgumentType.ENUM

setOptions

public void setOptions(java.lang.String[] options)
Sets the options, this call is only valid if the type is ENUM.
Parameters:
options - the possible values of this argument as an array of String.
See Also:
ArgumentType.ENUM

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.