Class ModelPersistence9
- java.lang.Object
 - 
- jetbrains.mps.smodel.persistence.def.v9.ModelPersistence9
 
 
- 
- All Implemented Interfaces:
 XMLPersistence,IModelPersistence
public class ModelPersistence9 extends Object implements IModelPersistence, XMLPersistence
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface jetbrains.mps.persistence.xml.XMLPersistence
XMLPersistence.Indexer 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static StringCONCEPT_IDstatic StringDEVKITstatic StringENGAGE_LANGUAGEstatic StringFILE_CONTENTstatic StringFLAGSstatic StringIDstatic StringIMPLICITstatic StringIMPORTstatic StringIMPORTSstatic StringINDEXstatic StringLANGUAGESstatic StringMODELstatic StringMODEL_ATTRIBUTEstatic StringMODEL_PERSISTENCEstatic StringNAMEstatic StringNODEstatic StringNODE_PROPERTYstatic StringNODE_REFERENCEstatic StringREFstatic StringREGISTRYstatic StringREGISTRY_AGGREGATIONstatic StringREGISTRY_ASSOCIATIONstatic StringREGISTRY_CONCEPTstatic StringREGISTRY_LANGUAGEstatic StringREGISTRY_PROPERTYstatic StringRESOLVEstatic StringROLE_IDstatic StringSTUBstatic StringTOstatic StringUNORDEREDstatic StringUSED_LANGUAGEstatic StringVALUEstatic StringVERSION 
- 
Constructor Summary
Constructors Constructor Description ModelPersistence9() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IHashProvidergetHashProvider()XMLPersistence.IndexergetIndexSupport(IndexAwareModelFactory.Callback callback)XMLSAXHandler<List<LineContent>>getLineToContentMapReaderHandler()XMLSAXHandler<ModelLoadResult>getModelReaderHandler(ModelLoadingState state, SModelHeader header)IModelWritergetModelWriter(SModelHeader header)intgetVersion() 
 - 
 
- 
- 
Field Detail
- 
FILE_CONTENT
public static final String FILE_CONTENT
- See Also:
 - Constant Field Values
 
 
- 
MODEL
public static final String MODEL
- See Also:
 - Constant Field Values
 
 
- 
MODEL_ATTRIBUTE
public static final String MODEL_ATTRIBUTE
- See Also:
 - Constant Field Values
 
 
- 
MODEL_PERSISTENCE
public static final String MODEL_PERSISTENCE
- See Also:
 - Constant Field Values
 
 
- 
NODE
public static final String NODE
- See Also:
 - Constant Field Values
 
 
- 
NODE_PROPERTY
public static final String NODE_PROPERTY
- See Also:
 - Constant Field Values
 
 
- 
NODE_REFERENCE
public static final String NODE_REFERENCE
- See Also:
 - Constant Field Values
 
 
- 
LANGUAGES
public static final String LANGUAGES
- See Also:
 - Constant Field Values
 
 
- 
USED_LANGUAGE
public static final String USED_LANGUAGE
- See Also:
 - Constant Field Values
 
 
- 
ENGAGE_LANGUAGE
public static final String ENGAGE_LANGUAGE
- See Also:
 - Constant Field Values
 
 
- 
DEVKIT
public static final String DEVKIT
- See Also:
 - Constant Field Values
 
 
- 
IMPORTS
public static final String IMPORTS
- See Also:
 - Constant Field Values
 
 
- 
IMPORT
public static final String IMPORT
- See Also:
 - Constant Field Values
 
 
- 
REGISTRY
public static final String REGISTRY
- See Also:
 - Constant Field Values
 
 
- 
REGISTRY_LANGUAGE
public static final String REGISTRY_LANGUAGE
- See Also:
 - Constant Field Values
 
 
- 
REGISTRY_CONCEPT
public static final String REGISTRY_CONCEPT
- See Also:
 - Constant Field Values
 
 
- 
REGISTRY_PROPERTY
public static final String REGISTRY_PROPERTY
- See Also:
 - Constant Field Values
 
 
- 
REGISTRY_ASSOCIATION
public static final String REGISTRY_ASSOCIATION
- See Also:
 - Constant Field Values
 
 
- 
REGISTRY_AGGREGATION
public static final String REGISTRY_AGGREGATION
- See Also:
 - Constant Field Values
 
 
- 
REF
public static final String REF
- See Also:
 - Constant Field Values
 
 
- 
ID
public static final String ID
- See Also:
 - Constant Field Values
 
 
- 
NAME
public static final String NAME
- See Also:
 - Constant Field Values
 
 
- 
VALUE
public static final String VALUE
- See Also:
 - Constant Field Values
 
 
- 
INDEX
public static final String INDEX
- See Also:
 - Constant Field Values
 
 
- 
FLAGS
public static final String FLAGS
- See Also:
 - Constant Field Values
 
 
- 
UNORDERED
public static final String UNORDERED
- See Also:
 - Constant Field Values
 
 
- 
TO
public static final String TO
- See Also:
 - Constant Field Values
 
 
- 
RESOLVE
public static final String RESOLVE
- See Also:
 - Constant Field Values
 
 
- 
CONCEPT_ID
public static final String CONCEPT_ID
- See Also:
 - Constant Field Values
 
 
- 
ROLE_ID
public static final String ROLE_ID
- See Also:
 - Constant Field Values
 
 
- 
VERSION
public static final String VERSION
- See Also:
 - Constant Field Values
 
 
- 
IMPLICIT
public static final String IMPLICIT
- See Also:
 - Constant Field Values
 
 
- 
STUB
public static final String STUB
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getVersion
public int getVersion()
- Specified by:
 getVersionin interfaceIModelPersistence
 
- 
getModelWriter
public IModelWriter getModelWriter(@Nullable SModelHeader header)
- Specified by:
 getModelWriterin interfaceIModelPersistence- Parameters:
 header- optional parameter if there's auxiliary data to persist along with model- Returns:
 - handler to serialize model date into XML DOM
 
 
- 
getHashProvider
public IHashProvider getHashProvider()
- Specified by:
 getHashProviderin interfaceIModelPersistence
 
- 
getModelReaderHandler
public XMLSAXHandler<ModelLoadResult> getModelReaderHandler(ModelLoadingState state, SModelHeader header)
- Specified by:
 getModelReaderHandlerin interfaceIModelPersistence
 
- 
getLineToContentMapReaderHandler
public XMLSAXHandler<List<LineContent>> getLineToContentMapReaderHandler()
- Specified by:
 getLineToContentMapReaderHandlerin interfaceIModelPersistence
 
- 
getIndexSupport
public XMLPersistence.Indexer getIndexSupport(@NotNull IndexAwareModelFactory.Callback callback)
- Specified by:
 getIndexSupportin interfaceXMLPersistence- Returns:
 - null if this particular xml persistence revision doesn't support indexing
 
 
 - 
 
 -