Examples of Property


Examples of org.cybergarage.upnp.event.Property

    Service service = serviceFromSid(uuid);
    if (service != null) {
            int size = props.size();
            Hashtable hash = new Hashtable();
            for (int i = 0; i < size; i++) {
                Property prop = props.getProperty(i);
                String varName = prop.getName();
                String varValue = prop.getValue();
                String upnpType = service.getStateVariable(varName).getDataType();
                Object valueObj;
                try {
                    valueObj = Converter.parseString(varValue,upnpType);
                } catch (Exception e) {
View Full Code Here

Examples of org.dcarew.model.annotations.Property

    for (Method method : clazz.getMethods())
    {
      if (!method.isAnnotationPresent(Property.class))
        continue;
     
      Property propertyAnnotation = method.getAnnotation(Property.class);
     
      list.add(new ModelProperty(propertyAnnotation.name()));
    }
   
    properties = list.toArray(new IModelProperty[0]);
  }
View Full Code Here

Examples of org.dcm4che3.util.Property

    public final void setEncodingOptions(DicomEncodingOptions encOpts) {
        this.encOpts = encOpts;
    }

    public void addCompressionParam(String name, Object value) {
        params.add(new Property(name, value));
    }
View Full Code Here

Examples of org.directwebremoting.extend.Property

                data.getContext().addConverted(data, instanceType, user);
                Map<String, Property> properties = getPropertyMapFromObject(user, false, true);
                for (Entry<String, String> entry : extractInboundTokens(paramType, value).entrySet()) {
                    String key = entry.getKey();
                    if (!key.startsWith("%24dwr") && !"salt".equals(key)) {
                        Property property = properties.get(key);
                        Object output = convert(entry.getValue(), property.getPropertyType(), data.getContext(), property);
                        property.setValue(user, output);
                    }
                }
                return user;
            }
      }
View Full Code Here

Examples of org.dmlite.model.component.property.Property

    super(modelContext, viewContext);
  }

  protected void populateItem(final ListItem item) {
    try {
      Property property = (Property) item.getModelObject();
      String propertyName = property.getCode();
      Label propertyNameLabel = new Label("propertyName", propertyName);
      item.add(propertyNameLabel);
    } catch (Exception e) {
      log.error("Error in PropertyList: " + e.getMessage());
    }
View Full Code Here

Examples of org.dozer.vo.km.Property

  public void testKM2() {
    org.dozer.vo.km.Sub request = newInstance(org.dozer.vo.km.Sub.class);
    request.setAge("2");
    request.setColor("blue");
    request.setLoginName("fred");
    Property property = newInstance(Property.class);
    PropertyB nestedProperty = newInstance(PropertyB.class);
    nestedProperty.setTestProperty("boo");
    property.setTestProperty("testProperty");
    property.setMapMe(nestedProperty);
    request.setProperty(property);

    Mapper mapper = getMapper(new String[] { "kmmapping.xml" });

    SomeVo afterMapping = mapper.map(request, SomeVo.class);
View Full Code Here

Examples of org.eclipse.bpel.model.messageproperties.Property

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setProperty(Property newProperty) {
    Property oldProperty = property;
    property = newProperty;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.TO__PROPERTY, oldProperty, property));
  }
View Full Code Here

Examples of org.eclipse.bpmn2.Property

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.PROPERTY: {
            Property property = (Property) theEObject;
            T result = caseProperty(property);
            if (result == null)
                result = caseItemAwareElement(property);
            if (result == null)
                result = caseBaseElement(property);
View Full Code Here

Examples of org.eclipse.graphiti.mm.Property

    return bo != null && bo instanceof SubProcess;
  }

  @Override
  public IReason updateNeeded(IUpdateContext context) {
    Property triggerProperty = Graphiti.getPeService().getProperty(context.getPictogramElement(),
            TRIGGERED_BY_EVENT);
    if (triggerProperty == null)
      return Reason.createFalseReason();
    SubProcess process = (SubProcess) getBusinessObjectForPictogramElement(context.getPictogramElement());
    boolean changed = Boolean.parseBoolean(triggerProperty.getValue()) != process.isTriggeredByEvent();
    IReason reason = changed ? Reason.createTrueReason("Trigger property changed") : Reason.createFalseReason();
    return reason;
  }
View Full Code Here

Examples of org.eclipse.jst.server.generic.servertype.definition.Property

      final List serverRuntimeProperties = serverRuntime.getProperty();
      final HashMap runtimeProperties = new HashMap();
      final HashMap serverProperties = new HashMap();
      for (int i = 0; i < serverRuntimeProperties.size(); i++)
      {
        final Property property = (Property) serverRuntimeProperties.get(i);
        Map values = null;
        if (property.getContext().equals(Property.CONTEXT_RUNTIME))
        {
          System.out.print("\tServer runtime property: ");
          values = runtimeProperties;
        }
        else
        {
          System.out.print("\tServer property: ");
          values = serverProperties;
        }
        System.out.println(property.getId() + ", default value is: " + property.getDefault());
        final String svalue = pf.getProperty(property.getId());
        if (svalue == null)
        {
          System.out.println("ERROR: No value associated for " + property.getId() + " in " + propertiesFile);
          return;
        }
        Object value = null;
        if (property.getType().equals(Property.TYPE_DIRECTORY))
        {
          final File f = new File(svalue);
          if (!f.exists() || !f.isDirectory())
          {
            System.out.println("ERROR: directory property " + property.getId() + " value does not exist or not a directory: " + svalue);
          }
          value = svalue;
        }
        else if (property.getType().equals(Property.TYPE_FILE))
        {
          final File f = new File(svalue);
          if (!f.exists() || !f.isFile())
          {
            System.out.println("ERROR: file property " + property.getId() + " value does not exist or not a regular file: " + svalue);
          }
          value = svalue;
        }
        else
        {
          value = svalue;
        }
        values.put(property.getId(), value);
      }

      System.out.println("Creating server runtime...");

      final RuntimeWorkingCopy rwc = (RuntimeWorkingCopy) runtimeType.createRuntime(runtimeType.getName() + " GENERATED", monitor);
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.