Class SPropertyAdapter
- java.lang.Object
 - 
- jetbrains.mps.smodel.adapter.structure.property.SPropertyAdapter
 
 
- 
- All Implemented Interfaces:
 SConceptFeature,SElement,SNamedElement,SProperty
- Direct Known Subclasses:
 InvalidProperty,SPropertyAdapterById
public abstract class SPropertyAdapter extends Object implements SProperty
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringID_DELIMprotected StringmyPropertyName 
- 
Constructor Summary
Constructors Constructor Description SPropertyAdapter(String name) 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static SPropertyAdapterdeserialize(String s)abstract SAbstractConceptgetOwner()Retrieves concept where the feature has been declared.abstract PropertyDescriptorgetPropertyDescriptor()SDataTypegetType()booleanisValid()booleanisValid(String string)Will be used to check validity of potential values.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.SElement
getLanguage, getSourceNode 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SProperty
getDeclarationNode, getName 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ID_DELIM
public static final String ID_DELIM
- See Also:
 - Constant Field Values
 
 
- 
myPropertyName
protected String myPropertyName
 
 - 
 
- 
Constructor Detail
- 
SPropertyAdapter
public SPropertyAdapter(String name)
 
 - 
 
- 
Method Detail
- 
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
 
 
- 
getPropertyDescriptor
@Nullable public abstract PropertyDescriptor getPropertyDescriptor()
 
- 
isValid
public boolean isValid()
- Specified by:
 isValidin interfaceSConceptFeature
 
- 
isValid
public boolean isValid(String string)
Description copied from interface:SPropertyWill be used to check validity of potential values. 
- 
serialize
public abstract String serialize()
 
- 
deserialize
public static SPropertyAdapter deserialize(String s)
 
 - 
 
 -