Class BaseConstraintsDescriptor
- java.lang.Object
 - 
- jetbrains.mps.smodel.runtime.base.BaseConstraintsDescriptor
 
 
- 
- All Implemented Interfaces:
 ConstraintsDescriptor
public class BaseConstraintsDescriptor extends Object implements ConstraintsDescriptor
 
- 
- 
Constructor Summary
Constructors Constructor Description BaseConstraintsDescriptor(SAbstractConcept concept) 
- 
Method Summary
 
 - 
 
- 
- 
Constructor Detail
- 
BaseConstraintsDescriptor
public BaseConstraintsDescriptor(SAbstractConcept concept)
 
 - 
 
- 
Method Detail
- 
getSpecifiedProperties
protected Map<SProperty,PropertyConstraintsDescriptor> getSpecifiedProperties()
 
- 
getSpecifiedReferences
protected Map<SReferenceLink,ReferenceConstraintsDescriptor> getSpecifiedReferences()
 
- 
calculateCanBeChildConstraint
protected ConstraintFunction<ConstraintContext_CanBeChild,Boolean> calculateCanBeChildConstraint()
 
- 
calculateCanBeRootConstraint
protected ConstraintFunction<ConstraintContext_CanBeRoot,Boolean> calculateCanBeRootConstraint()
 
- 
calculateCanBeParentConstraint
protected ConstraintFunction<ConstraintContext_CanBeParent,Boolean> calculateCanBeParentConstraint()
 
- 
calculateCanBeAncestorConstraint
protected ConstraintFunction<ConstraintContext_CanBeAncestor,Boolean> calculateCanBeAncestorConstraint()
 
- 
calculateDefaultScopeConstraint
protected ConstraintFunction<ConstraintContext_DefaultScopeProvider,ReferenceScopeProvider> calculateDefaultScopeConstraint()
 
- 
getCanBeChildConstraint
public ConstraintFunction<ConstraintContext_CanBeChild,Boolean> getCanBeChildConstraint()
 
- 
getCanBeRootConstraint
public ConstraintFunction<ConstraintContext_CanBeRoot,Boolean> getCanBeRootConstraint()
 
- 
getCanBeParentConstraint
public ConstraintFunction<ConstraintContext_CanBeParent,Boolean> getCanBeParentConstraint()
 
- 
getCanBeAncestorConstraint
public ConstraintFunction<ConstraintContext_CanBeAncestor,Boolean> getCanBeAncestorConstraint()
 
- 
getDefaultScopeConstraint
public ConstraintFunction<ConstraintContext_DefaultScopeProvider,ReferenceScopeProvider> getDefaultScopeConstraint()
 
- 
getDescriptor
protected static BaseConstraintsDescriptor getDescriptor(SAbstractConcept concept)
 
- 
hasOwnDefaultScopeProvider
@Deprecated public boolean hasOwnDefaultScopeProvider()
Deprecated. 
- 
getConcept
public SAbstractConcept getConcept()
- Specified by:
 getConceptin interfaceConstraintsDescriptor
 
- 
canBeChild
public boolean canBeChild(@NotNull ConstraintContext_CanBeChild context, @Nullable CheckingNodeContext checkingNodeContext)
- Specified by:
 canBeChildin interfaceConstraintsDescriptor
 
- 
canBeRoot
public boolean canBeRoot(@NotNull ConstraintContext_CanBeRoot context, @Nullable CheckingNodeContext checkingNodeContext)
- Specified by:
 canBeRootin interfaceConstraintsDescriptor
 
- 
canBeParent
public boolean canBeParent(@NotNull ConstraintContext_CanBeParent context, @Nullable CheckingNodeContext checkingNodeContext)
- Specified by:
 canBeParentin interfaceConstraintsDescriptor
 
- 
canBeAncestor
public boolean canBeAncestor(@NotNull ConstraintContext_CanBeAncestor context, @Nullable CheckingNodeContext checkingNodeContext)
- Specified by:
 canBeAncestorin interfaceConstraintsDescriptor
 
- 
getProperty
public PropertyConstraintsDescriptor getProperty(SProperty property)
- Specified by:
 getPropertyin interfaceConstraintsDescriptor
 
- 
getReference
public ReferenceConstraintsDescriptor getReference(SReferenceLink ref)
- Specified by:
 getReferencein interfaceConstraintsDescriptor
 
- 
getDefaultScopeProvider
public ReferenceScopeProvider getDefaultScopeProvider()
- Specified by:
 getDefaultScopeProviderin interfaceConstraintsDescriptor
 
- 
getInstanceIcon
@Nullable public IconResource getInstanceIcon(SNode node)
- Specified by:
 getInstanceIconin interfaceConstraintsDescriptor
 
- 
getDefaultConcreteConcept
public SAbstractConcept getDefaultConcreteConcept()
- Specified by:
 getDefaultConcreteConceptin interfaceConstraintsDescriptor
 
 - 
 
 -