question: public boolean isPrimitive ( Class type ) throws Exception { if ( type == String . class ) { return true ; } if ( type == Float . class ) { return true ; } if ( type == Double . class ) { return true ; } if ( type == Long . class ) { return true ; } if ( type == Integer . class ) { return true ; } if ( type == Boolean . class ) { return true ; } if ( type . isEnum ( ) ) { return true ; } if ( type . isPrimitive ( ) ) { return true ; } return transform . valid ( type ) ; }
target:  This is used to determine whether the scanned class represents a primitive type. A primitive type is a type that contains no XML annotations and so cannot be serialized with an XML form. Instead primitives a serialized using transformations.