title: JAXB conditioned binding
body: <p>i have a class like :</p>
  
  <pre><code>@XmlRootElement 
  Class ClassA {
  
  public long objectId;
  
  public String status;
  
  public String property1;
  
  ......
  }
  </code></pre>
  
  <p>and i want JAXB's JSON output to be conditioned on property "status". ex:</p>
  
  <p>if status != "deleted" -> bind all fields</p>
  
  <pre><code>{"objectId":1,"status":"new","property1":"value1","property2":"value2","prop3":"val3"....}
  </code></pre>
  
  <p>if status == "deleted" -> bind only 2 fields</p>
  
  <pre><code>{"objectsId":1,"status":"deleted"}
  </code></pre>
  
  <p>is that possible to do with JAXB ???
  thanks</p>