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

org.hisp.dhis.rules.models.RuleActionSetMandatoryField Maven / Gradle / Ivy

package org.hisp.dhis.rules.models;

import com.google.auto.value.AutoValue;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import static org.hisp.dhis.rules.models.AttributeType.UNKNOWN;

@AutoValue
public abstract class RuleActionSetMandatoryField
    extends RuleActionAttribute
{

    @Nonnull
    public static RuleActionSetMandatoryField create( @Nonnull String field, @Nullable AttributeType attributeType )
    {
        return new AutoValue_RuleActionSetMandatoryField( "", attributeType, field );
    }

    @Nonnull
    public static RuleActionSetMandatoryField create( @Nonnull String field )
    {
        return create( field, UNKNOWN );
    }

    @Nonnull
    public abstract String field();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy