Package tech.oxfordsemantic.jrdfox
Class Prefixes
java.lang.Object
tech.oxfordsemantic.jrdfox.Prefixes
- All Implemented Interfaces:
java.io.Serializable
public class Prefixes
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Prefixes.DeclareResult
static class
Prefixes.DecodeResult
static class
Prefixes.PrefixData
-
Field Summary
Fields Modifier and Type Field Description static Prefixes
s_defaultPrefixes
static Prefixes
s_emptyPrefixes
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static void
appendEscapedIRI(java.lang.CharSequence iri, int startIndex, int length, java.lang.StringBuilder escapedIRI)
static void
appendUnescapedIRI(java.lang.CharSequence iri, int startIndex, int length, java.lang.StringBuilder unescapedIRI)
void
clear()
Prefixes.DeclareResult
declarePrefix(java.lang.String prefixName, java.lang.String prefixIRI)
void
declareStandardPrefixes()
java.lang.String
decodeIRI(java.lang.CharSequence encodedIRI)
Prefixes.DecodeResult
decodeIRI(java.lang.CharSequence encodedIRI, java.lang.StringBuilder decodedIRI)
Prefixes.DecodeResult
decodeIRI(java.lang.CharSequence encodedIRI, java.util.function.Consumer<java.lang.String> decodedIRI)
java.lang.String
encodeIRI(java.lang.CharSequence decodedIRI)
boolean
encodeIRI(java.lang.CharSequence decodedIRI, java.lang.StringBuilder encodedIRI)
boolean
encodeIRI(java.lang.CharSequence decodedIRI, java.util.function.Consumer<java.lang.String> encodedIRI)
java.util.Map<java.lang.String,Prefixes.PrefixData>
getPrefixIRIsByPrefixName()
static boolean
isValidPrefixName(java.lang.CharSequence prefixName)
boolean
prefixExists(java.lang.String prefixName)
boolean
undeclarePrefix(java.lang.String prefixName)
-
Field Details
-
Constructor Details
-
Method Details
-
decodeIRI
public Prefixes.DecodeResult decodeIRI(java.lang.CharSequence encodedIRI, java.lang.StringBuilder decodedIRI) -
decodeIRI
public Prefixes.DecodeResult decodeIRI(java.lang.CharSequence encodedIRI, java.util.function.Consumer<java.lang.String> decodedIRI) -
decodeIRI
public java.lang.String decodeIRI(java.lang.CharSequence encodedIRI) -
encodeIRI
public boolean encodeIRI(java.lang.CharSequence decodedIRI, java.lang.StringBuilder encodedIRI) -
encodeIRI
public boolean encodeIRI(java.lang.CharSequence decodedIRI, java.util.function.Consumer<java.lang.String> encodedIRI) -
encodeIRI
public java.lang.String encodeIRI(java.lang.CharSequence decodedIRI) -
prefixExists
public boolean prefixExists(java.lang.String prefixName) -
declarePrefix
public Prefixes.DeclareResult declarePrefix(java.lang.String prefixName, java.lang.String prefixIRI) -
declareStandardPrefixes
public void declareStandardPrefixes() -
undeclarePrefix
public boolean undeclarePrefix(java.lang.String prefixName) -
clear
public void clear() -
getPrefixIRIsByPrefixName
-
isValidPrefixName
public static boolean isValidPrefixName(java.lang.CharSequence prefixName) -
appendUnescapedIRI
public static void appendUnescapedIRI(java.lang.CharSequence iri, int startIndex, int length, java.lang.StringBuilder unescapedIRI) -
appendEscapedIRI
public static void appendEscapedIRI(java.lang.CharSequence iri, int startIndex, int length, java.lang.StringBuilder escapedIRI)
-