Nikhil Ambekar
Nikhil Ambekar

Reputation: 110

Getter for boolean variable with maven-jaxb2-plugin

I am working to generate stub files from xsd. However the stub files generated have boolean getters generated as isXX() instead of getXX().

public class Task{
  @XmlAttribute(
    name = "IsFailure"
  )
  protected Boolean isFailure;

  public Boolean isIsFailure() {
  return this.isFailure;
  }
}

How can i modify the boolean variables getter names? I need to generate getIsFailure() istead of isIsFailure()

Upvotes: 2

Views: 601

Answers (1)

glw
glw

Reputation: 1664

You can use enableIntrospection option in maven plugin.

Upvotes: 4

Related Questions