gets the value of the key 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 key property . for example , to add a new item , do as follows : getkey . add newitem ; objects of the following type s are allowed in the list keytype concode_field_sep List<DataType> data concode_elem_sep List<KeyType> key concode_field_sep List<DataType> getData
List < KeyType > function ( ) { if ( key == null ) { key = new ArrayList < KeyType > ( ) ; } return this . key ; }