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 - chemit@codelutin.com
-
-
Field Summary
Fields Modifier and Type Field Description protected int
classAttributeStereotypeHits
protected int
classAttributeTagValueHits
protected int
classStereotypeHits
protected int
classTagValueHits
protected ModelExtension
modelExtension
protected int
modelStereotypeHits
protected int
modelTagValueHits
protected int
packageStereotypeHits
protected int
packageTagValueHits
protected boolean
strictLoading
-
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:
onModelTagValueFound
in interfaceModelExtensionFileParserCallback
-
onModelStereotypeFound
public boolean onModelStereotypeFound(String stereotype)
- Specified by:
onModelStereotypeFound
in interfaceModelExtensionFileParserCallback
-
onPackageTagValueFound
public boolean onPackageTagValueFound(String packageName, String tag, String value)
- Specified by:
onPackageTagValueFound
in interfaceModelExtensionFileParserCallback
-
onPackageStereotypeFound
public boolean onPackageStereotypeFound(String packageName, String stereotype)
- Specified by:
onPackageStereotypeFound
in interfaceModelExtensionFileParserCallback
-
onClassTagValueFound
public boolean onClassTagValueFound(String className, String tag, String value)
- Specified by:
onClassTagValueFound
in interfaceModelExtensionFileParserCallback
-
onClassStereotypeFound
public boolean onClassStereotypeFound(String className, String stereotype)
- Specified by:
onClassStereotypeFound
in interfaceModelExtensionFileParserCallback
-
onAttributeTagValueFound
public boolean onAttributeTagValueFound(String className, String attributeName, String tag, String value)
- Specified by:
onAttributeTagValueFound
in interfaceModelExtensionFileParserCallback
-
onAttributeStereotypeFound
public boolean onAttributeStereotypeFound(String className, String attributeName, String stereotype)
- Specified by:
onAttributeStereotypeFound
in interfaceModelExtensionFileParserCallback
-
addFile
public void addFile(File inputFile) throws InvalidTagValueSyntaxException, InvalidStereotypeSyntaxException, IOException
-
addTagValue
protected void addTagValue(ModelExtensionElement modelExtensionElement, String tag, String value)
-
-