Esempio n. 1
0
 @NotNull
 public static Scope getScope(
     @NotNull SNode enclosingNode,
     @Nullable String role,
     int index,
     @NotNull SNode smartConcept,
     IOperationContext context) {
   return ModelConstraints.getSmartReferenceDescriptor(enclosingNode, role, index, smartConcept)
       .getScope();
 }
Esempio n. 2
0
 @Nullable
 public static ReferenceDescriptor getSmartReferenceDescriptor(
     @NotNull SNode enclosingNode,
     @Nullable String role,
     int index,
     @Nullable SNode smartConcept) {
   if (smartConcept == null) {
     return null;
   }
   return new ReferenceDescriptor(
       ModelConstraints.getSmartReferenceDescriptor(enclosingNode, role, index, smartConcept));
 }
Esempio n. 3
0
 @NotNull
 public static Scope getScope(@NotNull SReference reference, IOperationContext context) {
   return ModelConstraints.getScope(reference);
 }
Esempio n. 4
0
 @NotNull
 public static ReferenceDescriptor getReferenceDescriptor(
     @NotNull SNode enclosingNode, @NotNull String role, int index) {
   return new ReferenceDescriptor(ModelConstraints.getReferenceDescriptor(enclosingNode, role));
 }
Esempio n. 5
0
 @NotNull
 public static ReferenceDescriptor getReferenceDescriptor(@NotNull SReference reference) {
   return new ReferenceDescriptor(ModelConstraints.getReferenceDescriptor(reference));
 }