Examples of asXml()


Examples of org.dom4j.Element.asXML()

    }

    private static String createEmptyBody() {
        Element body = DocumentHelper.createElement("body");
        body.addNamespace("", "http://jabber.org/protocol/httpbind");
        return body.asXML();
    }

    private long getLongAttribue(String value, long defaultValue) {
        if (value == null || "".equals(value)) {
            return defaultValue;
View Full Code Here

Examples of org.dom4j.Node.asXML()

                    node = (Node) node.clone();
                    parts.add(DocumentHelper.createDocument((Element) node));
                }
                else
                {
                    logger.warn("Dcoument node: " + node.asXML()
                            + " is not an element and thus is not a valid part");
                }
            }
            return parts;
        }
View Full Code Here

Examples of org.dom4j.tree.DefaultElement.asXML()

        JBpmObjectMapper mapper = new JBpmObjectMapper();
        Message message = mapper.mapFromJBpmToEsbMessage(bpmToEsbVars, Boolean.FALSE, executionContext);
       
        //Setting up return mapping for the callback service.
        EsbActionHandler esbActionHandler = new EsbActionHandler();
        EPR epr = esbActionHandler.createReplyTo(esbToBpmVars.asXML(), Boolean.FALSE, executionContext);
        String esbToBpmXml = epr.getAddr().getExtensionValue(Constants.ESB_TO_BPM_VARS_TAG);
       
        //Obtaining the VariableMap that is going to be set callback command
        Map<String,Object> variableMap = mapper.mapFromEsbMessageToJBpmMap(message, esbToBpmVars.asXML());
        logger.info(variableMap);
View Full Code Here

Examples of org.dom4j.tree.DefaultElement.asXML()

        EsbActionHandler esbActionHandler = new EsbActionHandler();
        EPR epr = esbActionHandler.createReplyTo(esbToBpmVars.asXML(), Boolean.FALSE, executionContext);
        String esbToBpmXml = epr.getAddr().getExtensionValue(Constants.ESB_TO_BPM_VARS_TAG);
       
        //Obtaining the VariableMap that is going to be set callback command
        Map<String,Object> variableMap = mapper.mapFromEsbMessageToJBpmMap(message, esbToBpmVars.asXML());
        logger.info(variableMap);
        //Let's make sure that what we put in is going to make it roundtrip.
        assertEquals(helloWorldTokenScope, variableMap.get("x1"));
        assertEquals(helloWorldGlobalScope,variableMap.get("x2"));
    }
View Full Code Here

Examples of org.dom4j.tree.DefaultElement.asXML()

                    final DefaultElement esbToBpmVars = handler.esbToBpmVars;
                    if (esbToBpmVars != null)
                    {
                        try
                        {
                            return  new JBpmObjectMapper().mapFromEsbMessageToJBpmMapping(esbMessage, esbToBpmVars.asXML());
                        }
                        catch (final ConfigurationException e)
                        {
                            throw new CallbackException(e.getMessage(), e);
                        }
View Full Code Here

Examples of org.fao.geonet.domain.Group.asXml()

        if (group == null) {
            return new Element(Jeeves.Elem.RESPONSE);
        }


        return new Element(Jeeves.Elem.RESPONSE).addContent(group.asXml());
  }
}

//=============================================================================
View Full Code Here

Examples of org.fao.geonet.domain.MetadataCategory.asXml()

        final MetadataCategory category = context.getBean(MetadataCategoryRepository.class).findOne(Integer.valueOf(id));

        if (category == null) {
            return new Element(Jeeves.Elem.RESPONSE);
        }
        return new Element(Jeeves.Elem.RESPONSE).addContent(category.asXml());
  }
}

//=============================================================================
View Full Code Here

Examples of org.fao.geonet.domain.Schematron.asXml()

        } else {
            final Schematron one = repository.findOne(Integer.parseInt(id));
            if (one == null) {
                throw new BadParameterEx(Params.ID, id);
            }
            result = new Element("schematron").addContent(one.asXml());
        }

        result.setName("schematron");
        return result;
    }
View Full Code Here

Examples of org.fao.geonet.domain.User.asXml()

        //--- now get the users name, organisation and email address to
        //--- prepopulate the feedback form (if they are logged in)
        if (session.getUserId() != null) {
            User user = context.getBean(UserRepository.class).findOne(session.getUserIdAsInt());
            if (user != null) {
                Element elRec = user.asXml();
                elBrief.setName("record");
                response.addContent(elRec.cloneContent());
            }
        }
View Full Code Here

Examples of org.uiautomation.ios.utils.JSONToXMLConverter.asXML()

    // if no 1 sec delay
    Thread.sleep(200);
    model.refresh();
    JSONObject rootNode = model.getTree().getJSONObject("tree");
    JSONToXMLConverter conv = new JSONToXMLConverter(rootNode);
    JSONObject jsTreeObject = createFrom(rootNode, conv.asXML());
    return new JSONView(jsTreeObject);
  }

  private JSONObject createFrom(JSONObject from, String xml) throws JSONException {
    JSONObject node = new JSONObject();
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.