iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.editor.verifiers
Class Verifier

java.lang.Object
  extended bycom.ibm.etools.iseries.editor.verifiers.Verifier
All Implemented Interfaces:
IVerifier
Direct Known Subclasses:
VerifierCobolILE, VerifierDDS, VerifierRPGILE

public abstract class Verifier
extends Object
implements IVerifier

Base class for all iSeries program verifiers. Utility methods required by all program verifiers exist here. The view has the content of the source, and methods to obtain lines.


Nested Class Summary
protected  class Verifier.RunnableProgramVerifier
          Inner class to parser all in a different thread
 
Field Summary
protected  boolean _bDBCS
           
protected  boolean _bLocal
           
protected  boolean _bShowListingsView
           
protected  ISeriesConnection _connection
           
protected  IDocument _document
           
protected  int _iCCSID
           
protected  ISeriesJob _job
           
protected  ISeriesMember _member
           
protected  IFile _sourceIFile
           
protected  String _strFullLocalFileName
           
protected  String _strMessage
           
protected  String _strProjectName
           
protected  IVerifierView _view
           
static String copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.editor.verifiers.IVerifier
Copyright
 
Constructor Summary
Verifier()
           
 
Method Summary
 byte[] callbackGetLinePrefixText(int iLine)
          Called by the native proxy to obtain the text at a line number.
 byte[] callbackGetLineText(int iLine)
          Called by the native proxy to obtain the text at a line number.
 int callbackGetNextLine(int iLine)
          Called by the native proxy to obtain the line number of the next line.
 int callbackGetPreviousLine(int iLine)
          Called by the native proxy to obtain the line number of the previous line.
 boolean callbackIsShowLine(int iLine)
          Called by the native proxy to determine whether a line is a show line.
 String doVerification(boolean bSilentMode)
          Called by the editor and the RSE view.
 String doVerificationWithOptionsDialog()
          Called by the editor and the RSE view.
 int getCCSID()
          Returns the remote CCSID previously set.
protected  IFile getErrorListFile(IPath path)
          Retrieves the previous IFile from the error list view.
 String getEventDirectoryPath()
          Returns the directory that holds event files of extension "evt".
 String getEventName()
          Returns either the member name, or the filename without the file extension.
 String getFullLocalFileName()
          Get the file name if not a remote file.
 String getHostAlias()
          Returns the alias string to be used for the host.
 int getHostCommunicationsPort()
          Returns the communications port that can be used by the verifier to communicate with the host.
static IPath getInformationDirectoryPath()
          Returns the directory that holds listing files of extension "lst".
 String getInformationName()
          Returns either the member name, or the filename without the file extension.
 ISeriesMember getISeriesMember()
          Returns the ISeries member if a remote file.
 String getISeriesMemberFullName()
          Returns the fully qualified ISeries member name.
static String getListingDirectoryPath()
          Returns the directory that holds listing files of extension "lst".
 String getListingName()
          Returns either the member name, or the filename without the file extension.
 String getLocalFileName()
           
 String getShortFileName()
          Returns the member name if available, or the local file name
 String getSpecialCharsXLate()
          Returns the special characters using the current CCSID
 void initializeViewFromDocument(IDocument document)
           
 void initializeViewFromFile(IFile file)
           
 void initializeViewFromLpexView(com.ibm.lpex.core.LpexView view)
           
 boolean isDBCS()
          Returns the state of the DBCS flag.
 boolean isIFSFile()
          Returns true if is an IFS file, false otherwise
 boolean isLocal()
          Queries whether the resource we are verifying is local or remote.
 void setIFile(IFile sourceIFile)
          set the IFile to use for retrieving necessary info
 void setISeriesConnection(ISeriesConnection connection)
          Method setISeriesConnection.
 void setLocal(boolean bLocal)
          Sets whether the resource we are verifying is local or remote.
 void setShowListingsView(boolean bShow)
          Sets the displaying of the listings view.
protected  void showErrorListView()
          Displays the error list (event) file in the error list view.
protected  void showListingsView()
          Displays the listings view.
abstract  String verify(boolean bSilentMode)
          Subclasses to do the verification.
abstract  String verifyWithOptionsDialog()
          Subclasses to display a verify options dialog, and do the verification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.iseries.editor.verifiers.IVerifier
getCacheRefresh
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

_bDBCS

protected boolean _bDBCS

_bLocal

protected boolean _bLocal

_bShowListingsView

protected boolean _bShowListingsView

_iCCSID

protected int _iCCSID

_document

protected IDocument _document

_sourceIFile

protected IFile _sourceIFile

_member

protected ISeriesMember _member

_view

protected IVerifierView _view

_connection

protected ISeriesConnection _connection

_strFullLocalFileName

protected String _strFullLocalFileName

_strMessage

protected String _strMessage

_strProjectName

protected String _strProjectName

_job

protected ISeriesJob _job
Constructor Detail

Verifier

public Verifier()
Method Detail

callbackGetLineText

