private Element genEntityCommon ( final Element root , final ResourceXMLParser . Entity entity ) { final Element tag = root . addElement ( entity . getResourceType ( ) ) ; tag . addAttribute ( COMMON_NAME , entity . getName ( ) ) ; tag . addAttribute ( COMMON_DESCRIPTION , notNull ( entity . getProperty ( COMMON_DESCRIPTION ) ) ) ; tag . addAttribute ( COMMON_TAGS , notNull ( entity . getProperty ( COMMON_TAGS ) ) ) ; return tag ; }
Create entity tag based on resourceType of entity and add common attributes