gets the value of the trk 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 trk property . for example , to add a new item , do as follows : gettrk . add newitem ; objects of the following type s are allowed in the list trktype concode_field_sep MetadataType metadata concode_elem_sep List<RteType> rte concode_elem_sep ExtensionsType extensions concode_elem_sep String creator concode_elem_sep List<WptType> wpt concode_elem_sep List<TrkType> trk concode_elem_sep String version concode_field_sep String getVersion concode_elem_sep void setMetadata concode_elem_sep MetadataType getMetadata concode_elem_sep List<RteType> getRte concode_elem_sep void setVersion concode_elem_sep void setCreator concode_elem_sep List<WptType> getWpt concode_elem_sep ExtensionsType getExtensions concode_elem_sep void setExtensions concode_elem_sep String getCreator
List < TrkType > function ( ) { if ( trk == null ) { trk = new ArrayList < TrkType > ( ) ; } return this . trk ; }