Examples of ParameterType


Examples of org.eclipse.core.commands.ParameterType

      // Read out the optional attribute, if present.
      final boolean optional = readBoolean(parameterElement,
          ATT_OPTIONAL, true);

      final ParameterType type;
      if (typeId == null) {
        type = null;
      } else {
        type = commandService.getParameterType(typeId);
      }
View Full Code Here

Examples of org.eclipse.core.commands.ParameterType

       * null indicates there is no converter
       */
      final AbstractParameterValueConverter parameterValueConverter = (converter == null) ? null
          : new ParameterValueConverterProxy(configurationElement);

      final ParameterType parameterType = commandService
          .getParameterType(parameterTypeId);
      parameterType.define(type, parameterValueConverter);
    }

    // If there were any warnings, then log them now.
    logWarnings(
        warningsToLog,
View Full Code Here

Examples of org.eclipse.persistence.queries.DatabaseQuery.ParameterType

            int count = 0;
            if (query.getArguments() != null && !query.getArguments().isEmpty()) {
                boolean checkParameterType = query.getArgumentParameterTypes().size() == query.getArguments().size();
                for (String argName : query.getArguments()) {
                    Parameter<?> param = null;
                    ParameterType type = null;
                    if (checkParameterType){
                        type = query.getArgumentParameterTypes().get(count);
                    }
                    if (type == ParameterType.POSITIONAL){
                        Integer position = Integer.parseInt(argName);
View Full Code Here

Examples of org.geoserver.wps.web.InputParameterValues.ParameterType

        }

        // reset the previous value
        valueModel.setObject(null);

        ParameterType pt = (ParameterType) typeChoice.getModelObject();
        if (pt == ParameterType.TEXT) {
            // data as plain text
            Fragment f = new Fragment("editor", "text", this);
            DropDownChoice mimeChoice = new DropDownChoice("mime", new PropertyModel(
                    getDefaultModel(), "mime"), mimeTypes);
View Full Code Here

Examples of org.jwall.web.policy.abstraction.ParameterType

        if( ! sel && ! hasFocus ){
            if( row % 2 == 0 )
                setBackground( EVEN_COLOR );               
        }
       
        ParameterType p = (ParameterType) value;
       
        StringBuffer s = new StringBuffer("<html><b>"+p.getName()+"</b><br>");

        s.append("" + p.getRegexp() + "");

        s.append("</html>");
        setText( s.toString() );
        setIcon( WebPolicyEditor.getIcon(p) );
        this.setIconTextGap( 10 );
        if( p.getComment() != null )
            setToolTipText( p.getComment() );

        return this;

    }
View Full Code Here

Examples of org.springframework.batch.core.JobParameter.ParameterType

    String jobName = request.jobName;

    Map<String, JobParameter> map = new HashMap<String, JobParameter>();
    for(Entry<String, JobParameterType> entry : request.jobParameters.entrySet()) {
      ParameterType parameterType = entry.getValue().parameterType;
      if(parameterType == ParameterType.DATE) {
        if(entry.getValue().parameter instanceof Integer) {
          map.put(entry.getKey(), new JobParameter(new Date((Integer)entry.getValue().parameter)));
        } else if(entry.getValue().parameter instanceof Date) {
          map.put(entry.getKey(), new JobParameter(((Date)entry.getValue().parameter)));
View Full Code Here

Examples of org.springframework.batch.core.JobParameter.ParameterType

    String jobName = request.jobName;

    Map<String, JobParameter> map = new HashMap<String, JobParameter>();
    for(Entry<String, JobParameterType> entry : request.jobParameters.entrySet()) {
      ParameterType parameterType = entry.getValue().parameterType;
      if(parameterType == ParameterType.DATE) {
        if(entry.getValue().parameter instanceof Integer) {
          map.put(entry.getKey(), new JobParameter(new Date((Integer)entry.getValue().parameter)));
        } else if(entry.getValue().parameter instanceof Date) {
          map.put(entry.getKey(), new JobParameter(((Date)entry.getValue().parameter)));
View Full Code Here

Examples of org.springframework.batch.core.JobParameter.ParameterType

    String jobName = request.jobName;

    Map<String, JobParameter> map = new HashMap<String, JobParameter>();
    for(Entry<String, JobParameterType> entry : request.jobParameters.entrySet()) {
      ParameterType parameterType = entry.getValue().parameterType;
      if(parameterType == ParameterType.DATE) {
        if(entry.getValue().parameter instanceof Integer) {
          map.put(entry.getKey(), new JobParameter(new Date((Integer)entry.getValue().parameter)));
        } else if(entry.getValue().parameter instanceof Date) {
          map.put(entry.getKey(), new JobParameter(((Date)entry.getValue().parameter)));
View Full Code Here

Examples of org.springframework.batch.core.JobParameter.ParameterType

   */
  public static JobParameters convertJobParametersType(JobParametersType type) {

    Map<String, JobParameter> map = new HashMap<String, JobParameter>();
    for(Entry<String, JobParameterType> entry : type.parameters.entrySet()) {
      ParameterType parameterType = entry.getValue().parameterType;
      if(parameterType == ParameterType.DATE) {
        if(entry.getValue().parameter instanceof Integer) {
          map.put(entry.getKey(), new JobParameter(new Date((Integer)entry.getValue().parameter)));
        } else if(entry.getValue().parameter instanceof Long) {
          map.put(entry.getKey(), new JobParameter(new Date((Long)entry.getValue().parameter)));
View Full Code Here
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.