Package org.uengine.kernel

Source Code of org.uengine.kernel.RoleParameterContext

package org.uengine.kernel;

import java.io.Serializable;
import java.util.Map;

import org.metaworks.FieldDescriptor;
import org.metaworks.ObjectType;
import org.metaworks.Type;
import org.metaworks.inputter.RadioInput;
import org.uengine.kernel.GlobalContext;

/**
* @author Jinyoung Jang
*/
public class RoleParameterContext implements Serializable{
  private static final long serialVersionUID = org.uengine.kernel.GlobalContext.SERIALIZATION_UID;

  public static final String DIRECTION_IN = "in".intern();
  public static final String DIRECTION_OUT = "out".intern();
  public static final String DIRECTION_INOUT = "in-out".intern();
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd;
       
    fd = type.getFieldDescriptor("Direction");   
    fd.setInputter(new RadioInput(
      new String[]{
        GlobalContext.getLocalizedMessage("parametercontext.direction.in.displayname", "in"),
        GlobalContext.getLocalizedMessage("parametercontext.direction.out.displayname", "out"),
        GlobalContext.getLocalizedMessage("parametercontext.direction.inout.displayname", "in-out")
      },
      new Object[]{
        DIRECTION_IN,
        DIRECTION_OUT,
        DIRECTION_INOUT,
      }
    ));
  }
 
  String argument;
    public String getArgument() {
      return argument;
    }
    public void setArgument(String string) {
      argument = string;
    }

  Role role;
    public Role getRole() {
      return role;
   
    public void setRole(Role role) {
      this.role = role;
    }

  String direction;
    public String getDirection() {
      return direction;
    }
    public void setDirection(String direction) {
      this.direction = direction;
    }
   
  boolean split;
    public boolean isSplit() {
      return split;
    }
    public void setSplit(boolean split) {
      this.split = split;
    }
 
}
TOP

Related Classes of org.uengine.kernel.RoleParameterContext

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.