How to access all the datafields of a class?

I have some classes like Client, Employee, Property
I am maintaining the list of all the objects as array lists in a class names NIC.
So class NIC is like
class NIC
{
static ArrayList<Employee> employeeList = new ArrayList<Employee>();
static ArrayList<Property> propertyList = new ArrayList<Property>();
static ArrayList<Client> clientList = new ArrayList<Client>();

//rest of the code
public static void backItUp()
{
//this method reads all the objects data from array lists and stores it in a file
}
}

--------------------------------------------
I am stuck on the method backItUp() which is supposed to read all the objects data from array list and store it in a file.

I don't know if there is any method which can access all the data fields of current class or at least returns a reference of each data field.

As the link explains, I can backup the objects through serialization if I explicitly pass the name of the object.
But here I am more interested in backing up the data of fields of the class without needing to refer any name. So that in future, if I need to add or remove array lists or change the name of class, I need not to change the code of the method 'backItUp()'

As the link explains, I can backup the objects through serialization if I explicitly pass the name of the object.
But here I am more interested in backing up the data of fields of the class without needing to refer any name. So that in future, if I need to add or remove array lists or change the name of class, I need not to change the code of the method 'backItUp()'

I don't get it..... What do you mean when you say not needing to refer to any name?

I don't get it..... What do you mean when you say not needing to refer to any name?

NIC is the class in which all the arraylists and the method backItUp is present. I want to write backItUp() in such a way that it will automatically search for all the fields the class NIC contains.(In the example I have given above, after searching it should have references for all the array lists.) After that the method should traverse all the array lists and then save the contents into a file.

In simple words, I want create a method which will take back up of all the fields of class in which the method resides.