private List < Reference > getAllOneReferences ( DomainObject domainObject ) { List < Reference > allReferences = domainObject . getReferences ( ) ; List < Reference > allOneReferences = new ArrayList < Reference > ( ) ; for ( Reference ref : allReferences ) { if ( ! ref . isMany ( ) ) { allOneReferences . add ( ref ) ; } } return allOneReferences ; }
List of references with multiplicity = 1