title: How to handle Classes with varying properties to dynamically display in web page
body: <p>I have a Java application that sends UDP messages to varying end devices, the front end being a web page.</p>
  
  <p>The content of the messages is the same in some respects but some attributes of the message vary from destination to destination, for example, one end device the 'time' parameter is optional, and another device it is manadatory, and a third it is not used.
  Another example is that some parameters would have different max and min values allowed by the destination.</p>
  
  <p>So the problem is that I am struggling with an idea of how to define the matrix of options for each destination, so I can dynamically manipulate the web form to only display the allowed options, and bounds check the values etc.</p>
  
  <p>The app is in Java, on SpringBoot, with an HTML/JS front end on a Tomcat Server.</p>