Package org.criticalfailure.torchlight.core.domain.formatter

Examples of org.criticalfailure.torchlight.core.domain.formatter.ObjectPropertyFormatterException


            }
            catch(NumberFormatException e) {
                // ignore
            }
            catch(Exception e) {
                throw new ObjectPropertyFormatterException(e);
            }
        }
        logger.trace("base: " + base);

        int stem = 0;
        if(parts.length > 1) {
            try {
                stem = Math.abs(Integer.parseInt(parts[1]));
                if(stem >= 100) {
                    stem = 0;
                }
            }
            catch(NumberFormatException e) {
                // ignore
            }
            catch(Exception e) {
                throw new ObjectPropertyFormatterException(e);
            }
        }
        logger.trace("stem: " + stem);

        String formattedString = String.format("02d/02d", base, stem);
View Full Code Here

TOP

Related Classes of org.criticalfailure.torchlight.core.domain.formatter.ObjectPropertyFormatterException

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.