Package org.xmlpull.infoset

Examples of org.xmlpull.infoset.XmlElement.attributeValue()


       
        if (elementElement == null) {
            throw new ComponentException("No element is defined for "
                    + typeName);
        }
        String typesTargetNamespace = schemaElement
                .attributeValue(WSConstants.TARGET_NAMESPACE_ATTRIBUTE);
        String elementType = elementElement
                .attributeValue(WSConstants.TYPE_ATTRIBUTE);

        XmlElement sequenceElement;
View Full Code Here


            throw new IllegalArgumentException("null");
        }
        XmlElement idElement = getIDElement(event);
        String nodeID = null;
        if (idElement != null) {
            nodeID = idElement.attributeValue(WOR_NS,
                    WORKFLOW_NODE_ID_ATTRIBUTE);
        }
        if (nodeID == null) {
            nodeID = "";
        }
View Full Code Here

        String workflowID;
        switch (type) {
        case WORKFLOW_INITIALIZED:
        case WORKFLOW_TERMINATED:
            // Special cases
            workflowID = idElement.attributeValue(WOR_NS, SERVICE_ID_ATTRIBUTE);
            break;
        default:
            // Default
            workflowID = idElement
                    .attributeValue(WOR_NS, WORKFLOW_ID_ATTRIBUTE);
View Full Code Here

            // Special cases
            workflowID = idElement.attributeValue(WOR_NS, SERVICE_ID_ATTRIBUTE);
            break;
        default:
            // Default
            workflowID = idElement
                    .attributeValue(WOR_NS, WORKFLOW_ID_ATTRIBUTE);
            break;
        }
        if (workflowID == null || workflowID.length() == 0) {
            return null;
View Full Code Here

                NOTIFICATION_SOURCE_TAG);
        if (notificationSource == null) {
            throw new XBayaRuntimeException("The notification should have "
                    + NOTIFICATION_SOURCE_TAG + " element.");
        }
        String workflowInstanceID = notificationSource.attributeValue(WOR_NS,
                SERVICE_ID_ATTRIBUTE);
        if (workflowInstanceID == null) {
            throw new XBayaRuntimeException("The notification should have "
                    + SERVICE_ID_ATTRIBUTE + " attribute.");
        }
View Full Code Here

                setTypeAttribute(element, type);
            } else {
                // Copy the embedded type defition.
                XmlElement clonedElementElement = XMLUtil
                        .deepClone(elementElement);
                String typeString = clonedElementElement
                        .attributeValue(WSConstants.TYPE_ATTRIBUTE);
                if (typeString == null) {
                    for (Object child : clonedElementElement.children()) {
                        if (child instanceof XmlElement) {
                            ((XmlElement) child).setParent(null);
View Full Code Here

  public void generateODEBPEL(GpelProcess gpelProcess, String workflowName, WsdlDefinitions workflowWSDL, Map<String, WsdlDefinitions> wsdls) {
   
   
    XmlElement bpelXml = gpelProcess.xml();
    if( null != bpelXml.attributeValue(NAME) ){
      //already done
      return;
    }
   
    gpelProcess.xml().setAttributeValue(NAME,
View Full Code Here

   
   
    WSNode node = (WSNode)activeNode;
    WsdlDefinitions serviceWSDL = workflow.getWSDLs().get(node.getWSDLID());
    XmlElement serviceSchema = serviceWSDL.getTypes().element(null, "schema");
    String serviceTns = serviceSchema.attributeValue("targetNamespace");
   
    String nsPrefix = null;
    String oldNSPrefix = null;
    boolean introduceNewNS = false;
    String operationName = node.getOperationName();
View Full Code Here

            throw new IllegalArgumentException("null");
        }
        XmlElement idElement = getIDElement(event);
        String nodeID = null;
        if (idElement != null) {
            nodeID = idElement.attributeValue(WOR_NS, WORKFLOW_NODE_ID_ATTRIBUTE);
        }
        if(nodeID == null){
           nodeID = event.element(NOTIFICATION_SOURCE_TAG).attributeValue(WOR_NS, WORKFLOW_NODE_ID_ATTRIBUTE);
        }
        if (nodeID == null) {
View Full Code Here

            throw new IllegalArgumentException("null");
        }
        XmlElement idElement = event.element(WOR_NS,NOTIFICATION_SOURCE_TAG);
        String nodeID = null;
        if (idElement != null) {
            nodeID = idElement.attributeValue(WOR_NS, WORKFLOW_EXPERIMENT_ID);
        }if(nodeID == null){
           nodeID = event.element(NOTIFICATION_SOURCE_TAG).attributeValue(WOR_NS, WORKFLOW_EXPERIMENT_ID);
        }
        if (nodeID == null) {
            nodeID = "";
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.