alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Apache CXF example source code file (inc_type_test_java_signature.xsl)

This example Apache CXF source code file (inc_type_test_java_signature.xsl) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Apache CXF tags/keywords

abcdefghijklmnopqrstuvwxyz, apache, apache, asf, asf, conditions, is, license, license, notice, of, see, see, software

The Apache CXF inc_type_test_java_signature.xsl source code

<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements. See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership. The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
-->
<!--
     Stylesheet to convert schema into java file for test implementation.
-->
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xalan="http://xml.apache.org/xslt"
    xmlns:itst="http://tests.iona.com/ittests">

    <xsl:import href="inc_type_test_java_types.xsl"/>

    <xsl:output method="text"/>
    <xsl:strip-space elements="*"/>
    
    <xsl:template match="xsd:simpleType|xsd:complexType|xsd:element|itst:builtIn" mode="test_signature">
        <xsl:variable name="the_name">
            <xsl:value-of select="concat(translate(substring(@name, 1, 1),
                                         'abcdefghijklmnopqrstuvwxyz', 
                                         'ABCDEFGHIJKLMNOPQRSTUVWXYZ'),
                                         substring(@name, 2))"/>
        </xsl:variable>
        <xsl:variable name="operation_name">
            <xsl:value-of select="concat('test', $the_name)"/>
        </xsl:variable>
        <xsl:variable name="class_name">
            <xsl:value-of select="concat('Test', $the_name)"/>
        </xsl:variable>
        <xsl:text>
    public 
        <xsl:apply-templates select="." mode="javaType"/>
        <xsl:text> 
        <xsl:value-of select="$operation_name"/>
        <xsl:text>(
            
        <xsl:apply-templates select="." mode="javaType"/>
        <xsl:text> x,
        <xsl:apply-templates select="." mode="javaHolderType"/>
        <xsl:text> y,
        <xsl:apply-templates select="." mode="javaHolderType"/>
        <xsl:text> z)
    </xsl:template>

</xsl:stylesheet>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF inc_type_test_java_signature.xsl source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.