iSeries Remote Systems
v6.0.0

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

java.lang.Object
  extended bycom.ibm.etools.iseries.editor.verifiers.Verifier
      extended bycom.ibm.etools.iseries.editor.verifiers.VerifierDDS
All Implemented Interfaces:
IVerifier

public class VerifierDDS
extends Verifier

DDS Program verifier


Nested Class Summary
 
Nested classes inherited from class com.ibm.etools.iseries.editor.verifiers.Verifier
Verifier.RunnableProgramVerifier
 
Field Summary
protected  boolean _bAvailable
           
protected  int _iDDSType
           
static String Copyright
           
 
Fields inherited from class com.ibm.etools.iseries.editor.verifiers.Verifier
_bDBCS, _bLocal, _bShowListingsView, _connection, _document, _iCCSID, _job, _member, _sourceIFile, _strFullLocalFileName, _strMessage, _strProjectName, _view, copyright
 
Constructor Summary
VerifierDDS(IDocument document, String ddsType)
          Constructor for a document.
VerifierDDS(IFile file, String ddsType)
          Constructor for a file with source type The set of possible dds type strings are defined in the convertDdsType() method
VerifierDDS(com.ibm.lpex.core.LpexView lpexView, int ddsType)
          Constructor for an Lpex view.
 
Method Summary
static int computeDdsTypeFromFileName(String fileName)
          Return what kind of DDS type this file name is Looks at the extension on this editor title and uses convertDdsType(String) to determine the IISeriesEditorConstantsDDS constant to return.
static int convertDdsType(String strName)
          Returns a DDS Type from IISeriesEditorConstantsDDS based on the file extension Moved from ISeriesEditorDDSProgramVerifier.setDDSType()
 boolean getCacheRefresh()
          Returns whether or not the cache should be refreshed.
 String getISeriesMemberFullName()
          Returns the fully qualified ISeries member name.
static boolean isAvailable()
          Returns whether this verifier is available.
 void setDDSType(int iDDSType)
          Sets the DDS type as defined in IISeriesEditorConstantsDDS class.
 void setDDSType(String strType)
          Sets the DDS type as defined in IISeriesEditorConstantsDDS class.
 String verify(boolean bSilentMode)
          Do the verification.
 String verifyWithOptionsDialog()
          Displays the program verifier options dialog and the verifies the program.
 
Methods inherited from class com.ibm.etools.iseries.editor.verifiers.Verifier
callbackGetLinePrefixText, callbackGetLineText, callbackGetNextLine, callbackGetPreviousLine, callbackIsShowLine, doVerification, doVerificationWithOptionsDialog, getCCSID, getErrorListFile, getEventDirectoryPath, getEventName, getFullLocalFileName, getHostAlias, getHostCommunicationsPort, getInformationDirectoryPath, getInformationName, getISeriesMember, getListingDirectoryPath, getListingName, getLocalFileName, getShortFileName, getSpecialCharsXLate, initializeViewFromDocument, initializeViewFromFile, initializeViewFromLpexView, isDBCS, isIFSFile, isLocal, setIFile, setISeriesConnection, setLocal, setShowListingsView, showErrorListView, showListingsView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

_bAvailable

protected boolean _bAvailable

_iDDSType

protected int _iDDSType
Constructor Detail

VerifierDDS

public VerifierDDS(IDocument document,
                   String ddsType)
Constructor for a document. The set of possible dds type strings are defined in the convertDdsType() method

See Also:
convertDdsType()

VerifierDDS

public VerifierDDS(IFile file,
                   String ddsType)
Constructor for a file with source type The set of possible dds type strings are defined in the convertDdsType() method

See Also:
convertDdsType()

VerifierDDS

public VerifierDDS(com.ibm.lpex.core.LpexView lpexView,
                   int ddsType)
Constructor for an Lpex view.

Method Detail

isAvailable

public static boolean isAvailable()
Returns whether this verifier is available.


setDDSType

public void setDDSType(int iDDSType)
Sets the DDS type as defined in IISeriesEditorConstantsDDS class.


setDDSType

public void setDDSType(String strType)
Sets the DDS type as defined in IISeriesEditorConstantsDDS class. The set of possible dds type strings are defined in the convertDdsType() method

See Also:
convertDdsType()

convertDdsType

public static int convertDdsType(String strName)
Returns a DDS Type from IISeriesEditorConstantsDDS based on the file extension Moved from ISeriesEditorDDSProgramVerifier.setDDSType()


computeDdsTypeFromFileName

public static int computeDdsTypeFromFileName(String fileName)
Return what kind of DDS type this file name is Looks at the extension on this editor title and uses convertDdsType(String) to determine the IISeriesEditorConstantsDDS constant to return.

Parameters:
fileName - containing extension that denotes the DDS type
Returns:
one of IISeriesEditorConstantsDDS representing the type of DDS. Specifically it will be one of.
  • AS400_DISPLAY_FILE
  • AS400_PRINTER_FILE
  • AS400_ICOMM_FILE
  • AS400_LOGICAL_FILE
  • AS400_PHYSICAL_FILE
  • AS400_UNKNOWN_FILE

getCacheRefresh

public boolean getCacheRefresh()
Returns whether or not the cache should be refreshed.

Returns:
boolean returns true if refrsh cache is on, false otherwise.
See Also:
IVerifier.getCacheRefresh()

getISeriesMemberFullName

public String getISeriesMemberFullName()
Returns the fully qualified ISeries member name. Overrides the superclass to use the alias in the connection name. For this to work, setDDSType() must have been done before the call to this.

Overrides:
getISeriesMemberFullName in class Verifier

verify

public String verify(boolean bSilentMode)
Do the verification.

Specified by:
verify in class Verifier

verifyWithOptionsDialog

public String verifyWithOptionsDialog()
Displays the program verifier options dialog and the verifies the program.

Specified by:
verifyWithOptionsDialog in class Verifier

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.