Call Flow diagram

Simple Question. Can I use this software to do the following.

I have a java application that reads a text file and takes information from that. I would like it to build a sequenced diagram from that info. From information I have seen it is all about building the diagram first. I need Java to build that diagram based on data. i.e. if there is only 3 text fields I need 3 lifelines… etc… As opposed to building the diagram first as I do not know in advanced how many ‘boxes’ I will need.

Is this possible?