Package org.rumbledb.context
Class RuntimeStaticContext
java.lang.Object
org.rumbledb.context.RuntimeStaticContext
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLombok generates the body of this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromStaticContext(@NonNull StaticContext staticContext) Returns a builder seeded with the settings that originate in aStaticContext.Returns the static type of expressions in this context, ornullif no static type is defined for this context.resolvePrefix(String prefix) Resolves a namespace prefix using in-scope bindings from this context, falling back to built-in prefixes (fn, xs, ...).toString()
-
Constructor Details
-
RuntimeStaticContext
public RuntimeStaticContext()
-
-
Method Details
-
toString
-
fromStaticContext
public static RuntimeStaticContext.RuntimeStaticContextBuilder fromStaticContext(@NonNull @NonNull StaticContext staticContext) Returns a builder seeded with the settings that originate in aStaticContext.- Parameters:
staticContext- the static context to copy settings from; must not benull- Returns:
- a builder for completing a runtime static context
-
getStaticType
Returns the static type of expressions in this context, ornullif 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
nullif 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
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
nullif the prefix is not bound
-