Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.verifiers
Class IBMiEditorProgramVerifier

java.lang.Object
  extended by com.ibm.etools.iseries.edit.verifiers.IBMiEditorProgramVerifier
All Implemented Interfaces:
IISeriesEditorProgramVerifier
Direct Known Subclasses:
IBMiEditorCobolProgramVerifier, IBMiEditorRPGILEProgramVerifier, ISeriesEditorDDSProgramVerifier

public abstract class IBMiEditorProgramVerifier
extends Object
implements IISeriesEditorProgramVerifier

Base class for program verifiers.


Field Summary
protected  boolean _bLocal
           
protected  IBMiConnection _connection
           
protected  IFile _iFile
           
protected  IQSYSMember _member
           
protected static String _strEmpty
           
protected  String _strLocalFileName
           
protected  Verifier _verifier
           
protected  LpexView _view
           
static String copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.edit.verifiers.IISeriesEditorProgramVerifier
Copyright
 
Constructor Summary
IBMiEditorProgramVerifier(LpexView view)
          Constructor.
 
Method Summary
 byte[] callbackGetLineText(int iElement)
          Called by the native proxy to obtain the text at a line number.
 int callbackGetNextLine(int iElement)
          Called by the native proxy to obtain the Element number of the next Element.
 int callbackGetPreviousLine(int iElement)
          Called by the native proxy to obtain the Element number of the previous Element.
 boolean callbackIsShowLine(int iLine)
          Called by the native proxy to determine whether a line is a show line.
 void displayMessage(String strMessage)
           
 IQSYSMember getISeriesMember()
          Returns the ISeriesMember object.
 String getLocalFileName()
           
 Verifier getVerifier()
          Returns the verifier
abstract  boolean isAvailable()
          Subclasses to return whether the verifier function is available.
 boolean isLocal()
          Queries whether the resource we are verifying is local or remote.
 void setIFile(IFile fileObject)
          sets up the IFile object for verifies to find information
 void setISeriesConnection(IBMiConnection connection)
          Gives the verifier the ISeries connection.
 void setLocal(boolean bLocal)
          Sets whether the resource we are verifying is local or remote.
 void verifyProgram(int iMode)
          Verifies a program using the options specified by the end user in the preferences pages.
 void verifyProgramWithOptionsDialog()
          Verifies a program using the options specified by the end user in the options dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright

_strEmpty

protected static final String _strEmpty
See Also:
Constant Field Values

_bLocal

protected boolean _bLocal

_member

protected IQSYSMember _member

_connection

protected IBMiConnection _connection

_view

protected LpexView _view

_strLocalFileName

protected String _strLocalFileName

_verifier

protected Verifier _verifier

_iFile

protected IFile _iFile
Constructor Detail

IBMiEditorProgramVerifier

public IBMiEditorProgramVerifier(LpexView view)
Constructor.

Method Detail

getVerifier

public Verifier getVerifier()
Returns the verifier

Specified by:
getVerifier in interface IISeriesEditorProgramVerifier
Returns:
the verifier

callbackGetLineText

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


callbackGetNextLine

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


callbackGetPreviousLine

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


callbackIsShowLine

public boolean callbackIsShowLine(int iLine)
Called by the native proxy to determine whether a line is a show line. All lines given to the verifier are not show elements.


displayMessage

public void displayMessage(String strMessage)

getLocalFileName

public String getLocalFileName()
See Also:
com.ibm.etools.iseries.editor.IISeriesEditorProgramVerifier#getFileName()

getISeriesMember

public IQSYSMember getISeriesMember()
Returns the ISeriesMember object.

Specified by:
getISeriesMember in interface IISeriesEditorProgramVerifier

isAvailable

public abstract boolean isAvailable()
Subclasses to return whether the verifier function is available.

Specified by:
isAvailable in interface IISeriesEditorProgramVerifier

isLocal

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

Specified by:
isLocal in interface IISeriesEditorProgramVerifier
Returns:
true if resource is a local resource, false if resource is a remote resource.
See Also:
com.ibm.etools.iseries.editor.IISeriesEditorProgramVerifier#isLocal()

setISeriesConnection

public void setISeriesConnection(IBMiConnection connection)
Gives the verifier the ISeries connection.

Specified by:
setISeriesConnection in interface IISeriesEditorProgramVerifier
Parameters:
connection - the connection that the verify should use

setIFile

public void setIFile(IFile fileObject)
Description copied from interface: IISeriesEditorProgramVerifier
sets up the IFile object for verifies to find information

Specified by:
setIFile in interface IISeriesEditorProgramVerifier
See Also:
com.ibm.etools.iseries.editor.IISeriesEditorProgramVerifier#setIFile(IFile)

setLocal

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

Specified by:
setLocal in interface IISeriesEditorProgramVerifier
See Also:
com.ibm.etools.iseries.editor.IISeriesEditorProgramVerifier#setLocal(boolean)

verifyProgram

public void verifyProgram(int iMode)
Verifies a program using the options specified by the end user in the preferences pages.

Specified by:
verifyProgram in interface IISeriesEditorProgramVerifier

verifyProgramWithOptionsDialog

public void verifyProgramWithOptionsDialog()
Verifies a program using the options specified by the end user in the options dialog.

Specified by:
verifyProgramWithOptionsDialog in interface IISeriesEditorProgramVerifier

Rational Developer for Power Systems Software
V7.6

Copyright 2011 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.