Class SContainmentLinkAdapterById
- java.lang.Object
 - 
- jetbrains.mps.smodel.adapter.structure.link.SContainmentLinkAdapter
 - 
- jetbrains.mps.smodel.adapter.structure.link.SContainmentLinkAdapterById
 
 
 
- 
- All Implemented Interfaces:
 SAbstractLink,SConceptFeature,SContainmentLink,SElement,SNamedElement
public final class SContainmentLinkAdapterById extends SContainmentLinkAdapter
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringLINK_PREFIX- 
Fields inherited from class jetbrains.mps.smodel.adapter.structure.link.SContainmentLinkAdapter
ID_DELIM, myName 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SContainmentLinkAdapterById(SContainmentLinkId roleId, String name)SContainmentLinkAdapterById(SContainmentLinkId roleId, String name, boolean bootstrap) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SContainmentLinkAdapterByIddeserialize(String s)booleanequals(Object obj)SNodegetDeclarationNode()SContainmentLinkIdgetId()LinkDescriptorgetLinkDescriptor()SAbstractConceptgetOwner()Retrieves concept where the feature has been declared.StringgetRoleName()Returns a name of this property Though in 3.2 the name is still used as id in some cases, it should be treated only as a user-friendly text representation.inthashCode()Stringserialize()- 
Methods inherited from class jetbrains.mps.smodel.adapter.structure.link.SContainmentLinkAdapter
getName, getRole, getTargetConcept, isMultiple, isOptional, isReference, isUnordered, isValid, toString 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SElement
getLanguage, getSourceNode 
 - 
 
 - 
 
- 
- 
Field Detail
- 
LINK_PREFIX
public static final String LINK_PREFIX
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
SContainmentLinkAdapterById
public SContainmentLinkAdapterById(@NotNull SContainmentLinkId roleId, @NotNull String name)
 
- 
SContainmentLinkAdapterById
public SContainmentLinkAdapterById(@NotNull SContainmentLinkId roleId, @NotNull String name, boolean bootstrap)
- Parameters:
 bootstrap- see BOOTSTRAP META OBJECTS javadoc forBootstrapAdapterFactory
 
 - 
 
- 
Method Detail
- 
getId
@NotNull public SContainmentLinkId getId()
 
- 
getOwner
@NotNull public 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- Specified by:
 getOwnerin classSContainmentLinkAdapter- Returns:
 - concept this feature is declared in
 
 
- 
getRoleName
public String getRoleName()
Description copied from interface:SContainmentLinkReturns a name of this property Though in 3.2 the name is still used as id in some cases, it should be treated only as a user-friendly text representation. 
- 
getLinkDescriptor
@Nullable public LinkDescriptor getLinkDescriptor()
- Specified by:
 getLinkDescriptorin classSContainmentLinkAdapter
 
- 
getDeclarationNode
public SNode getDeclarationNode()
 
- 
serialize
public String serialize()
- Specified by:
 serializein classSContainmentLinkAdapter
 
- 
deserialize
public static SContainmentLinkAdapterById deserialize(String s)
 
 - 
 
 -