com.epam.jdi.light.elements.interfaces.common.IsText Maven / Gradle / Ivy
package com.epam.jdi.light.elements.interfaces.common;
import com.epam.jdi.light.common.TextTypes;
import com.epam.jdi.light.elements.interfaces.base.ICoreElement;
/**
* Created by Roman Iovlev on 26.09.2019
* Email: [email protected]; Skype: roman.iovlev
*/
public interface IsText extends ICoreElement {
default String getText() { return core().getText(); }
default String text() { return getText(); }
default String text(TextTypes type) { return core().text(type); }
default String getValue() { return getText(); }
default boolean isEmpty() { return getText().isEmpty(); }
default boolean isNotEmpty() { return !isEmpty(); }
}