Class SContainmentLinkAdapter
- java.lang.Object
 - 
- jetbrains.mps.smodel.adapter.structure.link.SContainmentLinkAdapter
 
 
- 
- All Implemented Interfaces:
 SAbstractLink,SConceptFeature,SContainmentLink,SElement,SNamedElement
- Direct Known Subclasses:
 InvalidContainmentLink,SContainmentLinkAdapterById
public abstract class SContainmentLinkAdapter extends Object implements SContainmentLink
 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedSContainmentLinkAdapter(String name) 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static SContainmentLinkAdapterdeserialize(String s)abstract LinkDescriptorgetLinkDescriptor()StringgetName()Presentation of the element for an end-user.abstract SAbstractConceptgetOwner()Retrieves concept where the feature has been declared.StringgetRole()SAbstractConceptgetTargetConcept()The concept for the nodes that this link points to.booleanisMultiple()Instance nodes can contain more than one link like this.booleanisOptional()This link may contain no elements.booleanisReference()True for references, false for containment relationships.booleanisUnordered()The order of elements contained by such links can be changed without affecting the language semantics.booleanisValid()abstract Stringserialize()StringtoString()- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SContainmentLink
getDeclarationNode, getRoleName 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SElement
getLanguage, getSourceNode 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ID_DELIM
public static final String ID_DELIM
- See Also:
 - Constant Field Values
 
 
- 
myName
protected String myName
 
 - 
 
- 
Method Detail
- 
getLinkDescriptor
@Nullable public abstract LinkDescriptor getLinkDescriptor()
 
- 
isValid
public boolean isValid()
- Specified by:
 isValidin interfaceSConceptFeature
 
- 
getName
@NotNull public String getName()
Description copied from interface:SNamedElementPresentation of the element for an end-user. Unlike identity, the name is deemed user-friendly and shall not be used for persistence.- Specified by:
 getNamein interfaceSNamedElement- Returns:
 - name of the meta element
 
 
- 
getRole
public String getRole()
- Specified by:
 getRolein interfaceSAbstractLink
 
- 
isOptional
public boolean isOptional()
Description copied from interface:SAbstractLinkThis link may contain no elements.- Specified by:
 isOptionalin interfaceSAbstractLink
 
- 
getOwner
@NotNull public abstract SAbstractConcept getOwner()
Description copied from interface:SConceptFeatureRetrieves concept where the feature has been declared. Note, this concept doesn't necessarily match concept of the node when this feature has been obtained through node's meta-model accessors, instead, the feature may originate from one of concept's ancestors.- Specified by:
 getOwnerin interfaceSConceptFeature- Returns:
 - concept this feature is declared in
 
 
- 
getTargetConcept
@NotNull public SAbstractConcept getTargetConcept()
Description copied from interface:SAbstractLinkThe concept for the nodes that this link points to.- Specified by:
 getTargetConceptin interfaceSAbstractLink
 
- 
isReference
public boolean isReference()
Description copied from interface:SAbstractLinkTrue for references, false for containment relationships.- Specified by:
 isReferencein interfaceSAbstractLink
 
- 
isMultiple
public boolean isMultiple()
Description copied from interface:SAbstractLinkInstance nodes can contain more than one link like this.- Specified by:
 isMultiplein interfaceSAbstractLink
 
- 
isUnordered
public boolean isUnordered()
Description copied from interface:SContainmentLinkThe order of elements contained by such links can be changed without affecting the language semantics. The value is undefined for singular links.- Specified by:
 isUnorderedin interfaceSContainmentLink
 
- 
serialize
public abstract String serialize()
 
- 
deserialize
public static SContainmentLinkAdapter deserialize(String s)
 
 - 
 
 -