Examples of PropertyDescriptor


Examples of org.apache.easyant.core.descriptor.PropertyDescriptor

            }
            getProject().setProperty(EasyAntMagicNames.AVAILABLE_BUILD_CONFIGURATIONS, buildConfigurations);
            updateMainConfs();

            for (Iterator<PropertyDescriptor> iterator = md.getProperties().values().iterator(); iterator.hasNext();) {
                PropertyDescriptor property = iterator.next();
                if (canInherit(property, currentModule)) {
                    PropertyTask propTask = new PropertyTask();
                    propTask.setName(property.getName());
                    propTask.setValue(property.getValue());
                    propTask.setBuildConfigurations(property.getBuildConfigurations());
                    propTask.setTaskType("antlib:org.apache.easyant:property");
                    getOwningTarget().addTask(propTask);
                    initTask(propTask).execute();
                }
            }
View Full Code Here

Examples of org.eclipse.ui.views.properties.PropertyDescriptor

  public IPropertyDescriptor[] getPropertyDescriptors() {
    IPropertyDescriptor[] returnVal = new IPropertyDescriptor[dbObj
        .keySet().size()];
    int counter = 0;
    for (String propKey : dbObj.keySet()) {
      returnVal[counter] = new PropertyDescriptor(propKey, propKey);
      counter++;
    }
    return returnVal;
  }
View Full Code Here

Examples of org.hibernate.search.cfg.PropertyDescriptor

            if ( propertyName == null ) {
              //entityType overriding
              createIndexed( entity );
            }
            else {
              final PropertyDescriptor property = entity.getPropertyDescriptor(
                  propertyName, elementType
              );
              if ( property != null ) {
                // property name overriding
                createDocumentId( property );
View Full Code Here

Examples of org.hibernate.search.metadata.PropertyDescriptor

      else {
        fieldDescriptor = new FieldDescriptorImpl( documentFieldMetadata );
      }
      tmpSet.add( fieldDescriptor );
    }
    PropertyDescriptor propertyDescriptor = new PropertyDescriptorImpl(
        propertyMetadata.getPropertyAccessorName(),
        id,
        tmpSet
    );

    propertyDescriptorsTmp.put( propertyDescriptor.getName(), propertyDescriptor );
  }
View Full Code Here

Examples of org.joggito.core.descriptors.PropertyDescriptor

  @Test
  public void creatingPropertyDescriptors() throws Exception {
    // FOR firstName property...
    Field fFirstName = Person.class.getDeclaredField("firstName");
    PropertyDescriptor fnProp = factory.createProperty(fFirstName);

    // test...
    assertEquals(FOAF.firstName, fnProp.getRDFObject());
    assertEquals("firstName", fnProp.getName());

    // ---------------------------------------------------------------

    // FOR family_name property...
    Field fFamilyName = Person.class.getDeclaredField("familyName");
    PropertyDescriptor fmnProp = factory.createProperty(fFamilyName);

    // test...
    assertEquals(FOAF.family_name, fmnProp.getRDFObject());
    assertEquals("family_name", fmnProp.getName());

    // ---------------------------------------------------------------

    // FOR mbox property...
    Field fMBox = Person.class.getDeclaredField("mboxSHA1");
    PropertyDescriptor mBoxProp = factory.createProperty(fMBox);

    // test...
    assertEquals(FOAF.mbox_sha1sum, mBoxProp.getRDFObject());
    assertEquals("mbox_sha1sum", mBoxProp.getName());

    // ---------------------------------------------------------------

    // FOR birthday property...
    Field fBirthday = Person.class.getDeclaredField("birthday");
    PropertyDescriptor birthdayProp = factory.createProperty(fBirthday);

    // test...
    assertEquals(FOAF.birthday, birthdayProp.getRDFObject());
    assertEquals("birthday", birthdayProp.getName());
    assertEquals("EEE MMM dd HH:mm:ss zzz yyyy", birthdayProp.getDatePattern());

    // ---------------------------------------------------------------

    // FOR phone property...
    Field fPhones = Person.class.getDeclaredField("phones");
    PropertyDescriptor phonesProp = factory.createProperty(fPhones);

    // test...
    assertEquals(FOAF.phone, phonesProp.getRDFObject());
    assertEquals("phone", phonesProp.getName());
    assertEquals(1, phonesProp.getMinCardinality());
    assertEquals(5, phonesProp.getMaxCardinality());
  }
View Full Code Here

Examples of org.mozilla.javascript.PropertyDescriptor

  @Override
  public boolean observe(Map object, Object key, PropertyObserver observer) {
    if (object instanceof ScriptableObject) {
      ScriptableObject obj = (ScriptableObject) object;
      Context cx = Context.getCurrentContext();
      PropertyDescriptor desc = obj.getOwnPropertyDescriptor(cx, key);
      if (desc != null && desc.isDataDescriptor()) {
        ObserverGetterSetter getterSetter =
            new ObserverGetterSetter(obj, key, desc, observer);
        obj.defineOwnProperty(cx, key, new PropertyDescriptor(
            getterSetter,
            getterSetter,
            desc.isEnumerable(),
            desc.isConfigurable(),
            true));
      }
      return true;
    }
    return false;
View Full Code Here

Examples of org.openbp.common.generic.propertybrowser.PropertyDescriptor

          String displayName = null;
          if (od != null)
          {
            // Try to get the display name of the property from the
            // object descriptor of the item
            PropertyDescriptor pd = od.getProperty(property);
            if (pd != null)
              displayName = pd.getDisplayName();
          }
          if (displayName == null)
            displayName = property;

          // Property not set, issue error message
View Full Code Here

Examples of org.opengis.feature.type.PropertyDescriptor

        combo.setContentProvider(ArrayContentProvider.getInstance());
        combo.setLabelProvider(new LabelProvider() {
            @Override
            public String getText(Object element) {
                if (element instanceof PropertyDescriptor) {
                    PropertyDescriptor descriptor = (PropertyDescriptor) element;
                    return descriptor.getName().getLocalPart();
                }
                return super.getText(element);
            }
        });
        combo.getControl().setEnabled(false);
View Full Code Here

Examples of org.qi4j.api.property.PropertyDescriptor

        {
            // New EntityState
            EntityState entityState = store.newEntityState( identity, this );

            // Set identity property
            PropertyDescriptor persistentPropertyDescriptor = state().getProperty( IDENTITY_METHOD );
            entityState.setProperty( persistentPropertyDescriptor.qualifiedName(), identity.identity() );

            return entityState;
        }
        catch( EntityAlreadyExistsException e )
        {
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.