Package cruise.umple.cpp.generator
Class UmpleModelGenerationPolicy
java.lang.Object
cruise.umple.cpp.generator.UmpleModelGenerationPolicy
public class UmpleModelGenerationPolicy
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description UmpleModelGenerationPolicy()
-
Method Summary
Modifier and Type Method Description static UmpleVariable
constraintAttribute(ConstraintVariable element)
static java.util.List<Attribute>
constraintAttributes(UmpleClass element)
static boolean
constraintExpressionIsAttribute(ConstraintVariable element)
static boolean
constraintExpressionIsOperator(ConstraintVariable element)
static boolean
constraintExpressionIsPrimitive(ConstraintVariable element)
static java.util.List<ConstraintVariable>
constraintExpressions(ConstraintTree element)
static java.lang.String
constraintExpressionType(ConstraintVariable element)
static java.lang.String
constraintExpressionValue(ConstraintVariable element)
static java.util.List<ConstraintAttribute>
constraints(Attribute element, UmpleClass parent)
static java.util.List<ConstraintVariable>
constraints(ConstraintVariable element)
static java.util.List<Precondition>
constraints(Method element, UmpleClass parent)
static java.util.List<ConstraintTree>
constraints(UmpleClass element)
static java.util.List<ConstraintVariable>
constraintsForAttribute(Attribute attribute)
static java.util.List<java.lang.String>
expressions(ConstraintVariable element, boolean check)
static java.lang.String
expressionToString(ConstraintVariable element, boolean check)
static boolean
external(UmpleClass umpleClass)
static boolean
external(UmpleInterface umpleInterface)
static java.util.List<?>
getAssociationVariables(UmpleClass umpleClass)
static java.lang.String
getBody(Method method, java.lang.String language)
static java.lang.String
getCodeBody(CodeBlock codeblock)
static java.lang.String
getCodeBody(Comment comment)
static java.util.List<java.lang.String>
getComments(java.lang.Object element)
static java.lang.String
getDefaultValue(Attribute attribute, java.lang.String language)
static java.util.List<?>
getDepends(UmpleClassifier classifier)
static java.lang.String
getElementVisibility(java.lang.Object element)
static java.lang.String
getExtraCode(UmpleElement element)
static java.lang.String
getFile(UmpleModel model)
static java.lang.String
getFileName(UmpleModel model)
static java.lang.String
getFilePath(UmpleModel model)
static java.lang.String
getGeneratePath(UmpleModel model, java.lang.String langaugeId)
static java.util.List<java.lang.String>
getInjectedCode(UmpleClass element, UmpleModel modelPackage, java.lang.String operationName, boolean after, java.lang.String langauge)
static boolean
getKey(UmpleClass element)
static java.util.List<java.lang.String>
getLineNumbers(AssociationVariable associationVariable, UmpleModel modelPackage, UmpleElement parent, java.lang.String language)
static java.util.List<java.lang.String>
getLineNumbers(Method method, UmpleModel modelPackage, UmpleElement parent, java.lang.String language)
static java.util.List<java.lang.String>
getLineNumbers(UmpleElement element)
static java.util.List<java.lang.String>
getLineNumbers(UmpleElement element, UmpleModel modelPackage, java.lang.String language)
static int
getLowerBound(java.lang.Object element)
static int
getMultiplicityUpperLimit(java.lang.Object element)
static java.lang.String
getName(java.lang.Object element)
static java.lang.String
getNamespace(UmpleElement element)
static java.lang.String
getNamespace(UmpleModel model)
static java.util.List<?>
getNavigableAssociationVariables(UmpleClass umpleClass)
static java.lang.String
getOperationName(Method method)
static java.util.List<?>
getOperationParametersString(Method method)
static int
getOtherEndLowerBound(AssociationVariable associationVariable)
static java.lang.String
getOtherEndName(AssociationVariable associationVariable)
static java.lang.String
getOtherEndName(Attribute attribute)
static java.lang.String
getOtherEndRoleName(AssociationVariable associationVariable)
static UmpleClass
getOtherEndType(AssociationVariable associationVariable)
static java.lang.String
getOtherEndTypeName(AssociationVariable associationVariable)
static int
getOtherEndUpperBound(AssociationVariable associationVariable)
static java.lang.String
getOwenrName(java.lang.Object element)
static java.util.List<?>
getOwnedAttributes(UmpleClass element)
static java.util.List<?>
getOwnedOperations(UmpleClassifier classifier)
static java.lang.Object
getParentClass(Attribute attribute)
static java.lang.Object
getParentClass(UmpleClass element)
static java.util.List<?>
getParentInterfaces(java.lang.Object element)
static java.lang.String
getPluralName(UmpleModel modelPackage, java.lang.String name)
static java.lang.String
getReturnType(Method element)
static java.lang.String
getRoleName(AssociationVariable associationVariable)
static java.lang.String
getRoleName(Attribute attribute)
static java.lang.String
getSingularName(UmpleModel modelPackage, java.lang.String name)
static UmpleClass
getType(AssociationVariable associationVariable)
static java.lang.String
getTypeName(UmpleVariable associationVariable)
static java.lang.String
getValue(Attribute attribute, java.lang.String language)
static java.lang.String
getVersionNumber()
static boolean
isAbstract(Method method)
static boolean
isAbstract(UmpleClass element)
static boolean
isAutoUnique(Attribute attribute)
static boolean
isConstant(Attribute attribute)
static boolean
isDefaulted(Attribute attribute)
static boolean
isDerived(Attribute attribute)
static boolean
isDistributable(UmpleClassifier ckassifier)
static boolean
isImmutable(Attribute attribute)
static boolean
isImmutable(UmpleClass element)
static boolean
isInternal(Attribute attribute)
static boolean
isKeyMemeber(UmpleClass element, Attribute attribute)
static boolean
isLazy(Attribute attribute)
static boolean
isNavigable(AssociationVariable associationVariable)
static boolean
isOtherEndNavigable(AssociationVariable associationVariable)
static boolean
isPlural(UmpleModel modelPackage, java.lang.String name)
static boolean
isSingleton(UmpleClass element)
static boolean
isSorted(UmpleVariable associationVariable)
static boolean
isStatic(Attribute attribute)
static boolean
isStatic(Method method)
static java.lang.String
modifier(Attribute attribute)
static java.lang.String
modifier(UmpleClass umpleClass)
static java.lang.String
modifier(UmpleInterface umpleInterface)
static java.util.List<java.lang.String>
names(ConstraintOperator element)
static java.util.List<java.lang.String>
names(ConstraintTree element)
static java.util.Collection<?>
ownedClasses(UmpleModel model)
static java.util.Collection<?>
ownedInterfaces(UmpleModel model)
static java.lang.String
priority(AssociationVariable associationVariable)
static java.util.List<java.lang.String>
processConstraintsExpressions(ConstraintVariable constraint, java.lang.Boolean check)
static java.lang.String
processConstraintsExpressionString(ConstraintVariable constraint, java.lang.Boolean check)
static java.lang.String
use(Depend depend)
-
Constructor Details
-
UmpleModelGenerationPolicy
public UmpleModelGenerationPolicy()
-
-
Method Details
-
getNamespace
-
getVersionNumber
public static java.lang.String getVersionNumber() -
getGeneratePath
-
getFileName
-
getFile
-
getFilePath
-
getNamespace
-
ownedClasses
-
ownedInterfaces
-
getExtraCode
-
getCodeBody
-
getCodeBody
-
getInjectedCode
public static java.util.List<java.lang.String> getInjectedCode(UmpleClass element, UmpleModel modelPackage, java.lang.String operationName, boolean after, java.lang.String langauge) -
getOwnedOperations
-
getOwnedAttributes
-
getLineNumbers
public static java.util.List<java.lang.String> getLineNumbers(UmpleElement element, UmpleModel modelPackage, java.lang.String language) -
getLineNumbers
-
getLineNumbers
public static java.util.List<java.lang.String> getLineNumbers(Method method, UmpleModel modelPackage, UmpleElement parent, java.lang.String language) -
getLineNumbers
public static java.util.List<java.lang.String> getLineNumbers(AssociationVariable associationVariable, UmpleModel modelPackage, UmpleElement parent, java.lang.String language) -
getOperationParametersString
-
getBody
-
getName
public static java.lang.String getName(java.lang.Object element) -
getSingularName
-
getPluralName
-
isPlural
-
use
-
constraints
-
constraintAttributes
-
constraintsForAttribute
-
constraints
-
constraints
public static java.util.List<ConstraintAttribute> constraints(Attribute element, UmpleClass parent) -
constraints
-
constraintAttribute
-
constraintExpressions
-
names
-
names
-
constraintExpressionType
-
constraintExpressionIsAttribute
-
constraintExpressionValue
-
constraintExpressionIsOperator
-
constraintExpressionIsPrimitive
-
isSingleton
-
getRoleName
-
getRoleName
-
getOtherEndRoleName
-
getDepends
-
getElementVisibility
public static java.lang.String getElementVisibility(java.lang.Object element) -
isNavigable
-
isOtherEndNavigable
-
getTypeName
-
getOperationName
-
isSorted
-
getOtherEndTypeName
-
priority
-
getReturnType
-
getOtherEndUpperBound
-
getOtherEndLowerBound
-
getMultiplicityUpperLimit
public static int getMultiplicityUpperLimit(java.lang.Object element) -
getLowerBound
public static int getLowerBound(java.lang.Object element) -
getOtherEndType
-
getType
-
getOtherEndName
-
getOtherEndName
-
getOwenrName
public static java.lang.String getOwenrName(java.lang.Object element) -
getComments
public static java.util.List<java.lang.String> getComments(java.lang.Object element) -
getParentInterfaces
public static java.util.List<?> getParentInterfaces(java.lang.Object element) -
getParentClass
-
getParentClass
-
getDefaultValue
-
getValue
-
isStatic
-
isStatic
-
isAbstract
-
isConstant
-
isDerived
-
isAbstract
-
getAssociationVariables
-
getNavigableAssociationVariables
-
isLazy
-
modifier
-
modifier
-
modifier
-
external
-
external
-
getKey
-
isKeyMemeber
-
isImmutable
-
isImmutable
-
isDefaulted
-
isInternal
-
isAutoUnique
-
isDistributable
-
processConstraintsExpressions
public static java.util.List<java.lang.String> processConstraintsExpressions(ConstraintVariable constraint, java.lang.Boolean check) -
processConstraintsExpressionString
public static java.lang.String processConstraintsExpressionString(ConstraintVariable constraint, java.lang.Boolean check) -
expressionToString
-
expressions
public static java.util.List<java.lang.String> expressions(ConstraintVariable element, boolean check)
-