io.sarl.api.naming.parser
Class UriBasedNameParser
All Superinterfaces:
INameParser
All Known Subclasses:
InjectedNameParser
class UriBasedNameParser
extends java.lang.Object
implements INameParser
Default implementation of a parser of names that is accepting URI-based syntax.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.naming
Since:
0.12
Property Summary
Modifier and type Property and description
java.util.Set<E> supportedSchemes
Constructor Summary
Constructor and description
new([Set<E>])
Construct a name parser based on the given scheme parsers.
Action Summary
Modifier and type Action and description
void addSchemeNameParser(ISchemeNameParser<N>)
SarlName decode(URI)
java.util.Set<E> getSupportedSchemes
java.net.URI normalize(URI)
ISchemeNameParser<N> removeSchemeNameParser(String)
void setSchemeNameParsers(Set<E>)
Change the set of scheme name parsers that is used by this base name parser.
Inherited: decode(String)
Property Details
supportedSchemes
val supportedSchemes : java.util.Set<E>

This property is an alias for the action: getSupportedSchemes

Constructor Details
new([Set<E>])
new([Set<E>])
Construct a name parser based on the given scheme parsers.
Parameters:
parsers - the set of scheme name parsers.
Action Details
addSchemeNameParser(ISchemeNameParser<N>)
def addSchemeNameParser(ISchemeNameParser<N>)
decode(URI)
def decode(URI) : SarlName
getSupportedSchemes
def getSupportedSchemes : java.util.Set<E>
normalize(URI)
def normalize(URI) : java.net.URI
removeSchemeNameParser(String)
def removeSchemeNameParser(String) : ISchemeNameParser<N>
setSchemeNameParsers(Set<E>)
def setSchemeNameParsers(Set<E>)
Change the set of scheme name parsers that is used by this base name parser.

This function could be overridden and annotated in subtypes in order to be used by the Guice injector.
Parameters:
parsers - the set of scheme name parsers.