Class PointCardRWService.EscUnknown

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWService.PrintDataPart
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWService.EscUnknown
Enclosing class:
PointCardRWService

public static class PointCardRWService.EscUnknown extends PointCardRWService.PrintDataPart
Class describing unknown escape sequence.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EscUnknown​(int type, int subtype, int value, boolean present)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns capital characer that marks the end of the escape sequence.
    int
    Returns value that contains the lower-case characters between value and upper-case character that marks the end of the sequence.
    int
    Returns value in ESC sequence, in any.
    boolean
    Specifies whether a positive integer value is part of the escape sequence.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EscUnknown

      public EscUnknown(int type, int subtype, int value, boolean present)
      Constructor.
      Parameters:
      type - Initial value for Esc.
      subtype - Initial value for Subtype.
      value - Initial value for Value.
      present - Initial value for ValuePresent.
  • Method Details

    • getEsc

      public int getEsc()
      Returns capital characer that marks the end of the escape sequence.
      Returns:
      Sequence end character.
    • getSubtype

      public int getSubtype()
      Returns value that contains the lower-case characters between value and upper-case character that marks the end of the sequence. The codes of the lower-case characters are the digits of Subtype in base1000 representation, e.g. if the lower-case characters between value and upper-case character are "abc", Subtype will be (('a' * 1000) + 'b') * 1000 + 'c'.
      Returns:
      Lower-case character sequence before sequence end character, formatted as described.
    • getValue

      public int getValue()
      Returns value in ESC sequence, in any. 0 if no value is present.
      Returns:
      Sequence value.
    • getValuePresent

      public boolean getValuePresent()
      Specifies whether a positive integer value is part of the escape sequence.
      Returns:
      true if escape sequence contains a value.