Examples of StringProperty


Examples of ch.tatool.core.data.StringProperty

        if (data[2] == null) {
          propertyValue = "";
        } else {
          propertyValue = data[2];
        }
        StringProperty dataProperty = new StringProperty(propertyName);
        dataProperty.setValue(module, nodeID, propertyValue);
      }
      moduleService.saveModule(module);
    }
  }
View Full Code Here

Examples of com.netflix.config.ChainedDynamicProperty.StringProperty

        ConfigurationManager.getConfigInstance().setProperty("node1", "v1");
        ConfigurationManager.getConfigInstance().clearProperty("node2");
        ConfigurationManager.getConfigInstance().clearProperty("node3");

        DynamicStringProperty node1 = DynamicPropertyFactory.getInstance().getStringProperty("node1", "v1");
        StringProperty node2 = new ChainedDynamicProperty.StringProperty("node2", node1);

        ChainedDynamicProperty.StringProperty node3 = new ChainedDynamicProperty.StringProperty("node3", node2);

        assertTrue("" + node3.get(), "v1".equals(node3.get()));
View Full Code Here

Examples of com.netflix.hystrix.strategy.properties.HystrixPropertiesChainedArchaiusProperty.StringProperty

    @Test
    public void testChainingString() throws Exception {

        DynamicStringProperty node1 = new DynamicStringProperty("node1", "v1");
        StringProperty node2 = new HystrixPropertiesChainedArchaiusProperty.StringProperty("node2", node1);

        HystrixPropertiesChainedArchaiusProperty.StringProperty node3 = new HystrixPropertiesChainedArchaiusProperty.StringProperty("node3", node2);

        assertTrue("" + node3.get(), "v1".equals(node3.get()));
View Full Code Here

Examples of javafx.beans.property.StringProperty

    if (!encryptResult) {
      this.beanPathAdapter.bindBidirectional(this.modelKey.getKey(),
          tf.textProperty());
    } else {
      try {
        final StringProperty msp = new SimpleStringProperty(
            tf.getText()) {
          @Override
          public void set(final String value) {
            super.set(value);
            if (value == null || value.isEmpty()) {
              tf.setText(value);
              return;
            }
            encrypt = false;
            try {
              final String clearText = getEncryptionProvider()
                  .decrypt(value);
              tf.setText(clearText);
            } catch (final Throwable t) {
              throw new RuntimeException("Unable to decrypt", t);
            } finally {
              encrypt = true;
            }
          }
        };
        this.beanPathAdapter.bindBidirectional(this.modelKey.getKey(),
            msp);
        tf.focusedProperty().addListener(new ChangeListener<Boolean>() {
          private String ltv = tf.getText();
          @Override
          public void changed(
              final ObservableValue<? extends Boolean> observable,
              final Boolean oldValue, final Boolean newValue) {
            if (encrypt && (newValue == null || !newValue)
                && tf.getText() != null
                && !tf.getText().isEmpty()
                && !tf.getText().equals(ltv)) {
              try {
                final String encrypted = getEncryptionProvider()
                    .encrypt(tf.getText());
                ltv = tf.getText();
                msp.set(encrypted);
              } catch (final Throwable t) {
                throw new RuntimeException("Unable to encrypt",
                    t);
              }
            }
View Full Code Here

Examples of net.sourceforge.pmd.properties.StringProperty

   protected final Map< String, PropertyDescriptor > propertiesByName()
   {
      final Map< String, PropertyDescriptor > properties = new LinkedHashMap< String, PropertyDescriptor >();

      properties.put( PREFIX_NAME,
                      new StringProperty( PREFIX_NAME, "", DEFAULT_PREFIX, properties.size() ) );
      properties.put( SUFFIX_NAME,
                      new StringProperty( SUFFIX_NAME, "", DEFAULT_SUFFIX, properties.size() ) );

      return properties;
   }
View Full Code Here

Examples of org.apache.fop.fo.StringProperty

   */
  private Property parseProperty() throws PropertyException {
    next();
    if (currentToken == TOK_EOF) {
      // if prop value is empty string, force to StringProperty
      return new StringProperty("");
    }
    Property prop = parseAdditiveExpr();
    if (currentToken != TOK_EOF)
      throw new PropertyException("unexpected token");
    return prop;
View Full Code Here

Examples of org.apache.fop.fo.StringProperty

      prop = parseAdditiveExpr();
      expectRpar();
      return prop;

    case TOK_LITERAL:
      prop = new StringProperty(currentTokenValue);
      break;

    case TOK_NCNAME:
      // Interpret this in context of the property or do it later?
      prop = new NCnameProperty(currentTokenValue);
View Full Code Here

Examples of org.apache.fop.fo.StringProperty

     */
    private Property parseProperty() throws PropertyException {
        next();
        if (currentToken == TOK_EOF) {
            // if prop value is empty string, force to StringProperty
            return new StringProperty("");
        }
        ListProperty propList = null;
        while (true) {
            Property prop = parseAdditiveExpr();
            if (currentToken == TOK_EOF) {
View Full Code Here

Examples of org.apache.fop.fo.StringProperty

            prop = parseAdditiveExpr();
            expectRpar();
            return prop;

        case TOK_LITERAL:
            prop = new StringProperty(currentTokenValue);
            break;

        case TOK_NCNAME:
            // Interpret this in context of the property or do it later?
            prop = new NCnameProperty(currentTokenValue);
View Full Code Here

Examples of org.apache.fop.fo.properties.StringProperty

     */
    private Property parseProperty() throws PropertyException {
        next();
        if (currentToken == TOK_EOF) {
            // if prop value is empty string, force to StringProperty
            return new StringProperty("");
        }
        ListProperty propList = null;
        while (true) {
            Property prop = parseAdditiveExpr();
            if (currentToken == TOK_EOF) {
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.