The correct answer is
getxIndex()
setxIndex(int value)
if you want them to be used as properties according to section 8.8: Capitalization of inferred names of the JavaBeans API specification (e.g. access them via ${object.xIndex} in a JSP.
More Related Contents:
- For a boolean field, what is the naming convention for its getter/setter?
- Valid JavaBeans names for boolean getter methods
- What is a JavaBean exactly?
- Difference between DTO, VO, POJO, JavaBeans?
- Can I update a JSF component from a JSF backing bean method?
- Coding Conventions – Naming Enums
- What is the point of setters and getters in java? [duplicate]
- Interface naming in Java [closed]
- Generic type parameter naming convention for Java (with multiple chars)?
- Variable naming conventions in Java
- JavaBean wrapping with JavaFX Properties
- Are there best practices for (Java) package organization? [closed]
- What is java pojo class, java bean, normal class? [duplicate]
- Should a “static final Logger” be declared in UPPER-CASE?
- Java Naming Convention with Acronyms [closed]
- Programmatically configure LogBack appender
- JavaFX Beans Binding suddenly stops working
- Why do variable names often start with the letter ‘m’? [duplicate]
- Using underscores in Java variables and method names [closed]
- ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/mail/MessagingException
- What strategy do you use for package naming in Java projects and why? [closed]
- find out the differences between two java beans for version tracking
- Easy way of populating Javabeans based on request parameters
- Naming conventions for Java methods that return boolean
- Java data transfer object naming convention?
- Java Getters and Setters
- how to generically compare entire java beans?
- Why doesn’t JAXB generate setters for Lists
- (no) Properties in Java?
- Java Spring bean with private constructor