org.ucl.xpath
Interface StaticContext

All Known Subinterfaces:
DynamicContext
All Known Implementing Classes:
DefaultDynamicContext, DefaultStaticContext

public interface StaticContext

interface to static context


Method Summary
 void add_function_library(FunctionLibrary fl)
          add function to library
 void add_namespace(java.lang.String prefix, java.lang.String ns)
          add namespace
 void add_variable(QName name)
          add variable
 boolean attribute_declared(QName attr)
          is the attribute declared?
 org.apache.xerces.xs.XSTypeDefinition attribute_type_definition(QName attr)
           
 XSAnyURI base_uri()
          base uri
 java.lang.String default_function_namespace()
          the default function namespace
 java.lang.String default_namespace()
          the default namespace
 boolean del_variable(QName name)
          delete the variable
 boolean derives_from(NodeType at, QName et)
           
 boolean derives_from(NodeType at, org.apache.xerces.xs.XSTypeDefinition et)
           
 void destroy_scope()
          destroy scope
 boolean element_declared(QName elem)
          is the element declared?
 org.apache.xerces.xs.XSTypeDefinition element_type_definition(QName elem)
           
 boolean expand_elem_type_qname(QName name)
          expand element type qname
 boolean expand_function_qname(QName name)
          expand function
 boolean expand_qname(QName name)
          expand qname
 boolean function_exists(QName name, int arity)
          is the element declared?
 AnyAtomicType make_atomic(QName name)
           
 void new_scope()
          new scope
 boolean prefix_exists(java.lang.String prefix)
          namespaces does the prefix exist
 java.lang.String resolve_prefix(java.lang.String prefix)
           
 boolean type_defined(QName name)
           
 boolean variable_exists(QName name)
           
 boolean variable_in_scope(QName var)
           
 boolean xpath1_compatible()
          is it xpath 1.0 compatible.
 

Method Detail

xpath1_compatible

public boolean xpath1_compatible()
is it xpath 1.0 compatible.

Returns:
boolean

prefix_exists

public boolean prefix_exists(java.lang.String prefix)
namespaces does the prefix exist

Parameters:
prefix - is the prefix
Returns:
boolean

resolve_prefix

public java.lang.String resolve_prefix(java.lang.String prefix)
Parameters:
prefix - is the prefix
Returns:
string

default_namespace

public java.lang.String default_namespace()
the default namespace

Returns:
string

default_function_namespace

public java.lang.String default_function_namespace()
the default function namespace

Returns:
string

attribute_type_definition

public org.apache.xerces.xs.XSTypeDefinition attribute_type_definition(QName attr)
Parameters:
attr - is the qname variable
Returns:
attributes's type definition

element_type_definition

public org.apache.xerces.xs.XSTypeDefinition element_type_definition(QName elem)
Parameters:
elem - is the elem of the qname
Returns:
element's type definition

attribute_declared

public boolean attribute_declared(QName attr)
is the attribute declared?

Parameters:
attr - is the attribute of the qname
Returns:
boolean

element_declared

public boolean element_declared(QName elem)
is the element declared?

Parameters:
elem - is the elem of the qname
Returns:
boolean

function_exists

public boolean function_exists(QName name,
                               int arity)
is the element declared?

Parameters:
name - is the qname name
arity - integer of qname
Returns:
boolean

base_uri

public XSAnyURI base_uri()
base uri

Returns:
uri

new_scope

public void new_scope()
new scope


destroy_scope

public void destroy_scope()
destroy scope


add_variable

public void add_variable(QName name)
add variable

Parameters:
name - is the qname

del_variable

public boolean del_variable(QName name)
delete the variable

Parameters:
name - is the qname
Returns:
boolean if deleted variable

variable_exists

public boolean variable_exists(QName name)
Parameters:
name - is the qname
Returns:
boolean if variable exists

variable_in_scope

public boolean variable_in_scope(QName var)
Parameters:
var - is the variable of qname

type_defined

public boolean type_defined(QName name)
Parameters:
name - is qname
Returns:
boolean

derives_from

public boolean derives_from(NodeType at,
                            QName et)
Parameters:
at - the node type
et - is the qname
Returns:
boolean

derives_from

public boolean derives_from(NodeType at,
                            org.apache.xerces.xs.XSTypeDefinition et)
Parameters:
at - the node type
et - is the XSTypeDefinition of the node
Returns:
boolean

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

expand_function_qname

public boolean expand_function_qname(QName name)
expand function

Parameters:
name - is the qname
Returns:
boolean if function can be expanded

expand_elem_type_qname

public boolean expand_elem_type_qname(QName name)
expand element type qname

Parameters:
name - is the qname
Returns:
boolean if function can be expanded

expand_qname

public boolean expand_qname(QName name)
expand qname

Parameters:
name - is the qname
Returns:
boolean if function can be expanded

add_function_library

public void add_function_library(FunctionLibrary fl)
add function to library

Parameters:
fl - is the function library

make_atomic

public AnyAtomicType make_atomic(QName name)
Parameters:
name - is the qname
Returns:
any atomic type