Package org.nuiton.eugene.java.extension
Class CodesManager
- java.lang.Object
-
- org.nuiton.eugene.java.extension.CodesManager
-
public class CodesManager extends Object
To manage some verbatim code to inject in operations.- Since:
- 2.0.2
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<ObjectModelOperation,StringBuilder>codesstore of codes associated to operations
-
Constructor Summary
Constructors Constructor Description CodesManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCode(ObjectModelOperation operation, String code)Add theannotationfor the givenelementof the classifier.StringgetCode(ObjectModelOperation operation)Obtain the codes registred for a given operation of the classifier.protected Map<ObjectModelOperation,StringBuilder>getCodes()
-
-
-
Field Detail
-
codes
protected Map<ObjectModelOperation,StringBuilder> codes
store of codes associated to operations
-
-
Method Detail
-
addCode
public void addCode(ObjectModelOperation operation, String code)
Add theannotationfor the givenelementof the classifier.- Parameters:
operation- the operation on which add the codecode- the code to add
-
getCode
public String getCode(ObjectModelOperation operation)
Obtain the codes registred for a given operation of the classifier.- Parameters:
operation- the operation where to search for code- Returns:
- the code for the operation (empty if none found)
-
getCodes
protected Map<ObjectModelOperation,StringBuilder> getCodes()
-
-