Examples of Property


Examples of org.apache.fop.fo.Property

    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.properties.Property

            // if prop value is empty string, force to StringProperty
            return StringProperty.getInstance("");
        }
        ListProperty propList = null;
        while (true) {
            Property prop = parseAdditiveExpr();
            if (currentToken == TOK_EOF) {
                if (propList != null) {
                    propList.addProperty(prop);
                    return propList;
                } else {
View Full Code Here

Examples of org.apache.geronimo.jee.naming.Property

                        temp += "\", pattern module = \"" + contextRef.getPattern().getModule();
                    temp += "\"";
                    return temp;
                }
                else if (Property.class.isInstance(element)) {
                    Property property = (Property)element;
                    return "Property: key = \"" + property.getKey() +
                            "\", value = \"" + property.getValue() + "\"";
                }

                return null;
            }
View Full Code Here

Examples of org.apache.hadoop.gateway.topology.builder.property.Property

  }

  @Test( expected = IllegalArgumentException.class )
  public void testBuildFailedForWrongProperty() {
    PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
    propertyTopologyBuilder.addProperty( new Property( "miss_prop", "value" ) );
    propertyTopologyBuilder.build();
  }
View Full Code Here

Examples of org.apache.harmony.x.swing.text.html.cssparser.metamodel.Property

            e.printStackTrace();
        }
        MutableAttributeSet attrs = new SimpleAttributeSet();
        Iterator pi = rs.getProperties();
        while (pi.hasNext()) {
            Property property = (Property)pi.next();
            addCSSAttribute(attrs, CSS.getAttribute(property.getName()),
                            property.getValue());
        }

        return attrs;
    }
View Full Code Here

Examples of org.apache.ivory.entity.v0.cluster.Property

    public void testEvaluateExpression() throws Exception {
        Cluster cluster = new Cluster();
        cluster.setName("name");
        cluster.setColo("colo");
        cluster.setProperties(new Properties());
        Property prop = new Property();
        prop.setName("pname");
        prop.setValue("pvalue");
        cluster.getProperties().getProperties().add(prop);
       
        Assert.assertEquals(FeedHelper.evaluateClusterExp(cluster, "${cluster.colo}/*/US"), "colo/*/US");
        Assert.assertEquals(FeedHelper.evaluateClusterExp(cluster, "${cluster.name}/*/${cluster.pname}"), "name/*/pvalue");
        Assert.assertEquals(FeedHelper.evaluateClusterExp(cluster, "IN"), "IN");
View Full Code Here

Examples of org.apache.ivory.entity.v0.feed.Property

        Partition partition = new Partition();
        partition.setName("1");
        newFeed.getPartitions().getPartitions().add(partition);
        Assert.assertFalse(UpdateHelper.shouldUpdate(oldFeed, newFeed, process));

        Property property = new Property();
        property.setName("1");
        property.setValue("1");
        newFeed.setProperties(new Properties());
        newFeed.getProperties().getProperties().add(property);
        Assert.assertFalse(UpdateHelper.shouldUpdate(oldFeed, newFeed, process));

        newFeed.getProperties().getProperties().remove(0);
View Full Code Here

Examples of org.apache.james.mailbox.store.mail.model.Property


            List<Property> currentProperties = getProperties();
            List<Property> newProperites = new ArrayList<Property>();
            for (int i = 0; i < currentProperties.size(); i++) {
                Property prop = currentProperties.get(i);
                newProperites.add(new JCRProperty(prop, logger));
            }
            // remove old properties, we will add a bunch of new ones
            NodeIterator iterator = node.getNodes("messageProperty");
            while (iterator.hasNext()) {
                iterator.nextNode().remove();
            }

            // store new properties
            for (int i = 0; i < newProperites.size(); i++) {
                JCRProperty prop = (JCRProperty) newProperites.get(i);
                Node propNode = node.addNode("messageProperty", "nt:unstructured");
                propNode.addMixin(PROPERTY_NODE_TYPE);
                prop.merge(propNode);
            }
        }
        this.node = node;

    }
View Full Code Here

Examples of org.apache.jetspeed.om.page.Property

        List layouts = new ArrayList();
        Iterator i = this.properties.iterator();

        while (i.hasNext())
        {
            Property p = (Property) i.next();
            if (!layouts.contains(p.getLayout()))
            {
                layouts.add(p.getLayout());
            }
        }

        return layouts;
    }
View Full Code Here

Examples of org.apache.jetspeed.prefs.om.Property

        String value = null;
        Collection properties = node.getNodeProperties();

        for (Iterator i = properties.iterator(); i.hasNext();)
        {
            Property curProp = (Property) i.next();
            if ((null != curProp) && (null != curProp.getPropertyName()) && (curProp.getPropertyName().equals(key)))
            {
                value = curProp.getPropertyValue();
            }
        }
        return value;
    }
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.