Class StaticContext
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.metapath.StaticContext
-
public final class StaticContext extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StaticContext.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticContext.Builder
builder()
URI
getBaseUri()
Get the static base URI to use in resolving URIs handled by the Metapath processor.URI
getUriForPrefix(String prefix)
DynamicContext
newDynamicContext()
Generate a new dynamic context.static StaticContext
newInstance()
-
-
-
Method Detail
-
newInstance
@NonNull public static StaticContext newInstance()
-
builder
@NonNull public static StaticContext.Builder builder()
-
getBaseUri
@Nullable public URI getBaseUri()
Get the static base URI to use in resolving URIs handled by the Metapath processor. This URI, if provided, will be used when a document base URI is not available.- Returns:
- the base URI or
null
if not defined
-
getUriForPrefix
@Nullable public URI getUriForPrefix(@NonNull String prefix)
-
newDynamicContext
@NonNull public DynamicContext newDynamicContext()
Generate a new dynamic context.- Returns:
- the generated dynamic context
-
-