Examples of defaultValue()


Examples of au.net.ocean.maven.plugin.annotation.Parameter.defaultValue()

                String alias = parameter.alias().trim();
                if (alias.length() > 0) {
                    parameterDescriptor.setAlias(alias);
                }
                parameterDescriptor.setExpression(parameter.expression().trim());
                parameterDescriptor.setDefaultValue(parameter.defaultValue());
            }
        }
        return parameterDescriptor;
    }
View Full Code Here

Examples of cn.com.annotations.Element.defaultValue()

    public void settingDefaultValue() throws AppException {
        final List<Field> fields = TypeContentRefecter.getAllFields(this.clazz);
        Element element = null;
        for (Field field : fields) {
            element = field.getAnnotation(Element.class);
            if (element != null && !StringUtil.isEmpty(element.defaultValue())) {
                _VALIDATOR.validate(element);
                // 保存元素内容
                elementValue.put(field.getName(), _FORMATTER.converObject(element.format(), element.defaultValue()));

            }
View Full Code Here

Examples of cn.com.annotations.Element.defaultValue()

        for (Field field : fields) {
            element = field.getAnnotation(Element.class);
            if (element != null && !StringUtil.isEmpty(element.defaultValue())) {
                _VALIDATOR.validate(element);
                // 保存元素内容
                elementValue.put(field.getName(), _FORMATTER.converObject(element.format(), element.defaultValue()));

            }
        }
    }
View Full Code Here

Examples of cn.org.zeronote.orm.ORMColumn.defaultValue()

        if (val != null) {
          // 不是空才去设置
          ins.append(ormc.value()).append(", ");
          params.add(val);
          paramKeys.add("?");
        } else if (!"null".equalsIgnoreCase(ormc.defaultValue())) {
          // 是空,但是有默认值,则设置
          switch (ormc.defaultValueScope()) {
          case ALL:
          case INSERT:
            ins.append(ormc.value()).append(", ");
View Full Code Here

Examples of com.baidu.disconf.client.config.inner.DisInnerConfigAnnotation.defaultValue()

                    } else {

                        DisInnerConfigAnnotation config = field
                                .getAnnotation(DisInnerConfigAnnotation.class);
                        name = config.name();
                        String defaultValue = config.defaultValue();
                        value = prop.getProperty(name, defaultValue);
                    }

                    field.setAccessible(true);
View Full Code Here

Examples of com.dtolabs.rundeck.plugins.util.PropertyBuilder.defaultValue()

        }

        pbuild.description(annotation.description());

        if (null != annotation.defaultValue() && !"".equals(annotation.defaultValue())) {
            pbuild.defaultValue(annotation.defaultValue());
        }
        pbuild.required(annotation.required());

        pbuild.scope(annotation.scope());
View Full Code Here

Examples of com.eviware.soapui.settings.Setting.defaultValue()

      if( annotation != null )
      {
        try
        {
          result.put( annotation.name(),
              settings.getString( field.get( null ).toString(), annotation.defaultValue() ) );
        }
        catch( Exception e )
        {
          SoapUI.logError( e );
        }
View Full Code Here

Examples of com.reflectiondao.annotation.DatabaseField.defaultValue()

      DatabaseField db = f.getAnnotation(DatabaseField.class);
      if (strat.isNotKey(db)) {

        if (strat.hasDefault(db)) {
          questionMarks += db.defaultValue();
        } else {
          questionMarks += "?";
        }

        i++;
View Full Code Here

Examples of com.subgraph.orchid.TorConfig.ConfigVar.defaultValue()

  private String getDefaultValueString(String varName) {
    final ConfigVar var = getAnnotationForVariable(varName);
    if(var == null) {
      return null;
    } else {
      return var.defaultValue();
    }
  }

  private ConfigVarType getVariableType(String varName) {
    if("Bridge".equals(varName)) {
View Full Code Here

Examples of com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementDeclWriter.defaultValue()

            xemw.substitutionHeadNamespace(n.getNamespaceURI());
            xemw.substitutionHeadName(n.getLocalPart());
        }

        if(ei.getDefaultValue()!=null)
            xemw.defaultValue(ei.getDefaultValue());

        if(ei.getProperty().inlineBinaryData())
            m.annotate(XmlInlineBinaryData.class);

                    // if the element is adapter, put that annotation on the factory method
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.