Examples of removeField()


Examples of com.orientechnologies.orient.core.record.impl.ODocument.removeField()

    // REMOVE FIELD IF ANY
    for (Map.Entry<String, Object> entry : removeEntries.entrySet()) {
      v = entry.getValue();
      if (v == EMPTY_VALUE) {
        record.removeField(entry.getKey());
        recordUpdated = true;
      } else {
        fieldValue = record.field(entry.getKey());

        if (fieldValue instanceof Collection<?>) {
View Full Code Here

Examples of com.projity.graphic.configuration.SpreadSheetFieldArray.removeField()

    hide.setIcon(IconManager.getIcon("menu.hideColumn")); //$NON-NLS-1$

    hide.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        if (fields.size() > 2 ) { // there is always the hidden Id field, so only allow delete if more than one other field
          sp.setFieldArray(fields.removeField(col));
        } else {
          Alert.warn(Messages.getString("Message.cantEmptySpreadsheet"),sp); //$NON-NLS-1$
        }
      }
    });
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.mapping.MappingClassElement.removeField()

                                (PersistenceFieldElement)iterator.next();
                            MappingFieldElement mfe = mapClassElt.
                                 getField(pfe.getName());
                            if (mfe != null && (!mfe.isVersion())) {
                                model.removeFieldElement(pfe);
                                mapClassElt.removeField(mfe);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of javassist.CtClass.removeField()

      ClassLoader cherryPickCl = new CherryPickClassLoader(included, null, tccl);
      Thread.currentThread().setContextClassLoader(cherryPickCl);
      ClassPool pool = ClassPool.getDefault();
      CtClass ct = pool.get(HOUSE);
      try {
         ct.removeField(ct.getField("number"));
         Class clazz = ct.toClass();
         if (isNewExternalizer) {
            CtClass extCt = pool.get(HOUSE_EXT);
            CtMethod writeObjMeth = extCt.getMethod("writeObject", "(Ljava/io/ObjectOutput;Ljava/lang/Object;)V");
            writeObjMeth.setBody("{\n" +
View Full Code Here

Examples of javax.management.Descriptor.removeField()

        info = new ModelMBeanOperationInfo
            (getName(), getDescription(), parameters,
             getReturnType(), impact);
        Descriptor descriptor = info.getDescriptor();
        descriptor.removeField("class");
        descriptor.setField("role", getRole());
        addFields(descriptor);
        info.setDescriptor(descriptor);
        return (info);
View Full Code Here

Examples of javax.management.Descriptor.removeField()

        for (int i = 0; i < params.length; i++)
            parameters[i] = params[i].createParameterInfo();
        info = new ModelMBeanConstructorInfo
            (getName(), getDescription(), parameters);
        Descriptor descriptor = info.getDescriptor();
        descriptor.removeField("class");
        if (getDisplayName() != null)
            descriptor.setField("displayName", getDisplayName());
        addFields(descriptor);
        info.setDescriptor(descriptor);
        return (info);
View Full Code Here

Examples of javax.management.Descriptor.removeField()

        for (int i = 0; i < params.length; i++)
            parameters[i] = params[i].createParameterInfo();
        info = new ModelMBeanConstructorInfo
            (getName(), getDescription(), parameters);
        Descriptor descriptor = info.getDescriptor();
        descriptor.removeField("class");
        if (getDisplayName() != null)
            descriptor.setField("displayName", getDisplayName());
        addFields(descriptor);
        info.setDescriptor(descriptor);
        return (info);
View Full Code Here

Examples of javax.management.Descriptor.removeField()

        info = new ModelMBeanOperationInfo
            (getName(), getDescription(), parameters,
             getReturnType(), impact);
        Descriptor descriptor = info.getDescriptor();
        descriptor.removeField("class");
        descriptor.setField("role", getRole());
        addFields(descriptor);
        info.setDescriptor(descriptor);
        return (info);
View Full Code Here

Examples of javax.management.modelmbean.DescriptorSupport.removeField()

   {
      String[] names = new String[] { "name", "descriptorType" };
      Object[] values = new Object[] { "testName", "testType" };
      DescriptorSupport descriptor = new DescriptorSupport(names, values);

      descriptor.removeField("name");
      assertTrue("Should be one field", descriptor.getFields().length == 1);
      assertTrue("name should not be present", descriptor.getFieldValue("name") == null);
      assertEquals("testType", descriptor.getFieldValue("descriptorType"));

      descriptor = new DescriptorSupport(names, values);
View Full Code Here

Examples of net.pterodactylus.sone.data.Profile.removeField()

    Profile profile = currentSone.getProfile();
    Field field = profile.getFieldById(fieldId);
    if (field == null) {
      return createErrorJsonObject("invalid-field-id");
    }
    profile.removeField(field);
    currentSone.setProfile(profile);
    webInterface.getCore().touchConfiguration();
    return createSuccessJsonObject().put("field", new ObjectNode(instance).put("id", new TextNode(field.getId())));
  }
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.