com.ecebs.rtd.enabler.types.itso.ipe
Class Type16

java.lang.Object
  extended by com.ecebs.rtd.enabler.types.itso.ipe.IPE
      extended by com.ecebs.rtd.enabler.types.itso.ipe.EntitlementIPE
          extended by com.ecebs.rtd.enabler.types.itso.ipe.Type16
All Implemented Interfaces:
Product, Serializable

public class Type16
extends EntitlementIPE

Represents a Type 16 ITSO IPE

Author:
kyleb
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ecebs.rtd.enabler.types.itso.ipe.IPE
BYTES_PER_BLOCK, DTS_LENGTH, SEAL_LENGTH
 
Constructor Summary
Type16(IPEDirEntry dir, byte[] ipeBytes, int offset)
          Parses from the provided byte array, starting at the given offset
 
Method Summary
 Calendar getDateOfBirth()
          Gets an ITSO Date of Birth
 String getForename()
           
 short getLanguage()
           
 Amount getShellDeposit()
           
 String getSurname()
           
 boolean isHalfDayOfWeekPresent()
           
 boolean isNamePresent()
           
 boolean isValidToPresent()
           
 String toString()
           
 
Methods inherited from class com.ecebs.rtd.enabler.types.itso.ipe.EntitlementIPE
getAreRoundingFlagsEnabled, getConcClass, getCPICC, getDeposit, getEntitlementCode, getEntitlementExpDate, getGender, getHalfDayOfWeek, getHolderID, getIdFlags, getPassbackTime, getPrintTicket, getRemoveDate, getSecondaryHolderID, getValidAtOrFrom, getValidTo, isCompanionAllowed, isDepositRefundable, isPersonalised, isRoundingFlag, isRoundingValueFlag, isSecondaryHolderIDPresent, isShellDepRefundable, isURIPresent, isValidAtOrFromPresent
 
Methods inherited from class com.ecebs.rtd.enabler.types.itso.ipe.IPE
getDirEntry, getHeader, getIIN, getInstance, getIPEInstanceID, getNewestVR, getNewestVRDG, getSeal, getVRDGs, isIINPresent, isSupported
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Type16

public Type16(IPEDirEntry dir,
              byte[] ipeBytes,
              int offset)
       throws IndexOutOfBoundsException
Parses from the provided byte array, starting at the given offset

Parameters:
dir - Directory entry associated with the IPE
ipeBytes - byte array to parse from
offset - index to start parsing from byte array at
Throws:
IndexOutOfBoundsException
Method Detail

isNamePresent

public boolean isNamePresent()

isHalfDayOfWeekPresent

public boolean isHalfDayOfWeekPresent()
Specified by:
isHalfDayOfWeekPresent in class EntitlementIPE

isValidToPresent

public boolean isValidToPresent()

getDateOfBirth

public Calendar getDateOfBirth()
Gets an ITSO Date of Birth

Returns:
Calendar DateOfBirth if ITSO data is not "00000000", or null if it is "00000000".

getLanguage

public short getLanguage()

getShellDeposit

public Amount getShellDeposit()

getForename

public String getForename()

getSurname

public String getSurname()

toString

public String toString()
Overrides:
toString in class IPE


Copyright © 2013 Ecebs Ltd. All Rights Reserved.