public static String getFormat ( TypeDeclaration param ) { if ( param == null ) { return null ; } if ( param instanceof NumberTypeDeclaration ) { return ( ( NumberTypeDeclaration ) param ) . format ( ) ; } if ( param instanceof DateTimeTypeDeclaration ) { return ( ( DateTimeTypeDeclaration ) param ) . format ( ) ; } return null ; }
IF it has a format defined this will return it