public byte[] callbackGetLineText(int iLine)
Called by the native proxy to obtain the text at a line number.


callbackGetLinePrefixText

public byte[] callbackGetLinePrefixText(int iLine)
Called by the native proxy to obtain the text at a line number.


callbackGetNextLine

public int callbackGetNextLine(int iLine)
Called by the native proxy to obtain the line number of the next line.


callbackGetPreviousLine

public int callbackGetPreviousLine(int iLine)
Called by the native proxy to obtain the line number of the previous line.


callbackIsShowLine

public boolean callbackIsShowLine(int iLine)
Called by the native proxy to determine whether a line is a show line.


doVerification

public String doVerification(boolean bSilentMode)
Called by the editor and the RSE view.

Specified by:
doVerification in interface IVerifier

doVerificationWithOptionsDialog

public String doVerificationWithOptionsDialog()
Called by the editor and the RSE view.

Specified by:
doVerificationWithOptionsDialog in interface IVerifier

getCCSID

public int getCCSID()
Returns the remote CCSID previously set.


getErrorListFile

protected IFile getErrorListFile(IPath path)
Retrieves the previous IFile from the error list view.


getEventDirectoryPath

public String getEventDirectoryPath()
Returns the directory that holds event files of extension "evt".


getEventName

public String getEventName()
Returns either the member name, or the filename without the file extension.


getInformationDirectoryPath

public static IPath getInformationDirectoryPath()
Returns the directory that holds listing files of extension "lst".


getHostAlias

public String getHostAlias()
Returns the alias string to be used for the host.


getHostCommunicationsPort

public int getHostCommunicationsPort()
Returns the communications port that can be used by the verifier to communicate with the host.


getInformationName

public String getInformationName()
Returns either the member name, or the filename without the file extension.


getISeriesMember

public ISeriesMember getISeriesMember()
Returns the ISeries member if a remote file.

Specified by:
getISeriesMember in interface IVerifier
Returns:
the hostname if the resource is remote, null otherwise

getISeriesMemberFullName

public String getISeriesMemberFullName()
Returns the fully qualified ISeries member name.


getListingDirectoryPath

public static String getListingDirectoryPath()
Returns the directory that holds listing files of extension "lst".


getListingName

public String getListingName()
Returns either the member name, or the filename without the file extension.


getShortFileName

public String getShortFileName()
Returns the member name if available, or the local file name


getLocalFileName

public String getLocalFileName()

getFullLocalFileName

public String getFullLocalFileName()
Description copied from interface: IVerifier
Get the file name if not a remote file.

Specified by:
getFullLocalFileName in interface IVerifier
Returns:
the file name
See Also:
IVerifier.getFullLocalFileName()

getSpecialCharsXLate

public String getSpecialCharsXLate()
Returns the special characters using the current CCSID


initializeViewFromDocument

public void initializeViewFromDocument(IDocument document)
                                throws IOException,
                                       CoreException
Throws:
IOException
CoreException

initializeViewFromFile

public void initializeViewFromFile(IFile file)
                            throws IOException,
                                   CoreException
Throws:
IOException
CoreException

initializeViewFromLpexView

public void initializeViewFromLpexView(com.ibm.lpex.core.LpexView view)

isDBCS

public boolean isDBCS()
Returns the state of the DBCS flag.


isIFSFile

public boolean isIFSFile()
Returns true if is an IFS file, false otherwise


isLocal

public boolean isLocal()
Description copied from interface: IVerifier
Queries whether the resource we are verifying is local or remote.

Specified by:
isLocal in interface IVerifier
Returns:
true if resource is a local resource, false if resource is a remote resource.
See Also:
IVerifier.isLocal()

setIFile

public void setIFile(IFile sourceIFile)
set the IFile to use for retrieving necessary info

Specified by:
setIFile in interface IVerifier

setISeriesConnection

public void setISeriesConnection(ISeriesConnection connection)
Description copied from interface: IVerifier
Method setISeriesConnection. sets the connection to be used by communications during the verify when accessing host info

Specified by:
setISeriesConnection in interface IVerifier
Parameters:
connection - the connection to use when verify
See Also:
IVerifier.setISeriesConnection(ISeriesConnection)

setLocal

public void setLocal(boolean bLocal)
Description copied from interface: IVerifier
Sets whether the resource we are verifying is local or remote.

Specified by:
setLocal in interface IVerifier
See Also:
IVerifier.setLocal(boolean)

setShowListingsView

public void setShowListingsView(boolean bShow)
Sets the displaying of the listings view.


showErrorListView

protected void showErrorListView()
Displays the error list (event) file in the error list view.


showListingsView

protected void showListingsView()
Displays the listings view.


verify

public abstract String verify(boolean bSilentMode)
Subclasses to do the verification.


verifyWithOptionsDialog

public abstract String verifyWithOptionsDialog()
Subclasses to display a verify options dialog, and do the verification.


iSeries Remote Systems
v6.0.0

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.