/** * Adds a property value. * * @param name the property name * @param value the value * @return the builder */ public T property(String name, Object value) { checkState(); PropertyValue propertyValue = new PropertyValue(name, value); getComponent().add(propertyValue); return builder(); }
/** * Adds a property value sourced from the XPath expression. * * @param name the property name * @param xpath the XPath expression * @return the builder */ public T propertyExpression(String name, String xpath) { checkState(); PropertyValue propertyValue = new PropertyValue(name, xpath); propertyValue.setNamespaceContext(new F3NamespaceContext()); getComponent().add(propertyValue); return builder(); }
nsContext.add(entry.getKey(), entry.getValue()); propertyValue = new PropertyValue("name", source); value = deriveValueFromXPath(propertyValue, parent, nsContext); } catch (PropertyTypeException e) {
nsContext.add(entry.getKey(), entry.getValue()); propertyValue = new PropertyValue("name", source); value = deriveValueFromXPath(propertyValue, parent, nsContext); } catch (PropertyTypeException e) {