/*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.test.vegan.extension;
import org.mule.runtime.extension.api.annotation.dsl.xml.XmlHints;
import org.mule.runtime.extension.api.annotation.param.NullSafe;
import org.mule.runtime.extension.api.annotation.param.Optional;
import org.mule.runtime.extension.api.annotation.param.Parameter;
@XmlHints(allowTopLevelDefinition = true)
public class HealthyFood implements FarmedFood {
@Parameter
@NullSafe
@Optional
private TasteProfile tasteProfile;
@Override
public boolean canBeEaten() {
return true;
}
public TasteProfile getTasteProfile() {
return tasteProfile;
}
public static class TasteProfile {
@Parameter
@Optional(defaultValue = "false")
private Boolean tasty = null;
public boolean isTasty() {
return tasty;
}
}
}