Class BslNamingServiceProvider
java.lang.Object
com._1c.g5.v8.dt.internal.bsl.naming.BslNamingServiceProvider
- All Implemented Interfaces:
INamingServiceProvider
Implementation of
INamingServiceProvider
which supplies naming data for BSL subsystem (modules, indexes, etc)-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.g5.dt.core.api.naming.INamingServiceProvider
INamingServiceProvider.ProviderMatcher<S,
D> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDependentObjectFqnAsString
(org.eclipse.emf.common.util.URI parentObjectUri, org.eclipse.emf.ecore.EClass targetEClass) Gets dependent object FQN in a form of a string representationINamingServiceProvider.ProviderMatcher<Collection<org.eclipse.emf.ecore.EClass>,
BiPredicate<org.eclipse.emf.ecore.EClass, org.eclipse.emf.common.util.URI>> Matcher for aINamingServiceProvider.getDependentObjectFqnAsString(URI, EClass)
operation.org.eclipse.emf.common.util.URI
getParentObjectUri
(String dependentObjectFqn, String projectName) Gets the parent object URI using the provided matching dependent object URI.org.eclipse.emf.common.util.URI
getParentObjectUri
(org.eclipse.emf.common.util.URI dependentObjectUri) Gets the parent object URI using the provided matching dependent object URI.getParentObjectUriAsString
(org.eclipse.emf.common.util.URI dependentObjectUri) Gets the parent object URI (in form of string) using the provided matching dependent object URI.Predicate<org.eclipse.emf.common.util.URI>
getProjectPath
(String sourceUri, boolean includeFragment) Gets universal relative project path from the provided URI.getProjectPath
(org.eclipse.emf.common.util.URI sourceUri, boolean includeFragment) Gets universal relative project path from the provided URI.A matcher for aINamingServiceProvider.getProjectPath(String, boolean)
operation.Predicate<org.eclipse.emf.common.util.URI>
A matcher for aINamingServiceProvider.getProjectPath(URI, boolean)
operation.
-
Constructor Details
-
BslNamingServiceProvider
public BslNamingServiceProvider()
-
-
Method Details
-
getDependentObjectFqnAsString
public String getDependentObjectFqnAsString(org.eclipse.emf.common.util.URI parentObjectUri, org.eclipse.emf.ecore.EClass targetEClass) Description copied from interface:INamingServiceProvider
Gets dependent object FQN in a form of a string representation- Specified by:
getDependentObjectFqnAsString
in interfaceINamingServiceProvider
- Parameters:
parentObjectUri
- The parent object URI. May not benull
targetEClass
- TargetEClass
of a required dependent object. May not benull
- Returns:
- The textual representation of an FQN if applocable.
null
otherwise
-
getDependentObjectNameByUriMatcher
public INamingServiceProvider.ProviderMatcher<Collection<org.eclipse.emf.ecore.EClass>,BiPredicate<org.eclipse.emf.ecore.EClass, getDependentObjectNameByUriMatcher()org.eclipse.emf.common.util.URI>> Description copied from interface:INamingServiceProvider
Matcher for aINamingServiceProvider.getDependentObjectFqnAsString(URI, EClass)
operation. Matches bothEClass
of a dependent object and parent objectURI
- Specified by:
getDependentObjectNameByUriMatcher
in interfaceINamingServiceProvider
- Returns:
- The matcher set. May be
null
-
getParentObjectUri
public org.eclipse.emf.common.util.URI getParentObjectUri(String dependentObjectFqn, String projectName) Description copied from interface:INamingServiceProvider
Gets the parent object URI using the provided matching dependent object URI. The matching should be always one to one (a single dependent object may not have multiple parents)- Specified by:
getParentObjectUri
in interfaceINamingServiceProvider
projectName
- The name of a target project. May not benull
- Returns:
- The parent object URI if any.
null
otherwise
-
getParentObjectUriAsString
Description copied from interface:INamingServiceProvider
Gets the parent object URI (in form of string) using the provided matching dependent object URI. The matching should be always one to one (a single dependent object may not have multiple parents)- Specified by:
getParentObjectUriAsString
in interfaceINamingServiceProvider
- Parameters:
dependentObjectUri
- The dependent object URI. May not benull
- Returns:
- The textual representation of a parent object URI. May be
null
-
getParentObjectUri
public org.eclipse.emf.common.util.URI getParentObjectUri(org.eclipse.emf.common.util.URI dependentObjectUri) Description copied from interface:INamingServiceProvider
Gets the parent object URI using the provided matching dependent object URI. The matching should be always one to one (a single dependent object may not have multiple parents)- Specified by:
getParentObjectUri
in interfaceINamingServiceProvider
- Parameters:
dependentObjectUri
- Dependent object URI (with project information within the URI). May not benull
- Returns:
- The parent object URI if any.
null
otherwise
-
getParentObjectUriByDependentUriMatcher
- Specified by:
getParentObjectUriByDependentUriMatcher
in interfaceINamingServiceProvider
-
getProjectPath
Description copied from interface:INamingServiceProvider
Gets universal relative project path from the provided URI. Optionally adds fragment to the result path using '#' delimeter- Specified by:
getProjectPath
in interfaceINamingServiceProvider
- Parameters:
sourceUri
- Source URI. Supports resource, plugin and BM schemes. May not benull
includeFragment
- Include fragment of a given URI into the result- Returns:
- The textual representation of a path. May be
null
-
getProjectPath
Description copied from interface:INamingServiceProvider
Gets universal relative project path from the provided URI. Optionally adds fragment to the result path using '#' delimeter- Specified by:
getProjectPath
in interfaceINamingServiceProvider
- Parameters:
sourceUri
- Source URI in form of a string. Supports resource, plugin and BM schemes. May not benull
includeFragment
- Include fragment of a given URI into the result- Returns:
- The textual representation of a path. May be
null
-
getProjectPathFromStringMatcher
Description copied from interface:INamingServiceProvider
A matcher for aINamingServiceProvider.getProjectPath(String, boolean)
operation. Matches provided URIs- Specified by:
getProjectPathFromStringMatcher
in interfaceINamingServiceProvider
- Returns:
- A matcher. May be
null
-
getProjectPathFromUriMatcher
Description copied from interface:INamingServiceProvider
A matcher for aINamingServiceProvider.getProjectPath(URI, boolean)
operation. Matches provided URIs- Specified by:
getProjectPathFromUriMatcher
in interfaceINamingServiceProvider
- Returns:
- A matcher. May be
null
-
getParentObjectUriMatcher
- Specified by:
getParentObjectUriMatcher
in interfaceINamingServiceProvider
-