Package org.jboss.dna.common.text

Examples of org.jboss.dna.common.text.Inflector


     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        Inflector inflector = Inflector.getInstance();
        if (count() == 1) {
            return "read " + inflector.ordinalize(startingAtIndex()) + " thru " + inflector.ordinalize(endingBefore() - 1)
                   + " children of " + of() + " in the \"" + workspaceName + "\" workspace";
        }
        return "read " + inflector.ordinalize(startingAtIndex()) + " child of " + of() + " in the \"" + workspaceName
               + "\" workspace";
    }
View Full Code Here


    private Inflector inflector;

    @Before
    public void beforeEach() throws Exception {
        this.inflector = new Inflector();
    }
View Full Code Here

     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        Inflector inflector = Inflector.getInstance();
        if (count() == 1) {
            return "read " + inflector.ordinalize(startingAtIndex()) + " thru " + inflector.ordinalize(endingBefore() - 1)
                   + " children of " + of() + " in the \"" + workspaceName + "\" workspace";
        }
        return "read " + inflector.ordinalize(startingAtIndex()) + " child of " + of() + " in the \"" + workspaceName
               + "\" workspace";
    }
View Full Code Here

TOP

Related Classes of org.jboss.dna.common.text.Inflector

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.