Examples of Property


Examples of forestry.core.config.Property

  @Override
  public void doInit() {
    config = Config.config;

    Property buildcraftignore = config.get("buildcraft.ignore", Config.CATEGORY_COMMON, false);
    buildcraftignore.Comment = "set to true to ignore buildcraft";
    PluginBuildCraft.ignore = Boolean.parseBoolean(buildcraftignore.Value);
    BuildcraftFuelRegistry.coolant.addCoolant(LiquidHelper.getFluid(Defaults.LIQUID_ICE), 10.0f);

    addIronEngineFuel(LiquidHelper.getLiquid(Defaults.LIQUID_ETHANOL, 1).getFluid(), 40,
View Full Code Here

Examples of fr.esrf.tangoatk.core.Property

            setText(a.getUnit());
        }
    }

    public void propertyChange(PropertyChangeEvent evt) {
        Property src = (Property) evt.getSource();
        //System.out.println("PropertyChangeEvent " + src.getName());
        if (model != null)
        {
            //System.out.println("getDisplayUnit " + model.getDisplayUnit());
            if (src.getName().equalsIgnoreCase("unit"))
            {
                if(m_scalarListener != null) {
                    m_scalarListener.unitChange(model.getUnit());
                }
                setText(model.getUnit());
View Full Code Here

Examples of fr.norsys.mapper.console.mapping.Property

  private void fillConnection(Application application, Vector properties) {
    Connection connection = new Connection();
    connection.setId(UIDGenerator.generateId());
    for (Iterator it = properties.iterator(); it.hasNext();) {
      Property property = (Property) it.next();
      if (Context.PROVIDER_URL.equals(property.getKey())) {
        connection.setUrl(getValue(property.getVal(), application
            .getVariables()));
      } else if (Context.SECURITY_PRINCIPAL.equals(property.getKey())) {
        connection.setUser(getValue(property.getVal(), application
            .getVariables()));
      } else if (Context.SECURITY_CREDENTIALS.equals(property.getKey())) {
        connection.setPass(getValue(property.getVal(), application
            .getVariables()));
      } else if ("jndi.connection.pool.minPoolSize".equals(property
          .getKey())) {
        connection.setMinPoolSize(getValue(property.getVal(),
            application.getVariables()));
      } else if ("jndi.connection.pool.maxPoolSize".equals(property
          .getKey())) {
        connection.setMaxPoolSize(getValue(property.getVal(),
            application.getVariables()));
      } else if ("jndi.connection.pool.timeout".equals(property.getKey())) {
        connection.setTimeoutPool(getValue(property.getVal(),
            application.getVariables()));
      } else if ("jndi.connection.name".equals(property.getKey())) {
        connection.setName(getValue(property.getVal(), application
            .getVariables()));
      }
    }
    application.setConnection(connection);
    application.setConnectionName(connection.getName());
View Full Code Here

Examples of fr.tm.elibel.smartqvt.qvt.emof.Property

      signature.append(idAst.getValue());
      if (ids.hasNext()) {
        signature.append("::");
      }
    }
    Property result = (Property) getPropertyClassHM.get(signature
        .toString());
    if (result == null) {
      result = super.getProperty(self, scopedIdentifier, cVariables,
          currentPackage, availablePackages, mainTrace);
      getPropertyClassHM.put(signature.toString(), result);
View Full Code Here

Examples of genj.gedcom.Property

      if("GLink".equals(prop.getProperty("TYPE", false).getValue().trim()))
      {
        String propValue = ((PropertyEvent)prop).getEventValue();
        if(propValue == null || propValue.trim().equals(""))
        {
          Property noteProp = prop.getProperty("NOTE", false);
          if(noteProp == null)
          {
            propValue = NOT_NAMED;
          }
          else
          {
            propValue = noteProp.getValue();
            if(propValue == null || propValue.trim().equals(""))
            {
              propValue = NOT_NAMED;
            }
            LOG.finer("The property is: "+noteProp);
            LOG.finer("The property's value is: "+propValue);
          }
        }
        else
        {
          LOG.finer("The parent property is: "+prop);
          LOG.finer("The parent property's value is: "+propValue);
        }
        //individual.glinks.add(propValue);

       
        Property placProp = prop.getProperty("PLAC", false);
        if(placProp == null)
        {
          throw new RuntimeException("SEND MSG TO BROWSER: In the GEDCOM file '"+gedcomURL.getGedcomURL()+"' there is a GLink event/attribute that does not have a PLAC tag!!");
        }
        else
        {
          //individual.glinks.add(placProp.getValue());
          GLink newGLink = new GLink();
          newGLink.setToURLName(propValue);
          newGLink.setToURL(placProp.getValue());

          // DONE: get the date of the glink from prop.getProperty("DATE", false).getValue().trim()
          // and look for a corresponding GLink-Relation EVEN tag whose PLAC tag is the same as placProp.getValue()
          // if one is found then add in the newGLink.setFromRelation() and newGLink.setToRelation()
          Property dateProp = prop.getProperty("DATE", false);
          if(dateProp != null)
          {
            newGLink.setDate(dateProp.getValue().trim());
          }
          String glinkRelation = getGLinkRelation(propList, newGLink.getToURL());
          if(glinkRelation != null)
          {
            String[] glinkRelations = GLinkPattern.splitRelation(glinkRelation);
View Full Code Here

Examples of hermes.xml.Property

        XMLMapMessage mapMessage = (XMLMapMessage) message;
        MapMessage mapRval = (MapMessage) rval;

        for (Iterator iter = mapMessage.getBodyProperty().iterator(); iter.hasNext();) {
          final Property property = (Property) iter.next();

          if (property.getValue() == null) {
            mapRval.setObject(property.getName(), null);
          } else if (property.getType().equals(String.class.getName())) {
            mapRval.setString(property.getName(), property.getValue());
          } else if (property.getType().equals(Long.class.getName())) {
            mapRval.setLong(property.getName(), Long.parseLong(property.getValue()));
          } else if (property.getType().equals(Double.class.getName())) {
            mapRval.setDouble(property.getName(), Double.parseDouble(property.getValue()));
          } else if (property.getType().equals(Boolean.class.getName())) {
            mapRval.setBoolean(property.getName(), Boolean.getBoolean(property.getValue()));
          } else if (property.getType().equals(Character.class.getName())) {
            mapRval.setChar(property.getName(), property.getValue().charAt(0));
          } else if (property.getType().equals(Short.class.getName())) {
            mapRval.setShort(property.getName(), Short.parseShort(property.getValue()));
          } else if (property.getType().equals(Integer.class.getName())) {
            mapRval.setInt(property.getName(), Integer.parseInt(property.getValue()));
          }
        }
      } else if (message instanceof XMLBytesMessage) {
        rval = hermes.createBytesMessage();

        XMLBytesMessage bytesMessage = (XMLBytesMessage) message;
        BytesMessage bytesRval = (BytesMessage) rval;

        bytesRval.writeBytes(base64EncoderTL.get().decode(bytesMessage.getBytes().getBytes()));
      } else if (message instanceof XMLObjectMessage) {
        rval = hermes.createObjectMessage();

        XMLObjectMessage objectMessage = (XMLObjectMessage) message;
        ObjectMessage objectRval = (ObjectMessage) rval;
        ByteArrayInputStream bistream = new ByteArrayInputStream(base64EncoderTL.get().decode(objectMessage.getObject().getBytes()));

        ObjectInputStream oistream = new ObjectInputStream(bistream);

        objectRval.setObject((Serializable) oistream.readObject());
      }

      //
      // JMS Header properties

      try {
        rval.setJMSDeliveryMode(message.getJMSDeliveryMode());
      } catch (JMSException ex) {
        log.error("unable to set JMSDeliveryMode to " + message.getJMSDeliveryMode() + ": " + ex.getMessage());
      }

      try {
        rval.setJMSMessageID(message.getJMSMessageID());
      } catch (JMSException ex) {
        log.error("unable to set JMSMessageID: " + ex.getMessage(), ex);
      }

      try {
        if (message.getJMSExpiration() != null) {
          rval.setJMSExpiration(message.getJMSExpiration());
        }
      } catch (JMSException ex) {
        log.error("unable to set JMSExpiration: " + ex.getMessage(), ex);
      }

      try {
        if (message.getJMSPriority() != null) {
          rval.setJMSPriority(message.getJMSPriority());
        }
      } catch (JMSException ex) {
        log.error("unable to set JMSPriority: " + ex.getMessage(), ex);
      }

      try {
        if (message.getJMSTimestamp() != null) {
          rval.setJMSTimestamp(message.getJMSTimestamp());
        }
      } catch (JMSException ex) {
        log.error("unable to set JMSTimestamp:" + ex.getMessage(), ex);
      }

      if (message.getJMSCorrelationID() != null) {
        rval.setJMSCorrelationID(message.getJMSCorrelationID());
      }

      if (message.getJMSReplyTo() != null && !message.getJMSReplyTo().equals("null")) {
        rval.setJMSReplyTo(hermes.getDestination(message.getJMSReplyTo(), Domain.getDomain(message.getJMSReplyToDomain())));
      }

      if (message.getJMSType() != null) {
        rval.setJMSType(message.getJMSType());
      }

      if (message.getJMSDestination() != null) {
        if (message.isFromQueue()) {
          rval.setJMSDestination(hermes.getDestination(message.getJMSDestination(), Domain.QUEUE));
        } else {
          rval.setJMSDestination(hermes.getDestination(message.getJMSDestination(), Domain.TOPIC));
        }
      }

      for (Iterator iter = message.getHeaderProperty().iterator(); iter.hasNext();) {
        Property property = (Property) iter.next();

        if (property.getValue() == null) {
          rval.setObjectProperty(property.getName(), null);
        } else if (property.getType().equals(String.class.getName())) {
          rval.setStringProperty(property.getName(), StringEscapeUtils.unescapeXml(property.getValue()));
        } else if (property.getType().equals(Long.class.getName())) {
          rval.setLongProperty(property.getName(), Long.parseLong(property.getValue()));
        } else if (property.getType().equals(Double.class.getName())) {
          rval.setDoubleProperty(property.getName(), Double.parseDouble(property.getValue()));
        } else if (property.getType().equals(Boolean.class.getName())) {
          rval.setBooleanProperty(property.getName(), Boolean.parseBoolean(property.getValue()));
        } else if (property.getType().equals(Short.class.getName())) {
          rval.setShortProperty(property.getName(), Short.parseShort(property.getValue()));
        } else if (property.getType().equals(Integer.class.getName())) {
          rval.setIntProperty(property.getName(), Integer.parseInt(property.getValue()));
        }
      }

      return rval;
    } catch (NamingException e) {
View Full Code Here

Examples of io.s4.schema.Schema.Property

            if (debug) {
                System.out.println("Using fast path!");
            }
            fastPath = true;
            KeyInfo keyInfo = new KeyInfo();
            Property property = schema.getProperties().get(simpleKeyName);
            if (property == null) {
                return null;
            }

            Object value = null;
            try {
                value = property.getGetterMethod().invoke(event);
            } catch (Exception e) {
                if (debug) {
                    e.printStackTrace();
                }
            }
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.Property

    }

    // Match properties set
    itTemplate = template.getAllProperties();
    while(itTemplate.hasNext()) {
      Property templateProp = (Property)itTemplate.next();
      boolean found = false;
      Iterator itFact = fact.getAllProperties();
      while(!found && itFact.hasNext()) {
        Property factProp = (Property)itFact.next();
        found = templateProp.match(factProp);
        /*if (templateProp.getName().equals(factProp.getName())) {
          // The property name matches. Check the value
          Object templateValue = templateProp.getValue();
          if (templateValue == null) {
View Full Code Here

Examples of javafx.beans.property.Property

            ObservableMap obsVariables = FXCollections.observableMap(originalVMap);
            obsVariables.addListener(instance);
            Binding newBinding = new Binding(obsVariables);
            script.setBinding(newBinding);
        }
        Property property = instanceMap.get(propertyName);
        if(property == null) {
            // create a new Property
            Class type = script.getProperty(propertyName).getClass();
            if(type == Boolean.class || type == Boolean.TYPE) {
                property = new ScriptVariableBooleanProperty(script, propertyName);
View Full Code Here

Examples of javax.jcr.Property

    private void internalSetProperty(DavProperty<?> property) throws DavException {
        if (!exists()) {
            throw new DavException(DavServletResponse.SC_NOT_FOUND);
        }
        try {
            Property prop = (Property) item;
            int defaultType = prop.getType();
            ValueFactory vfact = getRepositorySession().getValueFactory();
            ValuesProperty vp = new ValuesProperty(property, defaultType, vfact);
            if (property.getName().equals(JCR_VALUE)) {
                prop.setValue(vp.getJcrValue(vp.getValueType(), vfact));
            } else if (property.getName().equals(JCR_VALUES)) {
                prop.setValue(vp.getJcrValues());
            } else {
                throw new DavException(DavServletResponse.SC_CONFLICT);
            }
        } catch (RepositoryException e) {
            throw new JcrDavException(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.