Examples of Property


Examples of org.spoutcraft.api.property.Property

    setText(text);
    setIconUrl(iconUrl);
  }

  private void initProperties() {
    addProperty("title", new Property() {
      public void set(Object value) {
        setTitle((String) value);
      }

      public Object get() {
        return getTitle();
      }
    });
    addProperty("text", new Property() {
      public void set(Object value) {
        setText((String) value);
      }

      public Object get() {
        return getText();
      }
    });
    addProperty("iconurl", new Property() {
      public void set(Object value) {
        setIconUrl((String) value);
      }

      public Object get() {
View Full Code Here

Examples of org.springframework.core.convert.Property

    return convertIfNecessary(propertyName, oldValue, newValue, pd.getPropertyType(), new TypeDescriptor(property(pd)));
  }

  private Property property(PropertyDescriptor pd) {
    GenericTypeAwarePropertyDescriptor typeAware = (GenericTypeAwarePropertyDescriptor) pd;
    return new Property(typeAware.getBeanClass(), typeAware.getReadMethod(), typeAware.getWriteMethod(), typeAware.getName());
  }
View Full Code Here

Examples of org.springframework.data.rest.webmvc.json.JsonSchema.Property

        ResourceMapping propertyMapping = metadata.getMappingFor(persistentProperty);
        ResourceDescription description = propertyMapping.getDescription();
        String message = resolveMessage(description);

        Property property = persistentProperty.isCollectionLike() ? //
        new ArrayProperty("array", message, false)
            : new Property(type, message, false);

        jsonSchema.addProperty(persistentProperty.getName(), property);
      }
    });
View Full Code Here

Examples of org.springframework.roo.project.Property

    private void updatePomProperties(final Element configuration,
            final String moduleName) {
        final List<Element> databaseProperties = XmlUtils.findElements(
                "/configuration/spring-security/properties/*", configuration);
        for (final Element property : databaseProperties) {
            projectOperations.addProperty(moduleName, new Property(property));
        }
    }
View Full Code Here

Examples of org.springmodules.xt.model.generator.annotation.Property

    private Object putProperty(final Object[] args, final Method method) {
        if (args.length != 1) {
            throw new IllegalStateException("The setter method " + method.getName() + " must have only one argument!");
        } else {
            String name = StringUtils.uncapitalize(method.getName().substring(3));
            Property annotation = method.getAnnotation(Property.class);
            Property.AccessType access = annotation.access();
            PropertyPair pair = new PropertyPair();
            pair.setValue(args[0]);
            pair.setAccess(access);
            this.properties.put(name, pair);
            this.values.put(name, args[0]);
View Full Code Here

Examples of org.switchyard.Property

     * {@inheritDoc}
     */  
    @Override
    public Object get(Object key) {
        if (key != null) {
            Property property = getProperty(key.toString(), _scope);
            if (property != null) {
                return property.getValue();
            }
        }
        return null;
    }
View Full Code Here

Examples of org.terasology.editor.properties.Property

            setLayout(new GridLayout(properties.size() >= 16 ? properties.size() : 16, 1));

            Iterator<Property<?>> it = properties.iterator();
            while (it.hasNext()) {
                Property property = it.next();

                if (property instanceof FloatProperty) {
                    add(new PropertySlider((FloatProperty) property));
                    revalidate();
                }
View Full Code Here

Examples of org.uengine.smcp.twister.engine.priv.core.definition.Property

                    xpathSelector = DocumentHelper.createXPath("//*/property[@name=\"" + propertyName + "\"]");
                }
                Node propNode = xpathSelector.selectSingleNode(doc);
//                Node propNode = doc.selectSingleNode("//*/property[@name=\"" + propertyName + "\"]");

                Property prop = (Property) addedProperty.get(propertyName);
                if (propNode != null && prop == null) {
                    prop = ProcessFactory.addProperty(tp,
                            propertyName, propNode.valueOf("@type"));
                    addedProperty.put(propertyName, prop);
                }
View Full Code Here

Examples of org.wikier.trioo.jtrioo.rdf.Property

    if (term instanceof CURIE) {
      curie = (CURIE)term;
     
    }
    if (term instanceof Property) {
      Property property = (Property)term;
      curie = property.getType();
    }
    if (term instanceof Literal) {
      Literal literal = (Literal)term;
      curie = literal.getDatatype();
    }
View Full Code Here

Examples of org.wso2.carbon.broker.core.Property

        for (; propertyIter.hasNext();) {
            propertyOMElement = (OMElement) propertyIter.next();
            String name = propertyOMElement.getAttributeValue(
                    new QName("", BrokerConstants.BROKER_CONF_ATTR_NAME));
            // need to correct this
            brokerTypeDto.addProperty(new Property(name));
        }

        return brokerTypeDto;
    }
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.