Examples of Property


Examples of jease.cms.domain.property.Property

  }

  public void setProperty(SelectionProperty property) {
    this.property = property;
    if (property.getProvider() != null) {
      Property provider = Properties.getByPath(property.getProvider());
      if (provider instanceof Provider) {
        setModel(((Provider) provider).getValue(),
            property.getValue());
        return;
      }
View Full Code Here

Examples of kiss.model.Property

    protected void bind(M instance, String path) {
        Objects.requireNonNull(instance);
        Objects.requireNonNull(path);

        Model model = Model.load(instance.getClass());
        Property property = model.getProperty(path);

        if (property == null) {
            throw new IllegalArgumentException("'" + path + "' is not property for [" + model.type + "].");
        }
        form.val(model.get(instance, property));
View Full Code Here

Examples of ma.glasnost.orika.metadata.Property

 
  @Test
  public void testOverridePropertyDefinition() {
     
      Map<String, Property> properties = propertyResolver.getProperties(PostalAddress.class);
      Property city = properties.get("city");
     
      Assert.assertNotNull(city.getSetter());
  }
View Full Code Here

Examples of mug.runtime.StringMap.Property

   * [[Get]]
   */
 
  // static reference
  public Object get(String key) throws Exception {
    Property prop = null;
    if (hash == null || (prop = hash.findProperty(key)) == null) {
      if (__proto__ != null)
        return __proto__.get(key);
      return null;
    }
View Full Code Here

Examples of net.cis.client.game.ui.util.Property

  @Override
  public void dragStop() {
    super.dragStop();
    ResourceConstants.storeUIProperties(
        new Property(getElement().getId() + ".x", Integer.toString(getElement().getX())),
        new Property(getElement().getId() + ".y", Integer.toString(getElement().getY())),
        new Property(getElement().getId() + ".length", Integer.toString(getElement().getY() + getElement().getHeight())));
  }
View Full Code Here

Examples of net.fortuna.ical4j.model.Property

        }
      }
    }
    calEvent.setKalendarEventLinks(kalendarEventLinks);
   
    Property comment = event.getProperty(ICAL_X_OLAT_COMMENT);
    if (comment != null)
      calEvent.setComment(comment.getValue());
   
    Property numParticipants = event.getProperty(ICAL_X_OLAT_NUMPARTICIPANTS);
    if (numParticipants != null)
      calEvent.setNumParticipants(Integer.parseInt(numParticipants.getValue()));
   
    Property participants = event.getProperty(ICAL_X_OLAT_PARTICIPANTS);
    if (participants != null) {
      StringTokenizer strTok = new StringTokenizer(participants.getValue(), "§", false);
      String[] parts = new String[strTok.countTokens()];
      for ( int i = 0; strTok.hasMoreTokens(); i++ ) {
        parts[i] = strTok.nextToken();
      }
      calEvent.setParticipants(parts);
    }
   
    Property sourceNodId = event.getProperty(ICAL_X_OLAT_SOURCENODEID);
    if (sourceNodId != null)
      calEvent.setSourceNodeId(sourceNodId.getValue());
   
    // recurrence
    if (event.getProperty(ICAL_RRULE) != null) {
      calEvent.setRecurrenceRule(event.getProperty(ICAL_RRULE).getValue());
    }
View Full Code Here

Examples of net.fortuna.ical4j.vcard.Property

    protected Iterator<Representation> processVcard(VCard vCard,Map<String,Mapping> mappings,
        Map<EntityType,Map<String,Set<String>>> entityMap){
        //NOTE: this is protected to allow direct access from the VCardIterator
        String name = null;
        EntityType entityType = null;
        Property nameProperty = vCard.getProperty(Property.Id.FN);
        if(nameProperty != null && nameProperty.getValue() != null && !nameProperty.getValue().isEmpty()){
            entityType = EntityType.person;
            name = nameProperty.getValue();
        } else { //FN name -> maybe a ORG was exported
            Property orgProperty = vCard.getProperty(Property.Id.ORG);
            if(orgProperty != null && ((Org)orgProperty).getValues() != null && ((Org)orgProperty).getValues().length>0){
                entityType = EntityType.organization;
                name = ((Org)orgProperty).getValues()[0];
            }
        }
        if(entityType == null){
            log.warn("Unable to index vCard object without values for FN or ORG parameter (vCard: {})",vCard);
            return Collections.emptyList().iterator();
        }
        String id = null;
        Property uid = vCard.getProperty(Property.Id.UID);
        if(uid != null){
            id = uid.getValue();
        } else {
            id = name;
        }
        id = entityByName(entityMap, entityType, name, id,true);
       
View Full Code Here

Examples of net.ftlines.metagen.Property

  @Test
  public void test() throws Exception
  {
    assertTrue(result.isClean());

    Property property1 = result.getMetaProperty(Bean.class, "property1");
    assertNotNull(property1);
    Property property2 = result.getMetaProperty(Bean.class, "property2");
    assertNotNull(property2);
  }
View Full Code Here

Examples of net.ftlines.metagen.processor.tree.Property

    {
      ElementExt ext = ModelExt.of(enclosed);
      if (ext.isProperty() && ext.getVisibility() != Visibility.PRIVATE)
      {
        String name = ext.getPropertyName();
        Property property = bean.getProperties().get(name);
        if (property == null)
        {
          property = new Property(name);
          bean.getProperties().put(name, property);
        }
        if (ext.isGetter())
        {
          property.setGetter(enclosed);
        }
        else if (ext.isSetter())
        {
          property.setSetter(enclosed);
        }
        else
        {
          property.setField(enclosed);
        }
       
        if (ext.hasAnnotation(Deprecated.class.getName()))
        {
          property.setDeprecated(true);
        }
      }
    }
  }
View Full Code Here

Examples of net.javlov.world.Property

    return properties.get(name).getValue();
  }
 
  @Override
  public void updateProperty(String name, double delta) {
    Property p = properties.get(name);
    p.update(delta);
  }
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.