Package org.eclipse.wst.xml.xpath2.processor


org.eclipse.wst.xml.xpath2.processor
Class DynamicContext



public class DynamicContext
extends 
Interface for dynamic context.


Field Summary

public static java.lang.StringCODEPOINT_COLLATION
     The default collation which is guaranteed to always be implemented

Method Summary

public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyTypecontext_item()
     Get context item.
public intcontext_position()
     Get context node position.
public java.util.GregorianCalendarcurrent_date_time()
     Returns the current date time using the GregorianCalendar.
public java.lang.Stringdefault_collation_name()
     Returns the current default collator
public org.eclipse.wst.xml.xpath2.processor.ResultSequenceevaluate_function(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name , java.util.Collection args)
     Evaluate the function of the arguments.
public org.eclipse.wst.xml.xpath2.processor.internal.Focusfocus()
     Return focus.
public java.util.Comparatorget_collation(java.lang.String uri)
     Return a useful collator for the specified URI
public org.eclipse.wst.xml.xpath2.processor.ResultSequenceget_doc(java.net.URI uri)
     Get document.
public java.lang.Objectget_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
     Get variable.
public intlast()
     Get position of last item.
public intnode_position(org.w3c.dom.Node node)
    
public java.net.URIresolve_uri(java.lang.String uri)
     Resolve an URI
public voidset_focus(org.eclipse.wst.xml.xpath2.processor.internal.Focus focus)
     Set focus.
public voidset_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var , org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType val)
     Set variable.
public voidset_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var , org.eclipse.wst.xml.xpath2.processor.ResultSequence val)
     Sets a XPath2 sequence into a variable.
public org.eclipse.wst.xml.xpath2.processor.internal.types.XSDurationtz()
     Reads the day from a TimeDuration type

Field Detail

CODEPOINT_COLLATION

public static java.lang.String CODEPOINT_COLLATION

The default collation which is guaranteed to always be implemented

Methods Detail

context_item

public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType context_item()

Get context item.

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType - the context item.


context_position

public int context_position()

Get context node position.

Returns

int - position of context node.


current_date_time

public java.util.GregorianCalendar current_date_time()

Returns the current date time using the GregorianCalendar.

Returns

java.util.GregorianCalendar - The current date and time, which will always be same for the dynamic context.


default_collation_name

public java.lang.String default_collation_name()

Returns the current default collator

Returns

java.lang.String - The default name to use as the collator


evaluate_function

public org.eclipse.wst.xml.xpath2.processor.ResultSequence evaluate_function(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name , java.util.Collection args)

Evaluate the function of the arguments.

Parameters

name - is the name.

args - are the arguments.

Returns

org.eclipse.wst.xml.xpath2.processor.ResultSequence - result of the function evaluation.

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError - dynamic error.


focus

public org.eclipse.wst.xml.xpath2.processor.internal.Focus focus()

Return focus.

Returns

org.eclipse.wst.xml.xpath2.processor.internal.Focus - Focus


get_collation

public java.util.Comparator get_collation(java.lang.String uri)

Return a useful collator for the specified URI

Parameters

uri

Returns

java.util.Comparator - A Jaa collator, or null, if no such Collator exists


get_doc

public org.eclipse.wst.xml.xpath2.processor.ResultSequence get_doc(java.net.URI uri)

Get document.

Parameters

uri - is the URI of the document.

Returns

org.eclipse.wst.xml.xpath2.processor.ResultSequence - document.


get_variable

public java.lang.Object get_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)

Get variable.

Parameters

name - is the name of the variable.

Returns

java.lang.Object - variable.


last

public int last()

Get position of last item.

Returns

int - last item position.


node_position

public int node_position(org.w3c.dom.Node node)

Parameters

node

Returns

int


resolve_uri

public java.net.URI resolve_uri(java.lang.String uri)

Resolve an URI

Parameters

uri - is the possibly relative URI to resolve

Returns

java.net.URI - the absolutized, resolved URI.


set_focus

public void set_focus(org.eclipse.wst.xml.xpath2.processor.internal.Focus focus)

Set focus.

Parameters

focus - is focus to be set.


set_variable

public void set_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var , org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType val)

Set variable.

Parameters

var - is name of the variable.

val - is the value to be set for the variable.


set_variable

public void set_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var , org.eclipse.wst.xml.xpath2.processor.ResultSequence val)

Sets a XPath2 sequence into a variable.

Parameters

var

val


tz

public org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration tz()

Reads the day from a TimeDuration type

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration - current date time and implicit timezone.