Class SPropertyAdapterById
- java.lang.Object
 - 
- jetbrains.mps.smodel.adapter.structure.property.SPropertyAdapter
 - 
- jetbrains.mps.smodel.adapter.structure.property.SPropertyAdapterById
 
 
 
- 
- All Implemented Interfaces:
 SConceptFeature,SElement,SNamedElement,SProperty
public final class SPropertyAdapterById extends SPropertyAdapter
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringPROP_PREFIX- 
Fields inherited from class jetbrains.mps.smodel.adapter.structure.property.SPropertyAdapter
ID_DELIM, myPropertyName 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SPropertyAdapterById(SPropertyId propertyId, String propName)SPropertyAdapterById(SPropertyId propertyId, String propName, boolean bootstrap) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SPropertyAdapterByIddeserialize(String s)booleanequals(Object obj)SNodegetDeclarationNode()SPropertyIdgetId()StringgetName()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.SAbstractConceptgetOwner()Retrieves concept where the feature has been declared.PropertyDescriptorgetPropertyDescriptor()inthashCode()Stringserialize()- 
Methods inherited from class jetbrains.mps.smodel.adapter.structure.property.SPropertyAdapter
getType, isValid, 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
- 
PROP_PREFIX
public static final String PROP_PREFIX
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
SPropertyAdapterById
public SPropertyAdapterById(@NotNull SPropertyId propertyId, @NotNull String propName)
 
- 
SPropertyAdapterById
public SPropertyAdapterById(@NotNull SPropertyId propertyId, @NotNull String propName, boolean bootstrap)
- Parameters:
 bootstrap- see BOOTSTRAP META OBJECTS javadoc forBootstrapAdapterFactory
 
 - 
 
- 
Method Detail
- 
getId
@NotNull public SPropertyId 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 classSPropertyAdapter- Returns:
 - concept this feature is declared in
 
 
- 
getName
@NotNull public String getName()
Description copied from interface:SPropertyReturns 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. Although this method is identical toSNamedElement.getName(), it is left here until we find a way to migrate references to this method in MPS models fromSProperty.getNametoSConceptFeature.getName- Returns:
 - name of the meta element
 
 
- 
getPropertyDescriptor
public PropertyDescriptor getPropertyDescriptor()
- Specified by:
 getPropertyDescriptorin classSPropertyAdapter
 
- 
getDeclarationNode
public SNode getDeclarationNode()
 
- 
serialize
public String serialize()
- Specified by:
 serializein classSPropertyAdapter
 
- 
deserialize
public static SPropertyAdapterById deserialize(String s)
 
 - 
 
 -