io.sarl.api.naming.name
Class ScopedDataName
All Superinterfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<T>
@org.eclipse.xtext.xbase.lib.XbaseGenerated
class ScopedDataName
extends SarlName
This class represents a name for a data defined in a scope.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.naming
Since:
0.15
Property Summary
Modifier and type Property and description
java.lang.String name
Replies the name of the data.
java.lang.String scope
Replies the scope of the data.
Field Summary
Modifier and type Field and description
public static val java.lang.String SCHEME
Scheme for services.
Constructor Summary
Constructor and description
new(String*)
Constructor.
new(URI)
Constructor.
Action Summary
Modifier and type Action and description
static java.net.URI buildURI(String*)
Build a valid URI for the scoped data name.
java.lang.String getName
Replies the name of the data.
java.lang.String getScope
Replies the scope of the data.
Property Details
name
val name : java.lang.String
Replies the name of the data. The name of the data is the last segment of the URI of this SarlName.

This property is an alias for the action: getName

Returns:
the name of the knowledge.
scope
val scope : java.lang.String
Replies the scope of the data. The scope of the data is the segments, excluding the last segment, of the URI of this SarlName.

This property is an alias for the action: getScope

Returns:
the scope of the knowledge.
Field Details
SCHEME
public static val SCHEME : java.lang.String = "data"
Scheme for services.
Constructor Details
new(String*)
new(String*)
Constructor.
Parameters:
elements - the names that are composing the scoped data name.
new(URI)
new(URI)
Constructor.
Parameters:
uri - the uri of the context.
Action Details
buildURI(String*)
def buildURI(String*) : java.net.URI
Build a valid URI for the scoped data name.
Parameters:
elements - the names that are composing the scoped data name.
Returns:
the valid URI.
getName
def getName : java.lang.String
Replies the name of the data. The name of the data is the last segment of the URI of this SarlName.
Returns:
the name of the knowledge.
getScope
def getScope : java.lang.String
Replies the scope of the data. The scope of the data is the segments, excluding the last segment, of the URI of this SarlName.
Returns:
the scope of the knowledge.