List < String > function ( ) { if ( calculation == null ) { calculation = new ArrayList < String > ( ) ; } return this . calculation ; }
gets the value of the calculation 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 calculation property . for example , to add a new item , do as follows : getcalculation . add newitem ; objects of the following type s are allowed in the list string concode_field_sep List<String> calculation concode_elem_sep Float calculationPercent concode_elem_sep Amount amount concode_elem_sep Amount basisAmount concode_elem_sep TimePeriod effectivePeriod concode_elem_sep Boolean prePaidIndicator concode_elem_sep List<String> description concode_elem_sep long serialVersionUID concode_elem_sep String reasonCode concode_elem_sep Float basisQuantity concode_elem_sep String typeCode concode_field_sep void setEffectivePeriod concode_elem_sep Float getBasisQuantity concode_elem_sep void setCalculationPercent concode_elem_sep String getReasonCode concode_elem_sep void setBasisQuantity concode_elem_sep List<String> getDescription concode_elem_sep void setTypeCode concode_elem_sep void setBasisAmount concode_elem_sep Boolean isPrePaidIndicator concode_elem_sep Amount getBasisAmount concode_elem_sep Float getCalculationPercent concode_elem_sep void setAmount concode_elem_sep void setReasonCode concode_elem_sep TimePeriod getEffectivePeriod concode_elem_sep void setPrePaidIndicator concode_elem_sep String getTypeCode concode_elem_sep Amount getAmount