Examples of FieldDescriptor


Examples of com.centraview.valuelist.FieldDescriptor

             // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      System.out.println(listPreference.getSortElement());
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.timeslipsViewMap.get(listPreference.getSortElement());
     
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
      }
View Full Code Here

Examples of com.google.protobuf.Descriptors.FieldDescriptor

    extensionsByNumber.put(
      new DescriptorIntPair(extension.descriptor.getContainingType(),
                            extension.descriptor.getNumber()),
      extension);

    FieldDescriptor field = extension.descriptor;
    if (field.getContainingType().getOptions().getMessageSetWireFormat() &&
        field.getType() == FieldDescriptor.Type.MESSAGE &&
        field.isOptional() &&
        field.getExtensionScope() == field.getMessageType()) {
      // This is an extension of a MessageSet type defined within the extension
      // type's own scope.  For backwards-compatibility, allow it to be looked
      // up by type name.
      extensionsByName.put(field.getMessageType().getFullName(), extension);
    }
  }
View Full Code Here

Examples of com.sun.enterprise.deployment.FieldDescriptor

                getCMPEntityDescriptor().setCMPVersion(EjbCMPEntityDescriptor.CMP_2_x);               
            }
        } else if (EjbTagNames.ABSTRACT_SCHEMA_NAME.equals(element.getQName())) {
            getCMPEntityDescriptor().setAbstractSchemaName(value);
        } else  if (EjbTagNames.PRIMARY_KEY_FIELD.equals(element.getQName())) {
            getCMPEntityDescriptor().setPrimaryKeyFieldDesc(new FieldDescriptor(value));
        } else {
            super.setElementValue(element, value);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.forms.FieldDescriptor

            formDescriptor = formElement.getFormDescriptor();

            // If the current form is fragmented then we may not have to output
            // anything for this field in the current fragment but we still need to
            // create its descriptor.
            fieldDescriptor = new FieldDescriptor();
            fieldDescriptor.setName(attributes.getName());
            fieldDescriptor.setInitialValue(getInitialValue(pageContext,
                    attributes));
            fieldDescriptor.setType(getFieldType(attributes));
View Full Code Here

Examples of de.iritgo.aktera.ui.form.FieldDescriptor

      String bundle = childConfig.getAttribute("bundle", parentGroup != null ? parentGroup.getBundle()
              : parentField.getBundle());

      if ("field".equals(childConfig.getName()))
      {
        FieldDescriptor field = new FieldDescriptor(childConfig.getAttribute("name"), bundle, childConfig
                .getAttribute("editor", ""), NumberTools
                .toInt(childConfig.getAttribute("size", "0"), 0));

        field.setLabel(childConfig.getAttribute("label", null));
        field.setToolTip(childConfig.getAttribute("tip", null));
        field.setRows(NumberTools.toInt(childConfig.getAttribute("rows", "6"), 6));
        field.setNoLabel(NumberTools.toBool(childConfig.getAttribute("nolabel", childConfig.getAttribute(
                "noLabel", "false")), false));
        field.setTrim(NumberTools.toBool(childConfig.getAttribute("trim", "false"), false));

        if (childConfig.getAttribute("unbound", null) != null)
        {
          field.setUnbound(childConfig.getAttributeAsBoolean("unbound", false));
        }

        field.setSelectable(childConfig.getAttributeAsBoolean("selectable", false));

        field.setValidationClassName(childConfig.getAttribute("validator", null));

        if (childConfig.getAttribute("readonly", null) != null)
        {
          field.setReadOnly(childConfig.getAttributeAsBoolean("readonly", false));
        }

        if (childConfig.getAttribute("duty", null) != null)
        {
          field.setDuty(childConfig.getAttributeAsBoolean("duty", false));
        }

        if (childConfig.getAttribute("submit", null) != null)
        {
          field.setSubmit(childConfig.getAttributeAsBoolean("submit", false));
        }

        if (parentGroup != null)
        {
          parentGroup.addField(field);
        }
        else if (parentField != null)
        {
          parentField.addField(field);
        }

        createCommandsForField(childConfig, formular, field);
      }
      else if ("comment".equals(childConfig.getName()))
      {
        FieldDescriptor field = new FieldDescriptor(childConfig.getAttribute("label"), bundle, "", 0);

        field.setComment(true);

        if (parentGroup != null)
        {
          parentGroup.addField(field);
        }
        else if (parentField != null)
        {
          parentField.addField(field);
        }
      }
      else if ("buttons".equals(childConfig.getName()))
      {
        FieldDescriptor field = new FieldDescriptor(childConfig.getAttribute("id", "dummy"), null, "", 0);

        field.setUnbound(true);
        field.setLabel("0.empty");

        if (parentGroup != null)
        {
          parentGroup.addField(field);
        }
        else if (parentField != null)
        {
          parentField.addField(field);
        }

        createCommandsForField(childConfig, formular, field);
        field.setBundle("Aktera");
      }
      else if ("multi".equals(childConfig.getName()) && parentField == null)
      {
        FieldDescriptor field = new FieldDescriptor(childConfig.getAttribute("label"), bundle, "", 0);

        field.setMulti(true);

        if (parentGroup != null)
        {
          parentGroup.addField(field);
          createFields(childConfig, formular, null, field);
View Full Code Here

Examples of edu.umd.cs.findbugs.classfile.FieldDescriptor

     * @param isStatic
     * @return the created XField
     */
    public static XField createXFieldUsingSlashedClassName(@SlashedClassName String className, String fieldName,
            String fieldSignature, boolean isStatic) {
        FieldDescriptor fieldDesc = DescriptorFactory.instance().getFieldDescriptor(className, fieldName, fieldSignature,
                isStatic);

        return createXField(fieldDesc);
    }
View Full Code Here

Examples of edu.umd.cs.findbugs.classfile.FieldDescriptor

     * @param fieldSignature
     * @param isStatic
     * @return the created XField
     */
    public static XField createXField(@DottedClassName String className, String fieldName, String fieldSignature, boolean isStatic) {
        FieldDescriptor fieldDesc = DescriptorFactory.instance().getFieldDescriptor(ClassName.toSlashedClassName(className),
                fieldName, fieldSignature, isStatic);

        return createXField(fieldDesc);
    }
View Full Code Here

Examples of edu.umd.cs.findbugs.classfile.FieldDescriptor

     *            field access flags
     * @return XField exactly matching class name, field name, and field
     *         signature
     */
    public static XField getExactXField(@SlashedClassName String className, String name, String signature, boolean isStatic) {
        FieldDescriptor fieldDesc = DescriptorFactory.instance().getFieldDescriptor(ClassName.toSlashedClassName(className),
                name, signature, isStatic);
        return getExactXField(fieldDesc);
    }
View Full Code Here

Examples of gap.service.od.FieldDescriptor

        }

        /*
         * Fields
         */
        FieldDescriptor key = null;

        TemplateDataDictionary field_unique = null;

        if (cd.hasFields()){

View Full Code Here

Examples of jodd.introspector.FieldDescriptor

  public void registerPetitePropertyInjectionPoint(String beanName, String property, String reference) {
    BeanDefinition beanDefinition = lookupExistingBeanDefinition(beanName);
    String[] references = reference == null ? null : new String[] {reference};

    ClassDescriptor cd = ClassIntrospector.lookup(beanDefinition.type);
    FieldDescriptor fieldDescriptor = cd.getFieldDescriptor(property, true);
    if (fieldDescriptor == null) {
      throw new PetiteException("Property not found: " + beanDefinition.type.getName() + '#' + property);
    }

    PropertyInjectionPoint pip =
        injectionPointFactory.createPropertyInjectionPoint(fieldDescriptor.getField(), references);

    beanDefinition.addPropertyInjectionPoint(pip);
  }
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.