Package org.adfemg.datacontrol.xml.provider.typemap

Examples of org.adfemg.datacontrol.xml.provider.typemap.TypeMapper


                return null;
            }

            // have StructureProvider build a StructureDef for root data node (XSD Element or ComplexType)
            StructureProvider structProv = defNode.getProviderInstance(StructureProvider.class);
            TypeMapper typeMapper = defNode.getProviderInstance(TypeMapper.class);
            MovableStructureDefinition structDef =
                structProv.buildStructure(rootDataNode, getReturnStructName(rootStruct, defNode), typeMapper);

            // create MethodDef with StructureDef from StructureProvider as return value
            final MethodDef method = new MethodDef(defNode.getDatacontrolOperation(), rootStruct);
View Full Code Here


    protected String replaceParameters(final String string, final DataRequest request) {
        if (string == null || request == null) {
            return string;
        }
        Map<String, Object> dynamicParamValues = request.getDynamicParamValues();
        TypeMapper typeMapper = request.getTypeMapper();
        if (dynamicParamValues == null || dynamicParamValues.isEmpty() || typeMapper == null) {
            return string;
        }
        String result = string;
        Matcher matcher = REPLACE_PATTERN.matcher(string);
View Full Code Here

     *         by the TypeMapper from the DataRequest which is especially important for things
     *         like dates, times and byte-arrays which cannot use a simple toString().
     */
    private String getDynamicParameterXmlString(final DynamicParameter dynamicParam, final DataRequest request) {
        // get dynamic param value and typemapper
        TypeMapper typeMapper = request.getTypeMapper();
        Object dynaParamValue = request.getDynamicParamValues().get(dynamicParam.getName());
        // convert value to XML presentation
        String xmlValue = typeMapper.toXml(dynaParamValue, dynamicParam.getXmlType());
        return xmlValue;
    }
View Full Code Here

TOP

Related Classes of org.adfemg.datacontrol.xml.provider.typemap.TypeMapper

Copyright © 2018 www.massapicom. 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.