public class BlueprintsURI extends PersistenceURI
PersistenceURI
that creates Blueprints specific resource URI
s from a File
descriptor or an existing URI
.
The class defines a Blueprints specific URI
scheme that is used to register BlueprintsPersistenceBackendFactory
in PersistenceBackendFactoryRegistry
and configure the protocol
to factory
map of an existing ResourceSet
with a PersistentResourceFactory
.
URI.Fragment, URI.Hierarchical, URI.Opaque, URI.URIPool
Modifier and Type | Field and Description |
---|---|
static String |
SCHEME
The scheme associated to the URI.
|
FILE_SCHEME
ALPHA_HI, ALPHA_LO, ALPHANUM_HI, ALPHANUM_LO, ARCHIVE_IDENTIFIER, ARCHIVE_SCHEMES, ARCHIVE_SEPARATOR, AUTHORITY_SEPARATOR, AUTHORITY_SEPARATOR_HASH_CODE, DEBUG, DEVICE_IDENTIFIER, DIGIT_HI, DIGIT_LO, ENCODE_PLATFORM_RESOURCE_URIS, ESCAPE, FILE_EXTENSION_SEPARATOR, FRAGMENT_FIRST_SEPARATOR, FRAGMENT_LAST_SEPARATOR, FRAGMENT_NONE, FRAGMENT_SEPARATOR, hashCode, HEX_DIGITS, HEX_HI, HEX_LO, MAJOR_SEPARATOR_HI, MAJOR_SEPARATOR_LO, NO_SEGMENTS, ONE_EMPTY_SEGMENT, ONE_SELF_SEGMENT, PATH_CHAR_HI, PATH_CHAR_LO, PLATFORM_SEGMENT_RESERVED_HI, PLATFORM_SEGMENT_RESERVED_LO, POOL, PORT_SEPARATOR, QUERY_SEPARATOR, RESERVED_HI, RESERVED_LO, SCHEME_ARCHIVE, SCHEME_ARCHIVE_HASH_CODE, SCHEME_FILE, SCHEME_FILE_HASH_CODE, SCHEME_HTTP, SCHEME_HTTP_HASH_CODE, SCHEME_JAR, SCHEME_JAR_HASH_CODE, SCHEME_PLATFORM, SCHEME_PLATFORM_HASH_CODE, SCHEME_SEPARATOR, SCHEME_ZIP, SCHEME_ZIP_HASH_CODE, SEGMENT_CHAR_HI, SEGMENT_CHAR_LO, SEGMENT_EMPTY, SEGMENT_END_HI, SEGMENT_END_LO, SEGMENT_PARENT, SEGMENT_PLUGIN, SEGMENT_RESOURCE, SEGMENT_SELF, SEGMENT_SEPARATOR, UNRESERVED_HI, UNRESERVED_LO, URIC_HI, URIC_LO, USER_INFO_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
BlueprintsURI(URI internalURI)
Constructs a new
BlueprintsURI from the given internalURI . |
Modifier and Type | Method and Description |
---|---|
static URI |
createFileURI(File file)
Creates a new
BlueprintsURI from the given File descriptor. |
static URI |
createFileURI(URI uri)
Creates a new
BlueprintsURI from the given uri by checking the referenced file exists on the file
system. |
static URI |
createURI(URI uri)
Creates a new
BlueprintsURI from the given uri . |
appendFileExtension, appendFragment, appendQuery, appendSegment, appendSegments, authority, createFileURI, createFileURI, deresolve, deresolve, device, devicePath, fileExtension, fragment, hasAbsolutePath, hasAuthority, hasDevice, hasEmptyPath, hasFragment, hashCode, hasOpaquePart, hasPath, hasQuery, hasRelativePath, hasTrailingPathSeparator, host, isArchive, isCurrentDocumentReference, isEmpty, isFile, isHierarchical, isPlatform, isPlatformPlugin, isPlatformResource, isPrefix, isRelative, lastSegment, opaquePart, path, port, query, replacePrefix, resolve, resolve, scheme, segment, segmentCount, segments, segmentsList, toFileString, toPlatformString, toString, trimFileExtension, trimFragment, trimQuery, trimSegments, userInfo
appendEscaped, cacheString, collapseSegments, contains, createDeviceURI, createFileURI, createGenericURI, createHierarchicalURI, createHierarchicalURI, createHierarchicalURI, createPlatformPluginURI, createPlatformResourceURI, createPlatformResourceURI, createURI, createURI, createURI, createURIWithCache, decode, encode, encodeAuthority, encodeFragment, encodeOpaquePart, encodeQuery, encodeSegment, encodeURI, equals, firstInvalidSegment, flushCachedString, getCachedString, hasDeviceOrPath, highBitmask, highBitmask, highBitmask, isArchiveScheme, isBase, isEscaped, lowBitmask, lowBitmask, lowBitmask, matches, matches, matches, matches, rawAppendFragment, rawSegments, segmentsEqual, splitInternFragment, unescape, validArchiveAuthority, validateURI, validAuthority, validDevice, validFragment, validJarAuthority, validOpaquePart, validQuery, validScheme, validSegment, validSegments, valueOf
@Nonnull public static final String SCHEME
BlueprintsPersistenceBackendFactory
and provide a PersistentResourceFactory
to an existing ResourceSet
.protected BlueprintsURI(URI internalURI)
BlueprintsURI
from the given internalURI
.
This constructor is protected to avoid wrong URI
instantiations. Use createURI(URI)
,
createFileURI(File)
, or createFileURI(URI)
instead.
internalURI
- the base URI
@Nonnull public static URI createURI(@Nonnull URI uri)
BlueprintsURI
from the given uri
. This method checks that the
scheme of the provided uri
can be used to create a new BlueprintsURI
.uri
- the base URI
URI
NullPointerException
- if the uri
is null
IllegalArgumentException
- if the scheme of the provided uri
is not SCHEME
or PersistenceURI.FILE_SCHEME
createFileURI(File)
,
createFileURI(URI)
@Nonnull public static URI createFileURI(@Nonnull File file)
BlueprintsURI
from the given File
descriptor.file
- the File
to build a URI
fromURI
NullPointerException
- if the file
is null
or if it cannot be found@Nonnull public static URI createFileURI(@Nonnull URI uri)
BlueprintsURI
from the given uri
by checking the referenced file exists on the file
system.uri
- the base URI
URI
NullPointerException
- if the uri
is null
or if the file referenced by the uri
cannot be foundCopyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.