/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cloudsoft.MastercardFileReader;
/**
 *
 * @author Lisewski
 */
public class DataElement {

    int Index;
    DataElementLengthData LengthData;
    String Name;
    IpmSpecificationConstants.DataElementFormat Format;
    boolean IsBitmap;
    Integer BitmapStartIndex;

    public DataElement(int index, DataElementLengthData lengthData, String name, IpmSpecificationConstants.DataElementFormat format) {
        Index = index;
        LengthData = lengthData;
        Name = name;
        Format = format;
        IsBitmap = false;
        BitmapStartIndex = null;
    }

    public DataElement(int index, DataElementLengthData lengthData, String name, IpmSpecificationConstants.DataElementFormat format, boolean isBitmap, int bitmapStartIndex) {
        Index = index;
        LengthData = lengthData;
        Name = name;
        Format = format;
        IsBitmap = isBitmap;
        BitmapStartIndex = bitmapStartIndex;
    }
}
