List < Option > function ( ) { if ( option == null ) { option = new ArrayList < Toption > ( ) ; } return new ArrayList < Option > ( this . option ) ; }
gets the value of the option 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 option property . for example , to add a new item , do as follows : getoption . add newitem ; objects of the following type s are allowed in the list toption concode_field_sep String _default concode_elem_sep String min concode_elem_sep String max concode_elem_sep String name concode_elem_sep String description concode_elem_sep Map<QName,String> otherAttributes concode_elem_sep String id concode_elem_sep Tscalar type concode_elem_sep List<Object> any concode_elem_sep Integer cardinality concode_elem_sep Boolean required concode_elem_sep List<Toption> option concode_field_sep void setName concode_elem_sep void setMax concode_elem_sep boolean isRequired concode_elem_sep void setRequired concode_elem_sep String getName concode_elem_sep String getMax concode_elem_sep String getId concode_elem_sep String getDefault concode_elem_sep void setDescription concode_elem_sep void setType concode_elem_sep String getDescription concode_elem_sep void setDefault concode_elem_sep int getCardinality concode_elem_sep void setCardinality concode_elem_sep void setMin concode_elem_sep String getMin concode_elem_sep Scalar getType concode_elem_sep void setId concode_elem_sep Map<QName,String> getOtherAttributes concode_elem_sep List<Object> getAny