com.tapina.robe.swi
Class MessageTrans

java.lang.Object
  extended bycom.tapina.robe.runtime.Block
      extended bycom.tapina.robe.runtime.DataBlock
          extended bycom.tapina.robe.module.Module
              extended bycom.tapina.robe.swi.SWIHandler
                  extended bycom.tapina.robe.swi.MessageTrans

public final class MessageTrans
extends SWIHandler


Field Summary
 
Fields inherited from class com.tapina.robe.swi.SWIHandler
log, METHOD_PARAMETERS
 
Method Summary
 void FileInfo(Environment env)
          Returns information about the size required to hold a message file before MessageTrans_OpenFile used.
static int getBase()
           
static MessageTrans getInstance()
           
static java.lang.reflect.Method getMethod(java.lang.Integer offset)
           
 void Lookup(Environment env)
          This SWI looks up the token on the message file.
 java.lang.String lookup(MessageFile file, java.lang.String token, java.lang.String[] parameters)
           
 void OpenFile(Environment env)
          This SWI opens a message-file.
 MessageFile openFile(java.lang.String filename)
           
 
Methods inherited from class com.tapina.robe.module.Module
getBytes, getHelp, getName, getSize, setSize
 
Methods inherited from class com.tapina.robe.runtime.Block
getAddress, setAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MessageTrans getInstance()

getBase

public static int getBase()

getMethod

public static java.lang.reflect.Method getMethod(java.lang.Integer offset)
                                          throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

FileInfo

public void FileInfo(Environment env)
Returns information about the size required to hold a message file before MessageTrans_OpenFile used. Entry: => R1 = pointer to filename Exit: <= R0 = bit 0 set if held in memory R2 = size of buffer needed

Parameters:
env -

OpenFile

public void OpenFile(Environment env)
This SWI opens a message-file. If R2 = 0, then the data-structure in R0 and the filename in R1 both must be in the RMA. Entry: => R0 = pointer to 4-word data structure R1 = pointer to filename R2 = pointer to buffer for file data, or 0 to use RMA

Parameters:
env -

openFile

public MessageFile openFile(java.lang.String filename)

Lookup

public void Lookup(Environment env)
This SWI looks up the token on the message file. If R2 = 0 on entry, you'll get a pointer to a read-only string, and no parameter substitution will be done, also the string will be terminated by 10, and not 0. If R2 != 0, %0 to %3 in the string will be replaced by the strings in R4 to R7. Prior to this call, you must have called MessageTrans_OpenFile . If the token is not found in the message file specified, it will be searched for in the global message file. If R2 = 0 on entry and the file is not stored in your own workspace, then the pointer will become invalid after Service_MessageFileClosed is issued - your application must trap this service call so it can re-read pointers. Entry: => R0 = pointer to 4-word data structure, or 0 for global messages R1 = pointer to Token R2 = pointer to buffer R3 = buffer size R4 = pointer to parameter 0, or 0 if none R5 = pointer to parameter 1, or 0 if none R6 = pointer to parameter 2, or 0 if none R7 = pointer to parameter 3, or 0 if none Exit: <= R1 = pointer to token-terminator R2 = result string R3 = size of result

Parameters:
env -

lookup

public java.lang.String lookup(MessageFile file,
                               java.lang.String token,
                               java.lang.String[] parameters)


Copyright © 2003-2005 . All Rights Reserved.