Package de.innovationgate.utils

Examples of de.innovationgate.utils.ObjectFormatter


            if (encodersList != null && !encodersList.equals("none")) {
                Iterator encoders = WGUtils.deserializeCollection(encodersList, ",", true).iterator();
                while (encoders.hasNext()) {
                    String encoder = (String) encoders.next();
                    try {
                        ObjectFormatter formatter = getCore().getEncodingFormatter(encoder, getTMLContext());
                        formatters.addFormatter(formatter);
                    }
                    catch (FormattingException e) {
                        addWarning("No encoding formatter registered under encoding key '" + encoder + "'");
                    }
View Full Code Here


       
    }
   
    @CodeCompletion
    public String encode(String encode, Object input) throws FormattingException {
      ObjectFormatter formatter = getwgacore().getEncodingFormatter(encode, this);
      if (formatter != null) {
        return formatter.format(input);
      }
      else {
        addwarning("No encoding formatter registered under encoding key '" + encode + "'");
        return input.toString();
      }     
View Full Code Here

       
        FormattingChain formatters = new FormattingChain();
        Iterator encoders = WGUtils.deserializeCollection(encode, ",", true).iterator();
        while (encoders.hasNext()) {
            String encoder = (String) encoders.next();
            ObjectFormatter formatter = getwgacore().getEncodingFormatter(encoder, this);
            formatters.addFormatter(formatter);
        }
       
        return formatters.format(input);
       
View Full Code Here

          flagList = Arrays.asList(strFlags.split("\\|"));
          flags.addAll(flagList);
          encode = encode.substring(0, pos);         
        }

        ObjectFormatter formatter = null;
        if (encode.equalsIgnoreCase(ENCODER_HTML) || encode.equalsIgnoreCase(ENCODER_XML)) {
            formatter = new EncodingFormatter(encode);
        }
        else if (encode.equalsIgnoreCase(ENCODER_RTF)) {
            formatter = new RTFEncodingFormatter(flags);
View Full Code Here

TOP

Related Classes of de.innovationgate.utils.ObjectFormatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.