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


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



public class StaticContext
extends 
interface to static context


Method Summary

public voidadd_function_library(FunctionLibrary fl)
     add function to library
public voidadd_namespace(java.lang.String prefix , java.lang.String ns)
     add namespace
public voidadd_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
     add variable
public booleanattribute_declared(org.eclipse.wst.xml.xpath2.processor.internal.types.QName attr)
     is the attribute declared?
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitionattribute_type_definition(org.eclipse.wst.xml.xpath2.processor.internal.types.QName attr)
    
public org.eclipse.wst.xml.xpath2.processor.internal.types.XSAnyURIbase_uri()
     base uri
public java.lang.Stringdefault_function_namespace()
     the default function namespace
public java.lang.Stringdefault_namespace()
     the default namespace
public booleandel_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
     delete the variable
public booleanderives_from(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType at , org.eclipse.wst.xml.xpath2.processor.internal.types.QName et)
    
public booleanderives_from(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType at , org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition et)
    
public voiddestroy_scope()
     destroy scope
public booleanelement_declared(org.eclipse.wst.xml.xpath2.processor.internal.types.QName elem)
     is the element declared?
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitionelement_type_definition(org.eclipse.wst.xml.xpath2.processor.internal.types.QName elem)
    
public booleanexpand_elem_type_qname(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
     expand element type qname
public booleanexpand_function_qname(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
     expand function
public booleanexpand_qname(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
     expand qname
public booleanfunction_exists(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name , int arity)
     is the element declared?
public java.util.Mapget_collections()
    
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeModelgetTypeModel(org.w3c.dom.Node element)
     Gets the type provider in use for the specified DOM node.
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicTypemake_atomic(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
    
public voidnew_scope()
     new scope
public booleanprefix_exists(java.lang.String prefix)
     namespaces does the prefix exist
public java.lang.Stringresolve_prefix(java.lang.String prefix)
    
public voidset_base_uri(java.lang.String baseuri)
     Sets the base uri for the context.
public voidset_collections(java.util.Map collections)
    
public booleantype_defined(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
    
public booleanvariable_exists(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)
    
public booleanvariable_in_scope(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var)
    
public booleanxpath1_compatible()
     is it xpath 1.0 compatible.

Methods Detail

add_function_library

public void add_function_library(FunctionLibrary fl)

add function to library

Parameters

fl - is the function library


add_namespace

public void add_namespace(java.lang.String prefix , java.lang.String ns)

add namespace

Parameters

prefix - the prefix of the namespace

ns - is the XSTypeDefinition of the node


add_variable

public void add_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)

add variable

Parameters

name - is the qname


attribute_declared

public boolean attribute_declared(org.eclipse.wst.xml.xpath2.processor.internal.types.QName attr)

is the attribute declared?

Parameters

attr - is the attribute of the qname

Returns

boolean - boolean


attribute_type_definition

public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition attribute_type_definition(org.eclipse.wst.xml.xpath2.processor.internal.types.QName attr)

Parameters

attr - is the qname variable

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition - attributes's type definition


base_uri

public org.eclipse.wst.xml.xpath2.processor.internal.types.XSAnyURI base_uri()

base uri

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.XSAnyURI - uri


default_function_namespace

public java.lang.String default_function_namespace()

the default function namespace

Returns

java.lang.String - string


default_namespace

public java.lang.String default_namespace()

the default namespace

Returns

java.lang.String - string


del_variable

public boolean del_variable(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)

delete the variable

Parameters

name - is the qname

Returns

boolean - boolean if deleted variable


derives_from

public boolean derives_from(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType at , org.eclipse.wst.xml.xpath2.processor.internal.types.QName et)

Parameters

at - the node type

et - is the qname

Returns

boolean - boolean


derives_from

public boolean derives_from(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType at , org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition et)

Parameters

at - the node type

et - is the XSTypeDefinition of the node

Returns

boolean - boolean


destroy_scope

public void destroy_scope()

destroy scope


element_declared

public boolean element_declared(org.eclipse.wst.xml.xpath2.processor.internal.types.QName elem)

is the element declared?

Parameters

elem - is the elem of the qname

Returns

boolean - boolean


element_type_definition

public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition element_type_definition(org.eclipse.wst.xml.xpath2.processor.internal.types.QName elem)

Parameters

elem - is the elem of the qname

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition - element's type definition


expand_elem_type_qname

public boolean expand_elem_type_qname(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)

expand element type qname

Parameters

name - is the qname

Returns

boolean - boolean if function can be expanded


expand_function_qname

public boolean expand_function_qname(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)

expand function

Parameters

name - is the qname

Returns

boolean - boolean if function can be expanded


expand_qname

public boolean expand_qname(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)

expand qname

Parameters

name - is the qname

Returns

boolean - boolean if function can be expanded


function_exists

public boolean function_exists(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name , int arity)

is the element declared?

Parameters

name - is the qname name

arity - integer of qname

Returns

boolean - boolean


get_collections

public java.util.Map get_collections()

Returns

java.util.Map


getTypeModel

public org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel getTypeModel(org.w3c.dom.Node element)

Gets the type provider in use for the specified DOM node.

Parameters

element

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel


make_atomic

public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType make_atomic(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)

Parameters

name - is the qname

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType - any atomic type


new_scope

public void new_scope()

new scope


prefix_exists

public boolean prefix_exists(java.lang.String prefix)

namespaces does the prefix exist

Parameters

prefix - is the prefix

Returns

boolean - boolean


resolve_prefix

public java.lang.String resolve_prefix(java.lang.String prefix)

Parameters

prefix - is the prefix

Returns

java.lang.String - string


set_base_uri

public void set_base_uri(java.lang.String baseuri)

Sets the base uri for the context.

Parameters

baseuri


set_collections

public void set_collections(java.util.Map collections)

Parameters

collections


type_defined

public boolean type_defined(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)

Parameters

name - is qname

Returns

boolean - boolean


variable_exists

public boolean variable_exists(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name)

Parameters

name - is the qname

Returns

boolean - boolean if variable exists


variable_in_scope

public boolean variable_in_scope(org.eclipse.wst.xml.xpath2.processor.internal.types.QName var)

Parameters

var - is the variable of qname

Returns

boolean


xpath1_compatible

public boolean xpath1_compatible()

is it xpath 1.0 compatible.

Returns

boolean - boolean