Class PointCardRWProperties

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWProperties
All Implemented Interfaces:
JposBaseInterface, PointCardRWInterface

public class PointCardRWProperties extends JposCommonProperties implements PointCardRWInterface
Class containing the point card reader / writer specific properties, their default values and default implementations of PointCardRWInterface. For details about properties, methods and method parameters, see UPOS specification, chapter Point Card Reader / Writer.
  • Field Details

    • CapBold

      public boolean CapBold
      UPOS property CapBold. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapCardEntranceSensor

      public boolean CapCardEntranceSensor
      UPOS property CapCardEntranceSensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. Keep in mind that this value will be automatically converted to JPOS_TRUE or JPOS_FALSE.
    • CapCharacterSet

      public int CapCharacterSet
      UPOS property CapCharacterSet. Default: CCS_ASCII. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapCleanCard

      public boolean CapCleanCard
      UPOS property CapCleanCard. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapClearPrint

      public boolean CapClearPrint
      UPOS property CapClearPrint. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapDhigh

      public boolean CapDhigh
      UPOS property CapDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapDwide

      public boolean CapDwide
      UPOS property CapDwide. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapDwideDhigh

      public boolean CapDwideDhigh
      UPOS property CapDwideDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapItalic

      public boolean CapItalic
      UPOS property CapItalic. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapLeft90

      public boolean CapLeft90
      UPOS property CapLeft90. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapMapCharacterSet

      public boolean CapMapCharacterSet
      UPOS property CapMapCharacterSet. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapPrint

      public boolean CapPrint
      UPOS property CapPrint. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapPrintMode

      public boolean CapPrintMode
      UPOS property CapPrintMode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapRight90

      public boolean CapRight90
      UPOS property CapRight90. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapRotate180

      public boolean CapRotate180
      UPOS property CapRotate180. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapTracksToRead

      public int CapTracksToRead
      UPOS property CapTracksToRead. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CapTracksToWrite

      public int CapTracksToWrite
      UPOS property CapTracksToWrite. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CardState

      public int CardState
      UPOS property CardState. Default: STATE_NOCARD. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • CharacterSet

      public int CharacterSet
      UPOS property CharacterSet. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method if CapPrint is true.
    • CharacterSetList

      public String CharacterSetList
      UPOS property CharacterSetList. Default: An empty string. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • FontTypeFaceList

      public String FontTypeFaceList
      UPOS property FontTypeFaceList. Default: An empty string. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • LineChars

      public int LineChars
      UPOS property LineChars. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • LineCharsList

      public String LineCharsList
      UPOS property LineCharsList. Default: An empty string. Must be overwritten by objects derived from JposDevice within the changeDefaults method if CapPrint is true.
    • LineHeight

      public int LineHeight
      UPOS property LineHeight. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • LineSpacing

      public int LineSpacing
      UPOS property LineSpacing. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • LineWidth

      public int LineWidth
      UPOS property LineWidth. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • MapCharacterSet

      public boolean MapCharacterSet
      UPOS property MapCharacterSet. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • MapMode

      public int MapMode
      UPOS property MapMode. Default: MM_DOTS. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • MaxLines

      public int MaxLines
      UPOS property MaxLines. Default: 0. Must be overwritten by objects derived from JposDevice within the changeDefaults method if CapPrint is true.
    • PrintHeight

      public int PrintHeight
      UPOS property PrintHeight. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • ReadState

      public Integer[] ReadState
      UPOS properties ReadState1 and ReadState1. Default: { 0, 0 }. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • RecvLength

      public Integer[] RecvLength
      UPOS property RecvLength1 and RecvLength2. Default: { 0, 0 }. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • SidewaysMaxChars

      public int SidewaysMaxChars
      UPOS property SidewaysMaxChars. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • SidewaysMaxLines

      public int SidewaysMaxLines
      UPOS property SidewaysMaxLines. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • TracksToRead

      public int TracksToRead
      UPOS property TracksToRead. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • TracksToWrite

      public int TracksToWrite
      UPOS property TracksToWrite. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • TrackData

      public String[] TrackData
      Internal property TrackData. Contains the values of the UPOS propertier Track1Data, Track2Data, Track3Data, Track4Data, Track5Data and Track6Data. TrackData[N-1] corresponds to TrackNData.
    • WriteState

      public Integer[] WriteState
      UPOS property WriteState1 and WriteState2. Default: { 0, 0 }. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • WriteData

      public String[] WriteData
      Internal property WriteData. Contains the values of the UPOS properties Write1Data, Write2Data, Write3Data, Write4Data, Write5Data and Write6Data. WriteData[N-1] corresponds to WriteNData.
  • Constructor Details

    • PointCardRWProperties

      protected PointCardRWProperties(int dev)
      Constructor.
      Parameters:
      dev - Device index
  • Method Details

    • setReadState

      public void setReadState(int trackNumber, int value)
      Set the state given for the specified track into property ReadState1 or ReadState2.
      Parameters:
      trackNumber - Number of the track
      value - New state of the track specified by trackNumber
    • getReadState

      public int getReadState(int trackNumber)
      get the state of the specified track from property ReadState1 or ReadState2.
      Parameters:
      trackNumber - Number of the track.
      Returns:
      Read state of the specified track.
    • setWriteState

      public void setWriteState(int trackNumber, int value)
      Set the state given for the specified track into property WriteState1 or WriteState2.
      Parameters:
      trackNumber - Number of the track
      value - New state of the track specified by trackNumber
    • getWriteState

      public int getWriteState(int trackNumber)
      get the state of the specified track from property WriteState1 or WriteState2.
      Parameters:
      trackNumber - Number of the track.
      Returns:
      Write state of the specified track.
    • setRecvLength

      public void setRecvLength(int trackNumber, int value)
      Set the length given for the specified track into property RecvLength1 or RecvLength2.
      Parameters:
      trackNumber - Number of the track
      value - New state of the track specified by trackNumber
    • getRecvLength

      public int getRecvLength(int trackNumber)
      get the length of the specified track from property RecvLength1 or RecvLength2.
      Parameters:
      trackNumber - Number of the track.
      Returns:
      Track length
    • characterSet

      public void characterSet(int code) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting CharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • CapPrint is true,
      • code equals one of the values specified in CharacterSetList.
      Specified by:
      characterSet in interface PointCardRWInterface
      Parameters:
      code - New CharacterSet value
      Throws:
      jpos.JposException - If an error occurs
    • lineChars

      public void lineChars(int chars) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting LineChars. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • CapPrint is true,
      • chars is above zero but not above the maximum of all values specified in LineCharsList.
      Specified by:
      lineChars in interface PointCardRWInterface
      Parameters:
      chars - New LineChars value
      Throws:
      jpos.JposException - If an error occurs
    • lineHeight

      public void lineHeight(int height) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting LineHeight. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • CapPrint is true,
      • height is above zero.
      Specified by:
      lineHeight in interface PointCardRWInterface
      Parameters:
      height - New LineHeight value
      Throws:
      jpos.JposException - If an error occurs
    • lineSpacing

      public void lineSpacing(int spacing) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting LineSpacing. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • CapPrint is true,
      • spacing is above zero.
      Specified by:
      lineSpacing in interface PointCardRWInterface
      Parameters:
      spacing - New LineSpacing value
      Throws:
      jpos.JposException - If an error occurs
    • mapCharacterSet

      public void mapCharacterSet(boolean flag) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting MapCharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • CapPrint is true,
      • CapMapCharacterSet is true or flag is false.
      Specified by:
      mapCharacterSet in interface PointCardRWInterface
      Parameters:
      flag - New MapCharacterSet value
      Throws:
      jpos.JposException - If an error occurs
    • mapMode

      public void mapMode(int mode) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting MapMode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • mode is one of MM_DOTS, MM_TWIPS, MM_ENGLISH and MM_METRIC.
      Keep in mind: Even if MapMode can be set to one of the predefined values, it will be ignored if CapPrintMode is false.
      Specified by:
      mapMode in interface PointCardRWInterface
      Parameters:
      mode - New MapMode value
      Throws:
      jpos.JposException - If an error occurs
    • tracksToRead

      public void tracksToRead(int tracks) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting TracksToRead. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • Only tracks that have been specified in CapTracksToRead are specified in tracks.
      Specified by:
      tracksToRead in interface PointCardRWInterface
      Parameters:
      tracks - New TracksToRead value
      Throws:
      jpos.JposException - If an error occurs
    • tracksToWrite

      public void tracksToWrite(int tracks) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting TracksToWrite. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • Only tracks that have been specified in CapTracksToWrite are specified in tracks.
      Specified by:
      tracksToWrite in interface PointCardRWInterface
      Parameters:
      tracks - New TracksToWrite value
      Throws:
      jpos.JposException - If an error occurs
    • write1Data

      public void write1Data(String trackdata) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting Write1Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • Bit PCRW_TRACK1 is set in TracksToWrite.
      Specified by:
      write1Data in interface PointCardRWInterface
      Parameters:
      trackdata - New Write1Data value
      Throws:
      jpos.JposException - If an error occurs
    • write2Data

      public void write2Data(String trackdata) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting Write2Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • Bit PCRW_TRACK2 is set in TracksToWrite.
      Specified by:
      write2Data in interface PointCardRWInterface
      Parameters:
      trackdata - New Write2Data value
      Throws:
      jpos.JposException - If an error occurs
    • write3Data

      public void write3Data(String trackdata) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting Write3Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • Bit PCRW_TRACK3 is set in TracksToWrite.
      Specified by:
      write3Data in interface PointCardRWInterface
      Parameters:
      trackdata - New Write3Data value
      Throws:
      jpos.JposException - If an error occurs
    • write4Data

      public void write4Data(String trackdata) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting Write4Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • Bit PCRW_TRACK4 is set in TracksToWrite.
      Specified by:
      write4Data in interface PointCardRWInterface
      Parameters:
      trackdata - New Write4Data value
      Throws:
      jpos.JposException - If an error occurs
    • write5Data

      public void write5Data(String trackdata) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting Write5Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • Bit PCRW_TRACK5 is set in TracksToWrite.
      Specified by:
      write5Data in interface PointCardRWInterface
      Parameters:
      trackdata - New Write5Data value
      Throws:
      jpos.JposException - If an error occurs
    • write6Data

      public void write6Data(String trackdata) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of setting Write6Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • Bit PCRW_TRACK6 is set in TracksToWrite.
      Specified by:
      write6Data in interface PointCardRWInterface
      Parameters:
      trackdata - New Write6Data value
      Throws:
      jpos.JposException - If an error occurs
    • beginInsertion

      public void beginInsertion(int i) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of BeginInsertion method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • No asynchronous output is in progress,
      • timeout is above zero or FOREVER.
      Specified by:
      beginInsertion in interface PointCardRWInterface
      Parameters:
      i - Maximum time to wait for card insertion.
      Throws:
      jpos.JposException - If an error occurs.
    • beginRemoval

      public void beginRemoval(int timeout) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of BeginRemoval method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • No asynchronous output is in progress,
      • timeout is above zero or FOREVER.
      Specified by:
      beginRemoval in interface PointCardRWInterface
      Parameters:
      timeout - Maximum time to wait for card insertion.
      Throws:
      jpos.JposException - If an error occurs.
    • cleanCard

      public void cleanCard() throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of DestroyWindow method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • CapCleanCard is true.
      Specified by:
      cleanCard in interface PointCardRWInterface
      Throws:
      jpos.JposException - If an error occurs.
    • clearPrintWrite

      public void clearPrintWrite(int kind, int hposition, int vposition, int width, int height) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of ClearPrintWrite method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • No asynchronous output is in progress,
      • kind is 1, 2 or 3,
      • if kind is 1 or 3:
        • CapClearPrint is true,
        • hposition and vposition are positive values,
        • width and height are above -2.
      Specified by:
      clearPrintWrite in interface PointCardRWInterface
      Parameters:
      kind - Parts of the point card that will be cleared. See UPOS specification.
      hposition - The horizontal start position for erasing the printing area.
      vposition - The vertical start position for erasing the printing area.
      width - The width used for erasing the printing area.
      height - The height used for erasing the printing area.
      Throws:
      jpos.JposException - If an error occurs.
    • endInsertion

      public void endInsertion() throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of EndInsertion method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled.
      Specified by:
      endInsertion in interface PointCardRWInterface
      Throws:
      jpos.JposException - If an error occurs.
    • endRemoval

      public void endRemoval() throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of EndRemoval method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled.
      Specified by:
      endRemoval in interface PointCardRWInterface
      Throws:
      jpos.JposException - If an error occurs.
    • rotatePrint

      public void rotatePrint(int rotation) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of RotatePrint method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • CapPrint is true,
      • rotation is one of RP_NORMAL, RP_RIGHT90, RP_LEFT90 and RP_ROTATE180,
      • The corresponding capability, CapRight90, CapLeft90 or CapRotate180, is true.
      Specified by:
      rotatePrint in interface PointCardRWInterface
      Parameters:
      rotation - Requested rotation.
      Throws:
      jpos.JposException - If an error occurs.
    • validateData

      public void validateData(String data) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of DestroyWindow method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • No asynchronous output is in progress,
      • CapPrint is true.
      This method can throw a JposException with ErrorCode = 0 to signal that full validity check has token place. If it does not throw a JposException, method PointCardRWService.outputDataParts will be used to parse data and split it into a list of PointCardRWService.PrintDataPart objects. Afterwards, method PointCardRWService.plausibilityCheckData will be used to check the validity of all objects returned.
      The service developer has the choice:
      • data can be parsed to check whether whether parts are valid or contain conditions that require to throw a JposException with ErrorCode E_ILLEGAL or E_FAILURE and if not, to throw a JposException with ErrorCode 0. In this case, the other validateData methods should not be overriden.
      • This method performs nothing. In that case, validation occurs for each escape sequence via the corresponding validateData method, and the other validation routines must be implemented if the default behavior do not match the needs.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      data - Print data to be checked for validity.
      Throws:
      jpos.JposException - If an error occurs.
    • printWrite

      public PrintWrite printWrite(int kind, int hposition, int vposition, String data) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validation part of PrintWrite method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device is enabled,
      • kind is 1, 2 or 3,
      • if kind is 1 or 3:
        • CapPrint is true,
        • hposition and vposition are positive values.
      • if kind is 2 or 3:
        • Property TracksToWrite contains only tracks that are contained in CapTracksToWrite as well,
        • The corresponding WritexData properties are not empty strings.
      Specified by:
      printWrite in interface PointCardRWInterface
      Parameters:
      kind - Parts of the point card that will be written or printed. See UPOS specification.
      hposition - The horizontal start position for printing.
      vposition - The vertical start position for printing.
      data - Print data.
      Returns:
      PrintWrite object for use in final part.
      Throws:
      jpos.JposException - If an error occurs.
    • printWrite

      public void printWrite(PrintWrite request) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Final part of PrintWrite method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintWrite object. This method will be performed asynchronously. All plausibility checks have been made before, only runtime errors can occur.
      If this method performs a write operation, it must set the write status of each track via method setWriteState of the give request to ensure that property WriteState1 and WriteState2 will be set correctly in error case. Otherwise, the status of all tracks specified via TracksToWrite will be set to SUCCESS on success and to E_FAILURE on failure.
      Specified by:
      printWrite in interface PointCardRWInterface
      Parameters:
      request - Output request object returned by validation method that contains all parameters to be used by PrintWrite.
      Throws:
      jpos.JposException - If an error occurs.
    • validateData

      public void validateData(PointCardRWService.EscUnknown printData) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validate unknown sequence. Default is no support. If a device supports further sequences, this method must be overwritten. The following plausibility checks will be made before this method will be called:
      • CapPrint is true.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      printData - EscUnknown object containing the sequence attributes.
      Throws:
      jpos.JposException - For details, see UPOS method ValidateData.
    • validateData

      public void validateData(PointCardRWService.PrintData printData) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validate printable character sequence. ESC sequences have been filtered out. Default behavior is that all other characters with character code ≤ 0x20 are invalid. If a service should support more characters, this method must be overwritten.
      The following plausibility checks will be made before this method will be called:
      • CapPrint is true.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      printData - Data to be printed.
      Throws:
      jpos.JposException - For details, see UPOS method ValidateData.
    • validateData

      public void validateData(PointCardRWService.EscEmbedded escEmbedded) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validate embedded data sequence. For details, see UPOS specification of ESC|#E. Default behavior is that the given sequence is valid. The following plausibility checks will be made before this method will be called:
      • CapPrint is true.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      escEmbedded - EscEmbedded object containing sequence attributes.
      Throws:
      jpos.JposException - For details, see UPOS method ValidateData.
    • validateData

      public void validateData(PointCardRWService.EscFontTypeface escFontTypeface) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validate font typeface selection sequence. For details, see UPOS specification of ESC|#fT. Default behavior is to support all type fonts specified in FontTypefaceList. The following plausibility checks will be made before this method will be called:
      • CapPrint is true,
      • EscFontTypeface attribute is between 0 and the number of type face names specified in FontTypefaceList.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      escFontTypeface - EscFontTypeface object containing the sequence attributes.
      Throws:
      jpos.JposException - For details, see UPOS method ValidateData.
    • validateData

      public void validateData(PointCardRWService.EscAlignment escAlignment) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validate alignment sequence. For details, see UPOS specification of ESC|xA. Default behavior is that the service supports centered and right aligned text. The following plausibility checks will be made before this method will be called:
      • CapPrint is true.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      escAlignment - EscAlignment object that contains the sequence attributes.
      Throws:
      jpos.JposException - For details, see UPOS method ValidateData.
    • validateData

      public void validateData(PointCardRWService.EscNormalize escNormalize) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validate normalize escape sequence. For details, see UPOS specification of ESC|N. Should always be valid. Can be overwritten by service implementations. The following plausibility checks will be made before this method will be called:
      • CapPrint is true.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      escNormalize - EscNormalize object containing the sequence attributes.
      Throws:
      jpos.JposException - For details, see UPOS method ValidateData.
    • validateData

      public void validateData(PointCardRWService.EscSimple escSimple) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validate attribute setting sequences. For details, see UPOS specification for ESC|bC, ESC|iC and ESC|rvC. The default behavior is that reverse video is not supported. If a printer supports these attributes, this method must be overwritten.
      The following plausibility checks will be made before this method will be called:
      • CapPrint is true,
      • If EscSimple attribute Bold is true, CapBold is true,
      • If EscSimple attribute Italic is true, CapItalic is true.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      escSimple - Object holding data of simple esc sequence
      Throws:
      jpos.JposException - For details, see UPOS method ValidateData.
    • validateData

      public void validateData(PointCardRWService.EscUnderline escUnderline) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validate combined underline printing sequence. For details, see UPOS specification for ESC|[#]uC. Default behavior is support for thickness of 1 dot for underline only. If a service does not support underline or supports another thickness, this method must be overwritten. The following plausibility checks will be made before this method will be called:
      • CapPrint is true.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      escUnderline - EscUnderline object containing the sequence attributes.
      Throws:
      jpos.JposException - For details, see UPOS method ValidateData.
    • validateData

      public void validateData(PointCardRWService.EscScale escScale) throws jpos.JposException
      Description copied from interface: PointCardRWInterface
      Validate print scale sequence. For details, see UPOS specification for ESC|xC, ESC|#hC or ESC|#vC. Default behavior is only support for scale = 1 and 2 if the corresponding capabilities for width and height of the specified station are true. If a service supports more scales, this method must be overwritten. The following plausibility checks will be made before this method will be called:
      • CapPrint is true.
      • If EscScale attribute ScaleValue is above 1, CapDhigh, CapDwide or CapDwideDhigh is true if the corresponding EscScale attribute(s) ScaleHorizontal and / or ScaleVertical is / are true.
      Specified by:
      validateData in interface PointCardRWInterface
      Parameters:
      escScale - EscScale object that holds the sequence specific attributes.
      Throws:
      jpos.JposException - For details, see UPOS method ValidateData.