com.sas.servlet.util
Class CommandDefinition

com.sas.servlet.util.CommandDefinition

Deprecated. As of Version 3.0 this class has been replaced by com.sas.servlet.util.commandprocessor.CommandProcessorViewInterface.

public class CommandDefinition


Field Summary
static int ALL_VIEWERS
          Deprecated. All attached viewers are the target of this command.
static int MODEL
          Deprecated. The model is the target of this command.
static int NAMED_VIEWER
          Deprecated. The target of this command will be retrieved from the request object.
static int NAMED_VIEWERS
          Deprecated. The target of this command will be retrieved from the request object.
 
Constructor Summary
CommandDefinition()
          Deprecated. Default Constructor
CommandDefinition(java.lang.String prefix, java.lang.String[] attrNames, java.lang.String className, int target)
          Deprecated. Constructor
CommandDefinition(java.lang.String prefix, java.lang.String[] attrNames, java.lang.String className, int target, java.lang.String contentType)
          Deprecated. Constructor
 
Method Summary
 java.lang.String[] getAttributeNames()
          Deprecated. Returns the names of the attributes associated with the command prefix
 java.lang.String getCommandClass()
          Deprecated. Returns the name of java class associated with this command.
 java.lang.String getContentType()
          Deprecated. Returns the contentType returned by this command.
 java.lang.String getPrefix()
          Deprecated. Returns the command prefix for the command definition.
 int getTargetType()
          Deprecated. Returns the target type of the command.
 void setAttributeNames(java.lang.String[] attributes)
          Deprecated. Sets the names of the attributes associated with the command prefix.
 void setCommandClass(java.lang.String className)
          Deprecated. Sets the name of java class associated with this command.
 void setContentType(java.lang.String contentType)
          Deprecated. Sets the contentType returned by this command.
 void setPrefix(java.lang.String prefix)
          Deprecated. Sets the command prefix for the CommandDefinition.
 void setTargetType(int target)
          Deprecated. Sets the target type of the command.
 

Field Detail

MODEL

public static final int MODEL
Deprecated. 
The model is the target of this command.

See Also:
Constant Field Values

ALL_VIEWERS

public static final int ALL_VIEWERS
Deprecated. 
All attached viewers are the target of this command.

See Also:
Constant Field Values

NAMED_VIEWER

public static final int NAMED_VIEWER
Deprecated. 
The target of this command will be retrieved from the request object. The name of the parameter that will be retrieved will be CMDTARGET

See Also:
Constant Field Values

NAMED_VIEWERS

public static final int NAMED_VIEWERS
Deprecated. 
The target of this command will be retrieved from the request object. The name of the parameter that will be retrieved will be CMDTARGET

See Also:
Constant Field Values
Constructor Detail

CommandDefinition

public CommandDefinition()
Deprecated. 
Default Constructor


CommandDefinition

public CommandDefinition(java.lang.String prefix,
                         java.lang.String[] attrNames,
                         java.lang.String className,
                         int target)
                  throws java.lang.ClassNotFoundException
Deprecated. 
Constructor

Parameters:
prefix - command prefix
attrNames - Names of command attributes.
className - Name of java class associated with command
target - target type
Throws:
java.lang.ClassNotFoundException
See Also:
setPrefix(java.lang.String), setAttributeNames(java.lang.String[]), setCommandClass(java.lang.String), setTargetType(int)

CommandDefinition

public CommandDefinition(java.lang.String prefix,
                         java.lang.String[] attrNames,
                         java.lang.String className,
                         int target,
                         java.lang.String contentType)
                  throws java.lang.ClassNotFoundException
Deprecated. 
Constructor

Parameters:
prefix - command prefix
attrNames - Names of command attributes.
className - Name of java class associated with command
target - target type
contentType - content type
Throws:
java.lang.ClassNotFoundException
See Also:
setPrefix(java.lang.String), setAttributeNames(java.lang.String[]), setCommandClass(java.lang.String), setTargetType(int), setContentType(java.lang.String)
Method Detail

getPrefix

public java.lang.String getPrefix()
Deprecated. 
Returns the command prefix for the command definition.

Returns:
command prefix.

setPrefix

public void setPrefix(java.lang.String prefix)
Deprecated. 
Sets the command prefix for the CommandDefinition.

Parameters:
prefix - command prefix

getAttributeNames

public java.lang.String[] getAttributeNames()
Deprecated. 
Returns the names of the attributes associated with the command prefix

Returns:
attribute names.

setAttributeNames

public void setAttributeNames(java.lang.String[] attributes)
Deprecated. 
Sets the names of the attributes associated with the command prefix.

Parameters:
attributes - names of command attributes.

getCommandClass

public java.lang.String getCommandClass()
Deprecated. 
Returns the name of java class associated with this command.

Returns:
name of java class

setCommandClass

public void setCommandClass(java.lang.String className)
                     throws java.lang.ClassNotFoundException
Deprecated. 
Sets the name of java class associated with this command.

Parameters:
className - name of java class
Throws:
java.lang.ClassNotFoundException

getTargetType

public int getTargetType()
Deprecated. 
Returns the target type of the command. Valid values are MODEL, ALL_VIEWERS, and NAMED_VIEWERS.

Returns:
command target type.

setTargetType

public void setTargetType(int target)
Deprecated. 
Sets the target type of the command. Valid values are MODEL, ALL_VIEWERS, and NAMED_VIEWERS.

Parameters:
target - command target type.

getContentType

public java.lang.String getContentType()
Deprecated. 
Returns the contentType returned by this command. The default value is text/html.

Returns:
contentType

setContentType

public void setContentType(java.lang.String contentType)
Deprecated. 
Sets the contentType returned by this command. The default value is text/html

Parameters:
contentType - content type.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.