io.sarl.api.naming.namespace
Class AbstractNamespaceService
All Superinterfaces:
NamespaceService, org.arakhne.afc.services.IService
All Known Subclasses:
FinderBasedNamespaceService
abstract class AbstractNamespaceService
extends java.lang.Object
implements NamespaceService
Abstract implementation of a service that manages name spaces into the SRE.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.naming
Since:
0.12
Property Summary
Modifier and type Property and description
IFieldAccessValidator fieldAccessValidator
INameParser nameParser
java.lang.Class<T> referenceType
Action Summary
Modifier and type Action and description
final java.lang.Object findObject(SarlName)
final T findObject(SarlName,Class<T>)
protected abstract java.lang.Object findObjectWithoutFragment(SarlName)
Find an object with the given name, but ignoring the fragment.
IFieldAccessValidator getFieldAccessValidator
INameParser getNameParser
java.lang.Class<T> getReferenceType
void setFieldAccessValidator(IFieldAccessValidator)
Change the field access validator used by this service.
void setNameParser(INameParser)
Change the name parser used by this service.
Property Details
fieldAccessValidator
var fieldAccessValidator : IFieldAccessValidator

This property is an alias for the action: getFieldAccessValidator

nameParser
var nameParser : INameParser

This property is an alias for the action: getNameParser

referenceType
val referenceType : java.lang.Class<T>

This property is an alias for the action: getReferenceType

Action Details
findObject(SarlName)
def findObject(SarlName) : java.lang.Object
findObject(SarlName,Class<T>)
def findObject(SarlName,Class<T>) : T

with T

findObjectWithoutFragment(SarlName)
protected def findObjectWithoutFragment(SarlName) : java.lang.Object
Find an object with the given name, but ignoring the fragment.
Parameters:
name - the name of the object, never null.
Returns:
the object, or null if the object was not found.
getFieldAccessValidator
def getFieldAccessValidator : IFieldAccessValidator
getNameParser
def getNameParser : INameParser
getReferenceType
def getReferenceType : java.lang.Class<T>
setFieldAccessValidator(IFieldAccessValidator)
def setFieldAccessValidator(IFieldAccessValidator)
Change the field access validator used by this service.

This function could be overloaded by sub-types in order to inject the field access validator.
Parameters:
validator - the field access validator, never null
Since:
0.12
setNameParser(INameParser)
def setNameParser(INameParser)
Change the name parser used by this service.

This function could be overloaded by sub-types in order to inject the name parser.
Parameters:
parser - the name parser, never null
Since:
0.11