List < Predicate > function ( ) { if ( predicates == null ) { predicates = new ArrayList < Predicate > ( ) ; } return this . predicates ; }
gets the value of the predicates property . this accessor method returns a reference to the live list , not a snapshot . therefore any modification you make to the returned list will be present inside the jaxb object . this is why there is not a set method for the predicates property . for example , to add a new item , do as follows : getpredicates . add newitem ; objects of the following type s are allowed in the list predicate concode_field_sep List<Predicate> predicates concode_elem_sep DateRange dateRange concode_elem_sep List<OrderBy> ordering concode_elem_sep Paging paging concode_elem_sep List<String> fields concode_field_sep DateRange getDateRange concode_elem_sep void setDateRange concode_elem_sep List<String> getFields concode_elem_sep List<OrderBy> getOrdering concode_elem_sep void setPaging concode_elem_sep Paging getPaging