complexType functionType

complexType {http://java.sun.com/xml/ns/j2ee}functionType

Abstractfalse (This can be used in an instance)
Target Namespacehttp://java.sun.com/xml/ns/j2ee
Declared Namespacesxmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:j2ee=http://java.sun.com/xml/ns/j2ee


Source

<xsd:complexType name="functionType">
    <
xsd:annotation>
        <
xsd:documentation>
The function element is used to provide information on each
function in the tag library that is to be exposed to the EL.

The function element may have several subelements defining:

description Optional tag-specific information

display-name A short name that is intended to be
displayed by tools

icon Optional icon element that can be used
by tools

name A unique name for this function

function-class Provides the name of the Java class that
implements the function

function-signature Provides the signature, as in the Java
Language Specification, of the Java
method that is to be used to implement
the function.

example Optional informal description of an
example of a use of this function

function-extension Zero or more extensions that provide extra
information about this function, for tool
consumption
        
</xsd:documentation>
    </
xsd:annotation>
    <
xsd:sequence>
        <
xsd:group ref="j2ee:descriptionGroup"/>
        <
xsd:element name="name" type="j2ee:tld-canonical-nameType">
            <
xsd:annotation>
                <
xsd:documentation>A unique name for this function.</xsd:documentation>
            </
xsd:annotation>
        </
xsd:element>
        <
xsd:element name="function-class" type="j2ee:fully-qualified-classType">
            <
xsd:annotation>
                <
xsd:documentation>
Provides the fully-qualified class name of the Java
class containing the static method that implements
the function.
                
</xsd:documentation>
            </
xsd:annotation>
        </
xsd:element>
        <
xsd:element name="function-signature" type="j2ee:string">
            <
xsd:annotation>
                <
xsd:documentation>
Provides the signature, of the static Java method that is
to be used to implement the function. The syntax of the
function-signature element is as follows:

FunctionSignature ::= ReturnType S MethodName S?
'(' S? Parameters? S? ')'

ReturnType ::= Type

MethodName ::= Identifier

Parameters ::= Parameter
| ( Parameter S? ',' S? Parameters )

Parameter ::= Type

Where:

* Type is a basic type or a fully qualified
Java class name (including package name),
as per the 'Type' production in the Java
Language Specification, Second Edition,
Chapter 18.

* Identifier is a Java identifier, as per
the 'Identifier' production in the Java
Language Specification, Second
Edition, Chapter 18.

Example:

java.lang.String nickName( java.lang.String, int )
                
</xsd:documentation>
            </
xsd:annotation>
        </
xsd:element>
        <
xsd:element name="example" type="j2ee:xsdStringType" minOccurs="0">
            <
xsd:annotation>
                <
xsd:documentation>
The example element contains an informal description
of an example of the use of this function.
                
</xsd:documentation>
            </
xsd:annotation>
        </
xsd:element>
        <
xsd:element name="function-extension" type="j2ee:tld-extensionType" minOccurs="0"
            
maxOccurs="unbounded">
            <
xsd:annotation>
                <
xsd:documentation>
Function extensions are for tool use only and must not affect
the behavior of a container.
                
</xsd:documentation>
            </
xsd:annotation>
        </
xsd:element>
    </
xsd:sequence>
    <
xsd:attribute name="id" type="xsd:ID"/>
</
xsd:complexType>


Documentation

	The function element is used to provide information on each
	function in the tag library that is to be exposed to the EL.
	The function element may have several subelements defining:
	description         Optional tag-specific information
	display-name        A short name that is intended to be
			    displayed by tools
	icon                Optional icon element that can be used
			    by tools
	name                A unique name for this function
	function-class      Provides the name of the Java class that
			    implements the function
	function-signature  Provides the signature, as in the Java
			    Language Specification, of the Java
			    method that is to be used to implement
			    the function.
	example             Optional informal description of an
			    example of a use of this function
	function-extension  Zero or more extensions that provide extra
			    information about this function, for tool
			    consumption


complexType functionType


Stylus Studio XML Schema Library Home
Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio®, a product from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2006 All Rights Reserved.