 <p>You can create a class to represent a property. and use a List in your object.</p> <pre><code>class Property{ enum dataType; //create a specific enum String name; Object value; } </code></pre> <p>If you want to go further then you could inherit from this property to add somme type specialised class like BooleanProperty or StringProperty.</p>