/** * Get the partnerLink link type. * * @return partnerLink link type */ public QName getPartnerLinkType() { return getNamespaceContext().derefQName(getAttribute("partnerLinkType", null)); }
/** * Get the (ordered) set of properties that define this correlation set. * Properties are returned by their qualified name. * * @return set of defining properties */ public QName[] getProperties() { if (_props == null) { StringTokenizer st = new StringTokenizer(getAttribute("properties", "")); ArrayList<QName> al = new ArrayList<QName>(); NSContext nsc = getNamespaceContext(); for (; st.hasMoreTokens();) { String token = st.nextToken(); if (token.startsWith("{")) { String namespace = token.substring(1, token.indexOf("}")); String localname = token.substring(token.indexOf("}") + 1, token.length()); al.add(new QName(namespace, localname)); } else { al.add(nsc.derefQName(token)); } } _props = al.toArray(new QName[] {}); } return _props; }
/** * Get the fault variable type. The fault variable type must be specified in * BPEL 2.0 if the fault variable is set. * * @return fault variable type or <code>null</code> if none specified. */ public QName getFaultVariableElementType() { return getNamespaceContext().derefQName(getAttribute("faultElement", null)); }
/** * Get the thrown fault name. * * @return name of thrown fault */ public QName getFaultName() { return getNamespaceContext().derefQName(getAttribute("faultName", null)); }
public QName getExtension() { return getNamespaceContext().derefQName(getAttribute("extension", null)); } }
/** * Get the fault name with which to reply. * * @return the fault name */ public QName getFaultName() { return getNamespaceContext().derefQName(getAttribute("faultName", null)); }
/** * Get the <code>QName</code> of the property that this alias applies to. * * @return the property <code>QName</code> */ public QName getPropertyName() { return getNamespaceContext().derefQName(getAttribute("propertyName")); }
/** * @return the WSDL message type to be used for the incoming message body or * <code>null</code> if an element type is to be used instead. * @see #getElement() */ public QName getMessageType() { return getNamespaceContext().derefQName(getAttribute("messageType")); }
/** * @return the element type to be used for the incoming message body or * <code>null</code> if a WSDL message type is to be used instead. * @see #getMessageType() */ public QName getElementType() { return getNamespaceContext().derefQName(getAttribute("element",null)); }
/** * Get the name of the fault. May be <code>null</code>. * * @return fault name or <code>null</code> */ public QName getFaultName() { return getNamespaceContext().derefQName(getAttribute("faultName", null)); }
/** * Get the name of the WSDL <code>message</code> type that this alias it * to apply to. * * @return the <code>QName</code> for the <code>messageType</code> */ public QName getMessageType() { return getNamespaceContext().derefQName(getAttribute("messageType")); }
public QName getName() { return getNamespaceContext().derefQName(getAttribute("name")); } }
/** * Get the WSDL portType of the role (i.e. the interface implemented by * the object acting in the role). * * @return role portType */ public QName getPortType() { return getNamespaceContext().derefQName(getAttribute("portType")); }
/** * Get the name of the schema type for this property * * @return the <code>QName</code> for the schema type of this property. */ public QName getPropertyType() { return getNamespaceContext().derefQName(getAttribute("type")); }
/** * Get the fault variable type. The fault variable type must be specified in * BPEL 2.0 if the fault variable is set. * * @return fault variable type or <code>null</code> if none specified. */ public QName getFaultVariableMessageType() { return getNamespaceContext().derefQName(getAttribute("faultMessageType", null)); }
public QName getProperty() { return getNamespaceContext().derefQName(getAttribute("property", null)); } }
public QName getPortType() { return getNamespaceContext().derefQName(getAttribute("portType", null)); }
public Object evaluate(List params) throws XPathFunctionException { if (params.size() != 2) { throw new CompilationException( __msgs.errInvalidNumberOfArguments(Constants.EXT_FUNCTION_GETVARIABLEPROPERTY)); } String varName = (String) params.get(0); OScope.Variable v = _cctx.resolveVariable(varName); _out.vars.put(varName, v); String propName = (String) params.get(1); QName qname = _nsContext.derefQName(propName); if (qname == null) throw new CompilationException( __msgs.errInvalidQName(propName)); OProcess.OProperty property = _cctx.resolveProperty(qname); // Make sure we can... _cctx.resolvePropertyAlias(v, qname); _out.properties.put(propName, property); _out.vars.put(varName, v); return ""; } }
private void compileGetVariableProperty(FunctionCallExpr c) throws CompilationException{ List params = c.getParameters(); if (params.size() != 2) { throw new CompilationException( __msgs.errInvalidNumberOfArguments(Constants.EXT_FUNCTION_GETVARIABLEPROPRTY)); } String varName = getLiteralFromExpression((Expr)params.get(0)); OScope.Variable v = _cctx.resolveVariable(varName); _out.vars.put(varName, v); String propName = getLiteralFromExpression((Expr)params.get(1)); QName qname = _nsContext.derefQName(propName); if (qname == null) throw new CompilationException( __msgs.errInvalidQName(propName)); OProcess.OProperty property = _cctx.resolveProperty(qname); // Make sure we can... _cctx.resolvePropertyAlias(v, qname); _out.properties.put(propName, property); _out.vars.put(varName, v); }
/** * Get the type name of this variable. * * @return an XML element, XML schema type, or WSDL message type name. */ public QName getTypeName() { String typename = null; switch (getKind()) { case MESSAGE: typename = getAttribute("messageType", null); break; case SCHEMA: typename = getAttribute("type", null); break; case ELEMENT: typename = getAttribute("element", null); } if (typename == null) return null; return getNamespaceContext().derefQName(typename); }