Package org.eclipse.wst.xml.xpath2.processor
public class DefaultDynamicContext extends org.eclipse.wst.xml.xpath2.processor.internal.DefaultStaticContextThe default implementation of a Dynamic Context. Initializes and provides functionality of a dynamic context according to the XPath 2.0 specification.
Constructor Summary |
DefaultDynamicContext(XSModel schema
,
org.w3c.dom.Document doc) |
DefaultDynamicContext(org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel schema) |
Method Summary | |
public void | add_function_library(FunctionLibrary fl)Adds function definitions. |
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType | context_item()Retrieve context item that is in focus |
public int | context_position()Retrieve the position of the focus |
public java.util.GregorianCalendar | current_date_time()Gets the Current stable date time from the dynamic context. |
public java.lang.String | default_collation_name() |
public org.eclipse.wst.xml.xpath2.processor.ResultSequence | evaluate_function(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name
,
java.util.Collection args) |
public org.eclipse.wst.xml.xpath2.processor.internal.Focus | focus()Return the focus |
public java.util.Comparator | get_collation(java.lang.String uri) |
public org.eclipse.wst.xml.xpath2.processor.ResultSequence | get_doc(java.net.URI resolved)get document |
public java.lang.Object | get_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)Retrieve the variable name |
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel | getTypeModel(org.w3c.dom.Node node) |
public int | last()Retrieve the position of the last focus |
public int | node_position(org.w3c.dom.Node node)Use focus().position() to retrieve the value. |
public java.net.URI | resolve_uri(java.lang.String uri) |
public void | set_collation_provider(org.eclipse.wst.xml.xpath2.processor.CollationProvider provider) |
public void | set_default_collation(java.lang.String _default_collation) |
public void | set_focus(org.eclipse.wst.xml.xpath2.processor.internal.Focus f)Changes the current focus. |
public void | set_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var
,
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType val)Sets the value of a variable. |
public void | set_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var
,
org.eclipse.wst.xml.xpath2.processor.ResultSequence val) |
public org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration | tz()Reads the day from a TimeDuration type |
Constructor Detail |
public DefaultDynamicContext(XSModel schema
,
org.w3c.dom.Document doc)
Constructor.
public DefaultDynamicContext(org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel schema)
Constructor.
Methods Detail |
public void add_function_library(FunctionLibrary fl)
Adds function definitions.
fl - Function library to add.
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType context_item()
Retrieve context item that is in focus
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType - an AnyType result from _focus.context_item()
public int context_position()
Retrieve the position of the focus
int - an integer result from _focus.position()
public java.util.GregorianCalendar current_date_time()
Gets the Current stable date time from the dynamic context.
java.util.GregorianCalendar
public java.lang.String default_collation_name()
java.lang.String
public org.eclipse.wst.xml.xpath2.processor.ResultSequence evaluate_function(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name
,
java.util.Collection args)
name
args
org.eclipse.wst.xml.xpath2.processor.ResultSequence - a ResultSequence from funct.evaluate(args)
org.eclipse.wst.xml.xpath2.processor.DynamicError
public org.eclipse.wst.xml.xpath2.processor.internal.Focus focus()
Return the focus
org.eclipse.wst.xml.xpath2.processor.internal.Focus - _focus
public java.util.Comparator get_collation(java.lang.String uri)
uri
java.util.Comparator
public org.eclipse.wst.xml.xpath2.processor.ResultSequence get_doc(java.net.URI resolved)
get document
resolved
org.eclipse.wst.xml.xpath2.processor.ResultSequence - a ResultSequence from ResultSequenceFactory.create_new()
public java.lang.Object get_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
Retrieve the variable name
name
java.lang.Object - an AnyType result from get_var(name) or return NULL
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel getTypeModel(org.w3c.dom.Node node)
node
org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel
public int last()
Retrieve the position of the last focus
int - an integer result from _focus.last()
public int node_position(org.w3c.dom.Node node)
Use focus().position() to retrieve the value.
node
int
public java.net.URI resolve_uri(java.lang.String uri)
uri
java.net.URI
public void set_collation_provider(org.eclipse.wst.xml.xpath2.processor.CollationProvider provider)
provider
public void set_default_collation(java.lang.String _default_collation)
_default_collation
public void set_focus(org.eclipse.wst.xml.xpath2.processor.internal.Focus f)
Changes the current focus.
f - focus to set
public void set_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var
,
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType val)
Sets the value of a variable.
var - Variable name.
val - Variable value.
public void set_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var
,
org.eclipse.wst.xml.xpath2.processor.ResultSequence val)
var
val
public org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration tz()
Reads the day from a TimeDuration type
org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration - an xs:integer _tz