All Downloads are FREE. Search and download functionalities are using the official Maven repository.

backend.validators.NewsArticleValidator Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package backend.validators;

import db.news.NewsArticle;

/**
 *
 * @author zua
 */
public class NewsArticleValidator extends GraphEntityValidator {

    @Override
    public boolean isValid(NewsArticle entity) {
        return entity.getTitle() != null
                && entity.getUrl() != null;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy