Class RuntimeStaticContext

java.lang.Object
org.rumbledb.context.RuntimeStaticContext
All Implemented Interfaces:
Serializable

public class RuntimeStaticContext extends Object implements Serializable
See Also:
  • Constructor Details

    • RuntimeStaticContext

      public RuntimeStaticContext()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromStaticContext

      public static RuntimeStaticContext.RuntimeStaticContextBuilder fromStaticContext(@NonNull @NonNull StaticContext staticContext)
      Returns a builder seeded with the settings that originate in a StaticContext.
      Parameters:
      staticContext - the static context to copy settings from; must not be null
      Returns:
      a builder for completing a runtime static context
    • getStaticType

      public SequenceType getStaticType()
      Returns the static type of expressions in this context, or null if no static type is defined for this context. Note that clauses do not have static types, so calling this method on a context associated with a clause will throw an exception.
      Returns:
      the static type of expressions in this context, or null if no static type is defined for this context; note that clauses do not have static types, so calling this method on a context associated with a clause will throw an exception
    • resolvePrefix

      public String resolvePrefix(String prefix)
      Resolves a namespace prefix using in-scope bindings from this context, falling back to built-in prefixes (fn, xs, ...). For the default element/type namespace, pass "".
      Returns:
      the namespace URI, or null if the prefix is not bound