Examples of IArticle


Examples of com.salas.bb.domain.IArticle

     * @throws ClassCastException       if target is not supported.
     * @throws IllegalArgumentException if operation is not supported.
     */
    public boolean match(Object target, IComparisonOperation operation, String value)
    {
        IArticle article = (IArticle)target;
        String categories = article == null ? null : article.getSubject();

        return operation.match(categories, value.toUpperCase());
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     * @throws ClassCastException       if target is not supported.
     * @throws IllegalArgumentException if operation is not supported.
     */
    public boolean match(Object target, IComparisonOperation operation, String value)
    {
        IArticle article = (IArticle)target;
        String targetValue = statusToValue(article);

        return operation.match(targetValue, value);
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     * @throws ClassCastException       if target is not supported.
     * @throws IllegalArgumentException if operation is not supported.
     */
    public boolean match(Object target, IComparisonOperation operation, String value)
    {
        IArticle article = (IArticle)target;
        IFeed feed = article.getFeed();

        int rating = -1;

        if (feed != null || !(feed instanceof DataFeed))
        {
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     * @throws ClassCastException       if target is not supported.
     * @throws IllegalArgumentException if operation is not supported.
     */
    public boolean match(Object target, IComparisonOperation operation, String value)
    {
        IArticle article = (IArticle)target;
        String title = article.getTitle().toUpperCase();

        return operation.match(title, value.toUpperCase());
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

    public boolean match(Object target, IComparisonOperation operation, String value)
    {
        if (target == null) throw new NullPointerException("Article can't be null");
        if (value == null) throw new NullPointerException("Value can't be null");

        IArticle article = (IArticle)target;
        String text = article.getPlainText();
        return operation.match(text, value);
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     * @throws ClassCastException       if target is not supported.
     * @throws IllegalArgumentException if operation is not supported.
     */
    public boolean match(Object target, IComparisonOperation operation, String value)
    {
        IArticle article = (IArticle)target;
        String targetValue = sentimentsToValue(article);

        return operation.match(targetValue, value);
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

    public boolean match(Object target, IComparisonOperation operation, String value)
    {
        boolean match = false;
        value = value.toUpperCase();

        IArticle article = (IArticle)target;
        IFeed feed = article.getFeed();

        if (feed != null)
        {
            IGuide[] parentGuides = feed.getParentGuides();
            for (int i = 0; !match && i < parentGuides.length; i++)
View Full Code Here

Examples of com.salas.bb.domain.IArticle

     * @throws ClassCastException       if target is not supported.
     * @throws IllegalArgumentException if operation is not supported.
     */
    public boolean match(Object target, IComparisonOperation operation, String value)
    {
        IArticle article = (IArticle)target;
        IFeed feed = article.getFeed();
        String feedTitle = feed == null ? null : feed.getTitle().toUpperCase();

        return operation.match(feedTitle, value.toUpperCase());
    }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

            ResultItem o = list.getSelectedItem();
            if (!(o instanceof HotResultItem)) return;

            HotResultItem item = (HotResultItem)o;
            String link = item.getHotlink();
            IArticle article = item.getArticle();

            GlobalController controller = GlobalController.SINGLETON;
            controller.selectArticle(article, link);
        }
View Full Code Here

Examples of com.salas.bb.domain.IArticle

            int articlesWithHighlights = 0;

            IArticle[] articles = feed.getArticles();
            for (int i = 0; i < articles.length; i++)
            {
                IArticle article = articles[i];
                int highlightsInArticle = getHighlightsCount(article.getPlainText());

                highlights += highlightsInArticle;
                if (highlightsInArticle > 0) articlesWithHighlights++;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.