Examples of NamespaceMap


Examples of org.apache.lenya.util.NamespaceMap

     * @param jobDetail The job detail.
     * @return A string.
     */
    public String getDocumentUrl(JobDetail jobDetail) {
        JobDataMap map = jobDetail.getJobDataMap();
        NamespaceMap wrapper = new NamespaceMap(map, LoadQuartzServlet.PREFIX);
        String documentUrl = (String) wrapper.get(PARAMETER_DOCUMENT_URL);
        return documentUrl;
    }
View Full Code Here

Examples of org.apache.lenya.util.NamespaceMap

     * @param jobDetail The job detail.
     * @param url The URL.
     */
    public void setDocumentUrl(JobDetail jobDetail, String url) {
        JobDataMap map = jobDetail.getJobDataMap();
        NamespaceMap wrapper = new NamespaceMap(map, LoadQuartzServlet.PREFIX);
        wrapper.put(PARAMETER_DOCUMENT_URL, url);
        jobDetail.setJobDataMap(map);
    }
View Full Code Here

Examples of org.apache.lenya.util.NamespaceMap

    /**
     * Ctor.
     * @param prefixedParameters The prefixed parameters to wrap.
     */
    public ParameterWrapper(Map prefixedParameters) {
        parameters = new NamespaceMap(prefixedParameters, getPrefix());
    }
View Full Code Here

Examples of org.apache.lenya.util.NamespaceMap

   */
  public static NamespaceMap extractParameters(
    String eventName,
    Identity identity,
    Role[] roles) {
    NamespaceMap parameters = new NamespaceMap(PREFIX);
    log.debug("Extractign workflow invoker parameters.");
    log.debug("    Event: [" + eventName + "]");
    parameters.put(EVENT, eventName);
    setRoles(parameters, roles);
    setIdentity(parameters, identity);
    return parameters;
  }
View Full Code Here

Examples of org.apache.lenya.util.NamespaceMap

            for (int i = 0; i < keys.length; i++) {
                params.setParameter(keys[i], taskParameters.get(keys[i]));
            }

            NamespaceMap mailMap = new NamespaceMap(PREFIX);
            mailMap.putAll(getMap());
            NamespaceMap propertiesMap = new NamespaceMap(AntTask.PROPERTIES_PREFIX);
            propertiesMap.putAll(mailMap.getPrefixedMap());

            for (Iterator iter = propertiesMap.getPrefixedMap().entrySet().iterator(); iter.hasNext();) {
                Map.Entry entry = (Map.Entry)iter.next();
                String key = (String)entry.getKey();
                String value = (String)entry.getValue();
                String trimmedValue = value.replace((char) 160, ' ');
                trimmedValue = trimmedValue.trim();
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.util.NamespaceMap

    int defaultStackSize = getDefaultNodeStackSize();

    _renderedNodeStack = new UINode[defaultStackSize];

    _nodePropertyMap   = new StackFrameMap(defaultStackSize);
    _properties = new NamespaceMap(getDefaultPropertyMapSize());
  }
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.NamespaceMap

    axisService.addParameter(parameter);
    axisService.setName(soapService.serviceName);

    axisService.setClassLoader(soapService.serviceObj.getClass().getClassLoader());

    NamespaceMap map = new NamespaceMap();
    map.put(Java2WSDLConstants.AXIS2_NAMESPACE_PREFIX,          Java2WSDLConstants.AXIS2_XSD);
    map.put(Java2WSDLConstants.DEFAULT_SCHEMA_NAMESPACE_PREFIX, Java2WSDLConstants.URI_2001_SCHEMA_XSD);
    axisService.setNameSpacesMap(map);
    axisService.setElementFormDefault(false);
    axisService.addSchema(soapService.schemaGenerator.generateSchema());
    axisService.setSchemaTargetNamespace(soapService.schemaGenerator.getSchemaTargetNameSpace());
    axisService.setTypeTable(soapService.schemaGenerator.getTypeTable());
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.NamespaceMap

           
            try {
                // This is used to get the correct prefix in the schema section of
                // the wsdl.  If we don't have this, then this namespace gets an
                // arbitrary prefix (e.g. ns5 instead of wsa).
                NamespaceMap nsMap = (NamespaceMap)schema.getNamespaceContext();
                if (nsMap == null) {
                    nsMap = new NamespaceMap();
                    nsMap.add(ReferenceConstants.WSADDRESSING_PREFIX,
                              ReferenceConstants.WSADDRESSING_NAMESPACE);
                    schema.setNamespaceContext(nsMap);
                } else {
                    nsMap.add(ReferenceConstants.WSADDRESSING_PREFIX,
                              ReferenceConstants.WSADDRESSING_NAMESPACE);
                }
            } catch (ClassCastException ex) {
                // Consume the exception.  It is still OK with the default prefix,
                // just not as clear.
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.NamespaceMap

                                                              new QName(Constants.URI_2001_SCHEMA_XSD,
                                                                        "schema"));

        // See if a NamespaceMap has already been added to the schema (this can be the case with object
        // references.  If so, simply add the XSD URI to the map.  Otherwise, create a new one.
        NamespaceMap nsMap = null;
        try {
            nsMap = (NamespaceMap)schema.getNamespaceContext();
        } catch (ClassCastException ex) {
            // Consume.  This will mean that the context has not been set.
        }
        if (nsMap == null) {
            nsMap = new NamespaceMap();
            nsMap.add("xs", Constants.URI_2001_SCHEMA_XSD);
            schema.setNamespaceContext(nsMap);
        } else {
            nsMap.add("xs", Constants.URI_2001_SCHEMA_XSD);
        }
        org.w3c.dom.Element el = XmlSchemaSerializer.serializeSchema(schema, true)[0].getDocumentElement();
        wsdlSchema.setElement(el);
       
        types.addExtensibilityElement(wsdlSchema);
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.NamespaceMap

        schemaInfo = new SchemaInfo(qn.getNamespaceURI(), qualifiedSchemas, false);
        schemaInfo.setSchema(schema);

        el = createXsElement(schema, part, typeName, schemaInfo);

        NamespaceMap nsMap = new NamespaceMap();
        nsMap.add(WSDLConstants.CONVENTIONAL_TNS_PREFIX, schema.getTargetNamespace());
        nsMap.add(WSDLConstants.NP_SCHEMA_XSD, WSDLConstants.NS_SCHEMA_XSD);
        schema.setNamespaceContext(nsMap);

        serviceInfo.addSchema(schemaInfo);
    }
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.