/** * Convert property value to String * @param property * @return */ private static String getPropertyValue(ComponentProperty property) { Document doc = (Document)property.getValue(); Element rootElement = doc.getDocumentElement(); String value = null; //FIXME : Provide support for isMany and other property types if (rootElement.getChildNodes().getLength() > 0) { value = rootElement.getChildNodes().item(0).getTextContent(); } return value; }
public static Object getProperty(String name, ServletContext sc) { RuntimeComponent rc = (RuntimeComponent)sc.getAttribute(COMPONENT_ATTR); for (ComponentProperty p : rc.getProperties()) { if (name.equals(p.getName())) { return p.getValue(); } } return null; }
public static Object getProperty(String name, ServletContext sc) { RuntimeComponent rc = (RuntimeComponent)sc.getAttribute(COMPONENT_ATTR); for (ComponentProperty p : rc.getProperties()) { if (name.equals(p.getName())) { return p.getValue(); } } return null; }
String valueText = getPropertyValueText( property.getValue() ); Element literalElement = bpelDOM.createElementNS(NS_URI, "literal"); literalElement.setTextContent(valueText);
if( property.getValue() == null ) return;
public <B> B createPropertyValue(ComponentProperty property, Class<B> type) { validateTypes(property, type); ObjectFactory<B> factory = this.createValueFactory(property, property.getValue(), type); return factory.getInstance(); }
Document doc = (Document)componentProperty.getValue(); Node source = (doc == null) ? null : doc.getDocumentElement().getFirstChild(); DataType<XMLType> sourceDataType = new DataTypeImpl<XMLType>(DOMDataBinding.NAME, Document property = (Document)componentProperty.getValue(); Element value = (Element)property.getDocumentElement().getFirstChild();
instanceFactoryProvider.getImplementation().getPropertyMembers().get(configuredProperty.getName()); if (element != null && configuredProperty.getValue() != null) { if (!(element.getAnchor() instanceof Constructor)) { if(element.getElementType() == ElementType.FIELD) { createPropertyValueFactory(configuredProperty, configuredProperty.getValue(), element); instanceFactoryProvider.setObjectFactory(element, propertyObjectFactory);
Document doc = (Document)componentProperty.getValue(); Node source = (doc == null) ? null : doc.getDocumentElement().getFirstChild(); DataType<XMLType> sourceDataType = new DataTypeImpl<XMLType>(DOMDataBinding.NAME, Document property = (Document)componentProperty.getValue(); Element value = (Element)property.getDocumentElement().getFirstChild();
componentTypeProperty.setValue(componentProperty.getValue());
componentTypeProperty.setValue(componentProperty.getValue());
writePropertyValue(property.getValue(), property.getXSDElement(), property.getXSDType(), writer);
writePropertyValue(property.getValue(), property.getXSDElement(), property.getXSDType(), writer);