Example usage for com.liferay.portal.kernel.jazzy InvalidWord getInvalidWord

List of usage examples for com.liferay.portal.kernel.jazzy InvalidWord getInvalidWord

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.jazzy InvalidWord getInvalidWord.

Prototype

public String getInvalidWord() 

Source Link

Usage

From source file:com.liferay.words.service.impl.WordsServiceImpl.java

License:Open Source License

@Override
public List<String> checkSpelling(String text) throws Exception {
    List<String> invalidWords = new ArrayList<String>();

    for (InvalidWord invalidWord : WordsUtil.checkSpelling(text)) {
        invalidWords.add(invalidWord.getInvalidWord());
    }//from   w  ww . j  av a 2s  .  co  m

    return invalidWords;
}