org.gxml.sa
Interface GxApplication<I,U,N extends I,A extends I,S,T,X>

All Superinterfaces:
Application<N,S,SmName<S>>

public interface GxApplication<I,U,N extends I,A extends I,S,T,X>
extends Application<N,S,SmName<S>>


Method Summary
 void error(javax.xml.namespace.QName error, java.lang.String description, java.lang.Iterable<? extends I> errorObject, GxProcessingContext<I,U,N,A,S,T,X> pcx)
          Used to report errors to the hosting site when the fn:error function is called.
 GxResolver getResolver()
          Returns a resolver for converting a uri into a stream of bytes for parsing.
 void message(java.lang.Iterable<? extends I> message, boolean terminate, GxProcessingContext<I,U,N,A,S,T,X> pcx)
          Implements the XSLT xsl:message function.
 GxProcessingContext<I,U,N,A,S,T,X> newProcessingContext()
          Allocates a new processing context.
 java.lang.Iterable<? extends I> trace(java.lang.Iterable<? extends I> srcval, java.lang.String label, GxProcessingContext<I,U,N,A,S,T,X> pcx)
          Implements the XQuery 1.0 and XPath 2.0 Functions and Operators fn:trace function.
 

Method Detail

newProcessingContext

GxProcessingContext<I,U,N,A,S,T,X> newProcessingContext()
Allocates a new processing context.

Specified by:
newProcessingContext in interface Application<N extends I,S,SmName<S>>

error

void error(javax.xml.namespace.QName error,
           java.lang.String description,
           java.lang.Iterable<? extends I> errorObject,
           GxProcessingContext<I,U,N,A,S,T,X> pcx)
Used to report errors to the hosting site when the fn:error function is called.
The hosted XML processor is expected to terminate immediately following this call.

Parameters:
error - The (optional) error code.
description - The (optional) error description.
errorObject - The (optional) error object.
pcx - The processing context.

message

void message(java.lang.Iterable<? extends I> message,
             boolean terminate,
             GxProcessingContext<I,U,N,A,S,T,X> pcx)
Implements the XSLT xsl:message function.

Parameters:
message - the message value.
terminate - the terminate flag set by the stylesheet.
pcx - The processing context.

trace

java.lang.Iterable<? extends I> trace(java.lang.Iterable<? extends I> srcval,
                                      java.lang.String label,
                                      GxProcessingContext<I,U,N,A,S,T,X> pcx)
Implements the XQuery 1.0 and XPath 2.0 Functions and Operators fn:trace function.

Parameters:
srcval - The input value which is returned, unchanged, as the result of the function.
label - The user-assigned label used to identify the trace statement.
pcx - The processing context.
Returns:
The unchanged srcval parameter. Implementations may change the return value, but doing so will affect the behavior of the executing expression.

getResolver

GxResolver getResolver()
Returns a resolver for converting a uri into a stream of bytes for parsing.



Copyright © 2009 TIBCO Software Inc. All Rights Reserved.