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.URIgetParentObjectUri(String dependentObjectFqn, String projectName) Gets the parent object URI using the provided matching dependent object URI.org.eclipse.emf.common.util.URIgetParentObjectUri(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:INamingServiceProviderGets dependent object FQN in a form of a string representation- Specified by:
getDependentObjectFqnAsStringin interfaceINamingServiceProvider- Parameters:
parentObjectUri- The parent object URI. May not benulltargetEClass- TargetEClassof a required dependent object. May not benull- Returns:
- The textual representation of an FQN if applocable.
nullotherwise
-
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:INamingServiceProviderMatcher for aINamingServiceProvider.getDependentObjectFqnAsString(URI, EClass)operation. Matches bothEClassof a dependent object and parent objectURI- Specified by:
getDependentObjectNameByUriMatcherin 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:INamingServiceProviderGets 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:
getParentObjectUriin interfaceINamingServiceProviderprojectName- The name of a target project. May not benull- Returns:
- The parent object URI if any.
nullotherwise
-
getParentObjectUriAsString
Description copied from interface:INamingServiceProviderGets 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:
getParentObjectUriAsStringin 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:INamingServiceProviderGets 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:
getParentObjectUriin interfaceINamingServiceProvider- Parameters:
dependentObjectUri- Dependent object URI (with project information within the URI). May not benull- Returns:
- The parent object URI if any.
nullotherwise
-
getParentObjectUriByDependentUriMatcher
- Specified by:
getParentObjectUriByDependentUriMatcherin interfaceINamingServiceProvider
-
getProjectPath
Description copied from interface:INamingServiceProviderGets universal relative project path from the provided URI. Optionally adds fragment to the result path using '#' delimeter- Specified by:
getProjectPathin interfaceINamingServiceProvider- Parameters:
sourceUri- Source URI. Supports resource, plugin and BM schemes. May not benullincludeFragment- Include fragment of a given URI into the result- Returns:
- The textual representation of a path. May be
null
-
getProjectPath
Description copied from interface:INamingServiceProviderGets universal relative project path from the provided URI. Optionally adds fragment to the result path using '#' delimeter- Specified by:
getProjectPathin interfaceINamingServiceProvider- Parameters:
sourceUri- Source URI in form of a string. Supports resource, plugin and BM schemes. May not benullincludeFragment- Include fragment of a given URI into the result- Returns:
- The textual representation of a path. May be
null
-
getProjectPathFromStringMatcher
Description copied from interface:INamingServiceProviderA matcher for aINamingServiceProvider.getProjectPath(String, boolean)operation. Matches provided URIs- Specified by:
getProjectPathFromStringMatcherin interfaceINamingServiceProvider- Returns:
- A matcher. May be
null
-
getProjectPathFromUriMatcher
Description copied from interface:INamingServiceProviderA matcher for aINamingServiceProvider.getProjectPath(URI, boolean)operation. Matches provided URIs- Specified by:
getProjectPathFromUriMatcherin interfaceINamingServiceProvider- Returns:
- A matcher. May be
null
-
getParentObjectUriMatcher
- Specified by:
getParentObjectUriMatcherin interfaceINamingServiceProvider
-