io.sarl.api.naming.namespace
Interface NamespaceService
All Superinterfaces:
org.arakhne.afc.services.IService
All Known Implementing Classes:
AbstractNamespaceService, FinderBasedNamespaceService, InjectedFinderBasedNamespaceService
interface NamespaceService
implements org.arakhne.afc.services.IService
This service enables to manage the name spaces into the SRE.

Each object within the SRE may be identified by a name, stored into an SarlName.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.naming
Since:
0.12
Property Summary
Modifier and type Property and description
IFieldAccessValidator fieldAccessValidator
Replies the validator for the access to the fields that is used by this service.
INameParser nameParser
Replies the name parser that is used by this service.
Action Summary
Modifier and type Action and description
abstract java.lang.Object findObject(SarlName)
Finds and replies the object with the given name and of the given type.
default java.lang.Object findObject(String)
Finds and replies the object with the given name and of the given type.
default java.lang.Object findObject(URI)
Finds and replies the object with the given name and of the given type.
abstract T findObject(SarlName,Class<T>)
Finds and replies the object with the given name and of the given type.
default T findObject(String,Class<T>)
Finds and replies the object with the given name and of the given type.
default T findObject(URI,Class<T>)
Finds and replies the object with the given name and of the given type.
abstract IFieldAccessValidator getFieldAccessValidator
Replies the validator for the access to the fields that is used by this service.
abstract INameParser getNameParser
Replies the name parser that is used by this service.
Property Details
fieldAccessValidator
val fieldAccessValidator : IFieldAccessValidator
Replies the validator for the access to the fields that is used by this service.

This property is an alias for the action: getFieldAccessValidator

Returns:
The field access validator.
Since:
0.12
nameParser
val nameParser : INameParser
Replies the name parser that is used by this service.

This property is an alias for the action: getNameParser

Returns:
The name parser
Since:
0.11
Action Details
findObject(SarlName)
def findObject(SarlName) : java.lang.Object
Finds and replies the object with the given name and of the given type.
Parameters:
name - the name of the object. See the documentation of NamespaceService for details.
Returns:
the object with the given name. A null value is replied if the object is not found.
findObject(String)
def findObject(String) : java.lang.Object
Finds and replies the object with the given name and of the given type.
Parameters:
name - the name of the object. See the documentation of NamespaceService for details.
Returns:
the object with the given name. A null value is replied if the object is not found.
Since:
0.11
findObject(URI)
def findObject(URI) : java.lang.Object
Finds and replies the object with the given name and of the given type.
Parameters:
name - the name of the object. See the documentation of NamespaceService for details.
Returns:
the object with the given name. A null value is replied if the object is not found.
Since:
0.12
findObject(SarlName,Class<T>)
def findObject(SarlName,Class<T>) : T

with T

Finds and replies the object with the given name and of the given type.
Parameters:
name - the name of the object. See the documentation of NamespaceService for details.
Returns:
the root context. A null value is replied if the object is not found.
findObject(String,Class<T>)
def findObject(String,Class<T>) : T

with T

Finds and replies the object with the given name and of the given type.
Parameters:
name - the name of the object. See the documentation of NamespaceService for details.
Returns:
the root context. A null value is replied if the object is not found.
Since:
0.11
findObject(URI,Class<T>)
def findObject(URI,Class<T>) : T

with T

Finds and replies the object with the given name and of the given type.
Parameters:
name - the name of the object. See the documentation of NamespaceService for details.
Returns:
the root context. A null value is replied if the object is not found.
Since:
0.12
getFieldAccessValidator
def getFieldAccessValidator : IFieldAccessValidator
Replies the validator for the access to the fields that is used by this service.
Returns:
The field access validator.
Since:
0.12
getNameParser
def getNameParser : INameParser
Replies the name parser that is used by this service.
Returns:
The name parser
Since:
0.11