public Set < Object > parseSetElement ( Element collectionEle , BeanDefinition bd ) { String defaultElementType = collectionEle . getAttribute ( VALUE_TYPE_ATTRIBUTE ) ; NodeList nl = collectionEle . getChildNodes ( ) ; ManagedSet < Object > target = new ManagedSet < Object > ( nl . getLength ( ) ) ; target . setSource ( extractSource ( collectionEle ) ) ; target . setElementTypeName ( defaultElementType ) ; target . setMergeEnabled ( parseMergeAttribute ( collectionEle ) ) ; parseCollectionElements ( nl , target , bd , defaultElementType ) ; return target ; }
Parse a set element .