/* * Copyright 2000-2013 Enonic AS * http://www.enonic.com/license */ package com.enonic.cms.core.content.contentdata.custom.stringbased; import org.apache.commons.lang.StringUtils; import com.enonic.cms.core.content.contentdata.custom.DataEntryType; import com.enonic.cms.core.content.contenttype.dataentryconfig.DataEntryConfig; public class TextAreaDataEntry extends AbstractStringBasedInputDataEntry { public TextAreaDataEntry( DataEntryConfig config, String value ) { super( config, DataEntryType.TEXT_AREA, value ); } protected void customValidate() { //no validation implemented } public boolean breaksRequiredContract() { return StringUtils.isEmpty( value ); } }