Class ModelExtensionBuilder
- java.lang.Object
-
- org.nuiton.eugene.models.extension.model.ModelExtensionBuilder
-
- All Implemented Interfaces:
ModelExtensionFileParserCallback
public class ModelExtensionBuilder extends Object implements ModelExtensionFileParserCallback
Created on 10/09/16.- Since:
- 3.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description protected intclassAttributeStereotypeHitsprotected intclassAttributeTagValueHitsprotected intclassStereotypeHitsprotected intclassTagValueHitsprotected ModelExtensionmodelExtensionprotected intmodelStereotypeHitsprotected intmodelTagValueHitsprotected intpackageStereotypeHitsprotected intpackageTagValueHitsprotected booleanstrictLoading
-
Constructor Summary
Constructors Constructor Description ModelExtensionBuilder(boolean strictLoading, String modelName)
-
Method Summary
-
-
-
Field Detail
-
modelExtension
protected final ModelExtension modelExtension
-
modelStereotypeHits
protected int modelStereotypeHits
-
modelTagValueHits
protected int modelTagValueHits
-
packageStereotypeHits
protected int packageStereotypeHits
-
packageTagValueHits
protected int packageTagValueHits
-
classStereotypeHits
protected int classStereotypeHits
-
classTagValueHits
protected int classTagValueHits
-
classAttributeStereotypeHits
protected int classAttributeStereotypeHits
-
classAttributeTagValueHits
protected int classAttributeTagValueHits
-
strictLoading
protected boolean strictLoading
-
-
Constructor Detail
-
ModelExtensionBuilder
public ModelExtensionBuilder(boolean strictLoading, String modelName)
-
-
Method Detail
-
build
public ModelExtension build()
-
getStereotypeHits
public int getStereotypeHits()
-
getTagValueHits
public int getTagValueHits()
-
getModelStereotypeHits
public int getModelStereotypeHits()
-
getModelTagValueHits
public int getModelTagValueHits()
-
getPackageStereotypeHits
public int getPackageStereotypeHits()
-
getPackageTagValueHits
public int getPackageTagValueHits()
-
getClassStereotypeHits
public int getClassStereotypeHits()
-
getClassTagValueHits
public int getClassTagValueHits()
-
getClassAttributeStereotypeHits
public int getClassAttributeStereotypeHits()
-
getClassAttributeTagValueHits
public int getClassAttributeTagValueHits()
-
onModelTagValueFound
public boolean onModelTagValueFound(String tag, String value)
- Specified by:
onModelTagValueFoundin interfaceModelExtensionFileParserCallback
-
onModelStereotypeFound
public boolean onModelStereotypeFound(String stereotype)
- Specified by:
onModelStereotypeFoundin interfaceModelExtensionFileParserCallback
-
onPackageTagValueFound
public boolean onPackageTagValueFound(String packageName, String tag, String value)
- Specified by:
onPackageTagValueFoundin interfaceModelExtensionFileParserCallback
-
onPackageStereotypeFound
public boolean onPackageStereotypeFound(String packageName, String stereotype)
- Specified by:
onPackageStereotypeFoundin interfaceModelExtensionFileParserCallback
-
onClassTagValueFound
public boolean onClassTagValueFound(String className, String tag, String value)
- Specified by:
onClassTagValueFoundin interfaceModelExtensionFileParserCallback
-
onClassStereotypeFound
public boolean onClassStereotypeFound(String className, String stereotype)
- Specified by:
onClassStereotypeFoundin interfaceModelExtensionFileParserCallback
-
onAttributeTagValueFound
public boolean onAttributeTagValueFound(String className, String attributeName, String tag, String value)
- Specified by:
onAttributeTagValueFoundin interfaceModelExtensionFileParserCallback
-
onAttributeStereotypeFound
public boolean onAttributeStereotypeFound(String className, String attributeName, String stereotype)
- Specified by:
onAttributeStereotypeFoundin interfaceModelExtensionFileParserCallback
-
addFile
public void addFile(File inputFile) throws InvalidTagValueSyntaxException, InvalidStereotypeSyntaxException, IOException
-
addTagValue
protected void addTagValue(ModelExtensionElement modelExtensionElement, String tag, String value)
-
-