Package org.apache.jena.irix
Class IRIxResolver
- java.lang.Object
-
- org.apache.jena.irix.IRIxResolver
-
public class IRIxResolver extends java.lang.Object
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, and whether to allow relative IRIs or to enforce that "base resolve IRI" is an acceptable IRI for use in RDF (the test isIRIx.isReference()
).Normal use is to resolve and not allow relative IRIs.
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
Nested Classes Modifier and Type Class Description static class
IRIxResolver.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IRIxResolver.Builder
create()
static IRIxResolver.Builder
create(java.lang.String baseStr)
Create a builder for aIRIxResolver
with the base URI which is resolved against the current system default base.static IRIxResolver.Builder
create(IRIx baseIRI)
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.IRIx
getBase()
Return the base of this resolverjava.lang.String
getBaseURI()
Return the base of this resolver as a stringIRIxResolver
resetBase(IRIx newBase)
Create a new resolver with the same policies as the old one.IRIx
resolve(java.lang.String other)
Resolve the argument URI string according to resolver policyjava.lang.String
toString()
-
-
-
Method Detail
-
getBase
public IRIx getBase()
Return the base of this resolver
-
getBaseURI
public java.lang.String getBaseURI()
Return the base of this resolver as a string
-
resolve
public IRIx resolve(java.lang.String other)
Resolve the argument URI string according to resolver policy
-
resetBase
public IRIxResolver resetBase(IRIx newBase)
Create a new resolver with the same policies as the old one.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
create
public static IRIxResolver.Builder create()
-
create
public static IRIxResolver.Builder create(IRIxResolver original)
Create aIRIxResolver
with the base URI which is resolved against the current system default base.
-
create
public static IRIxResolver.Builder create(IRIx baseIRI)
Create a builder for aIRIxResolver
with the base URI which is resolved against the current system default base.
-
create
public static IRIxResolver.Builder create(java.lang.String baseStr)
Create a builder for aIRIxResolver
with the base URI which is resolved against the current system default base.
-
-