AR System Java API

com.bmc.arsys.api
Class LocalizedRequestInfo

java.lang.Object
  extended by com.bmc.arsys.api.LocalizedRequestInfo
All Implemented Interfaces:
Serializable, Cloneable

public class LocalizedRequestInfo
extends Object
implements Cloneable, Serializable

The LocalizedRequestInfo class is used to describe the properties of a message. This class is used in retrieving the message text of a message object.

The following table lists the specific parameters you need to set with each message type, while retrieving the message text corresponding to the locale given in the content information.

Message Type setMessageType(int) Accompanying Items You Need To Include To Be Localized
System Message AR_LOCAL_TEXT_SYSTEM_MESSAGE
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_SYSTEM_MESSAGE.
  2. Set the name of the system message (setName(String)).
Active Link Message AR_LOCAL_TEXT_ACT_LINK_MESSAGE
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_ACT_LINK_MESSAGE.
  2. Set the name of the system message (setName(String)).
  3. Set whether the action belongs to If actions list or Else actions list (setIfElse(int)).
  4. Set the number of the action in its list (setAction(int)).
Filter Message AR_LOCAL_TEXT_FILTER_MESSAGE
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_FILTER_MESSAGE.
  2. Set the name of the system message (setName(String)).
  3. Set whether the action belongs to If actions list or Else actions list (setIfElse(int)).
  4. Set the number of the action in its list (setAction(int)).
Active Link Help Text AR_LOCAL_TEXT_ACT_LINK_HELP
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_ACT_LINK_HELP.
  2. Set the name of the active link (setName(String)) that you want the help for. 
Form Help Text AR_LOCAL_TEXT_FORM_HELP
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_FORM_HELP.
  2. Set the name of the form (setName(String)) that you want the help for. 
Field Help Text AR_LOCAL_TEXT_FIELD_HELP
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_FIELD_HELP.
  2. Set the name of the form (setName(String)) that the field exists on. 
  3. Set the field ID (setInternalID(InternalID internalID)) you want the help for.
Container Description AR_LOCAL_TEXT_CONTAIN_DESC
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_CONTAIN_DESC.
  2. Set the name of the container (setName(String)) that you want the description for. 
List Menu Definition AR_LOCAL_TEXT_SYSTEM_MESSAGE
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_SYSTEM_MESSAGE.
  2. Set the name of the menu (setName(String)). You will be returned a block of text that is the format for the file-style menu.
External Report AR_LOCAL_TEXT_EXTERN_REPORT
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_EXTERN_REPORT.
  2. Set the name of the active link (setName(String)) associated with the external report.
  3. Set the field ID (setInternalID(InternalID internalID)) as the file ID of the external report. You will be returned a bytelist that consists of the report definition.
Container Label AR_LOCAL_TEXT_CONTAINER_LABEL
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_CONTAINER_LABEL.
  2. Set the name of the container (setName(String)) that you want the label for. 
Container Help Text AR_LOCAL_TEXT_CONTAINER_HELP
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_CONTAINER_HELP.
  2. Set the name of the container (setName(String)) that you want the help for. 
Application Help Text AR_LOCAL_TEXT_APPLICATION_HELP
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_APPLICATION_HELP.
  2. Set the name of the application (setName(String)). 
Application About AR_LOCAL_TEXT_APPLICATION_ABOUT
  1. Set the message type (setMessageType(int)) to AR_LOCAL_TEXT_APPLICATION_ABOUT.
  2. Set the name of the application (setName(String)). You will be returned a bytelist that consists of the About Box bitmap.

See Also:
Serialized Form

Constructor Summary
LocalizedRequestInfo()
           
LocalizedRequestInfo(String name, int messageType)
           
LocalizedRequestInfo(String name, int messageType, int internalID)
           
LocalizedRequestInfo(String name, int messageType, int ifelse, int action)
           
LocalizedRequestInfo(String name, int messageType, int ifelse, int action, int internalID)
           
 
Method Summary
 Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(Object obj)
           
 int getAction()
          Returns the order of the actions in the If/Else list.
 int getIfElse()
          Returns whether the action is the If list or the Else list.
 int getInternalID()
          Returns internal IDs for field IDs.
 int getMessageType()
          Returns the message type.
 String getName()
          Returns name of message.
 int hashCode()
           
 void setAction(int action)
          Sets the order of the actions in the If/Else list.
 void setIfElse(int ifelse)
          Sets whether the action is the If list or the Else list.
 void setInternalID(int internalID)
          Sets internal IDs for field IDs.
 void setMessageType(int messageType)
          Sets the message type.
 void setName(String name)
          Sets name of message.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalizedRequestInfo

public LocalizedRequestInfo()

LocalizedRequestInfo

public LocalizedRequestInfo(String name,
                            int messageType)

LocalizedRequestInfo

public LocalizedRequestInfo(String name,
                            int messageType,
                            int ifelse,
                            int action)

LocalizedRequestInfo

public LocalizedRequestInfo(String name,
                            int messageType,
                            int internalID)

LocalizedRequestInfo

public LocalizedRequestInfo(String name,
                            int messageType,
                            int ifelse,
                            int action,
                            int internalID)
Method Detail

getName

public String getName()
Returns name of message.


setName

public void setName(String name)
Sets name of message.


getMessageType

public int getMessageType()
Returns the message type. (This is the Message Type field in AR System Message Catalog form.) You can use the following constants:


setMessageType

public void setMessageType(int messageType)
Sets the message type. (This is the Message Type field in AR System Message Catalog form.) You can use the following constants:


getIfElse

public int getIfElse()
Returns whether the action is the If list or the Else list.


setIfElse

public void setIfElse(int ifelse)
Sets whether the action is the If list or the Else list.


getAction

public int getAction()
Returns the order of the actions in the If/Else list. 0 = first action, 1 = 2nd action, and so on.


setAction

public void setAction(int action)
Sets the order of the actions in the If/Else list. 0 = first action, 1 = 2nd action, and so on.


getInternalID

public int getInternalID()
Returns internal IDs for field IDs. Also used for file IDs of external reports.


setInternalID

public void setInternalID(int internalID)
Sets internal IDs for field IDs. Also used for file IDs of external reports.


clone

public Object clone()
             throws CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

AR System Java API

© Copyright 2006, 2007 BMC Software, Inc.