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

io.nflow.engine.internal.workflow.WorkflowStateMethod Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
package io.nflow.engine.internal.workflow;

import java.lang.reflect.Method;
import java.lang.reflect.Type;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.nflow.engine.model.ModelObject;

@SuppressFBWarnings(value="EI_EXPOSE_REP2", justification = "internal class, not important for security")
public class WorkflowStateMethod extends ModelObject {
  public final Method method;
  final StateParameter[] params;

  static class StateParameter extends ModelObject {
    final String key;
    final Type type;
    final Object nullValue;
    final boolean readOnly;
    final boolean mutable;

    public StateParameter(String key, Type type, Object nullValue, boolean readOnly, boolean mutable) {
      this.key = key;
      this.type = type;
      this.nullValue = nullValue;
      this.readOnly = readOnly;
      this.mutable = mutable;
    }
  }

  public WorkflowStateMethod(Method method, StateParameter... params) {
    this.method = method;
    this.params = params;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy