java.lang.Object
org.apache.jena.irix.IRIxResolver
A resolver is a base IRI and a policy for resolution. The policy choices are
- whether to resolve against the base, or only consider the IRI being processed
- whether to allow relative IRIs after resolving
The normal behaviour is to resolve URIs and not allow relative IRIs.
A setup with "don't resolve" and "allow relative URIs" passes URIs through untouched, although a parser may issue a warning.
The base may be null to support passing around a resolver that accepts/reject
IRIs. For application to check IRIs, use IRIs.check(java.lang.String)
/IRIs.checkEx(java.lang.String)
directly.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IRIxResolver.Builder
create()
static IRIxResolver.Builder
Create a builder for aIRIxResolver
with the base URI which is resolved against the current system default base.static IRIxResolver.Builder
Create a builder for aIRIxResolver
with the base URI which is resolved against the current system default base.static IRIxResolver.Builder
create
(IRIxResolver original) Create aIRIxResolver
with the base URI which is resolved against the current system default base.getBase()
Return the base of this resolverReturn the base of this resolver as a stringCreate a new resolver with the same policies as the old one but with a different base URI.Resolve the argument URI string according to resolver policytoString()
-
Method Details
-
getBase
Return the base of this resolver -
getBaseURI
Return the base of this resolver as a string -
resolve
Resolve the argument URI string according to resolver policy -
resetBase
Create a new resolver with the same policies as the old one but with a different base URI. -
toString
-
create
-
create
Create aIRIxResolver
with the base URI which is resolved against the current system default base. -
create
Create a builder for aIRIxResolver
with the base URI which is resolved against the current system default base. -
create
Create a builder for aIRIxResolver
with the base URI which is resolved against the current system default base.
-