Package cruise.umple.cpp.gen
Class GenField
java.lang.Object
cruise.umple.cpp.gen.GenField
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
GenActiveField
,GenComplexPort
public class GenField
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NL
static java.lang.String
TEXT_0
static java.lang.String
TEXT_1
static java.lang.String
TEXT_10
static java.lang.String
TEXT_11
static java.lang.String
TEXT_12
static java.lang.String
TEXT_13
static java.lang.String
TEXT_14
static java.lang.String
TEXT_15
static java.lang.String
TEXT_2
static java.lang.String
TEXT_3
static java.lang.String
TEXT_4
static java.lang.String
TEXT_5
static java.lang.String
TEXT_6
static java.lang.String
TEXT_7
static java.lang.String
TEXT_8
static java.lang.String
TEXT_9
-
Constructor Summary
Constructors Constructor Description GenField()
-
Method Summary
Modifier and Type Method Description java.lang.StringBuilder
_assignValueCall(java.lang.Integer numSpaces, java.lang.StringBuilder sb, java.lang.String _value)
java.lang.StringBuilder
_autoAssign(java.lang.Integer numSpaces, java.lang.StringBuilder sb)
java.lang.StringBuilder
_declaration(java.lang.Integer numSpaces, java.lang.StringBuilder sb)
java.lang.StringBuilder
_implementation(java.lang.Integer numSpaces, java.lang.StringBuilder sb)
java.lang.StringBuilder
_initializeCall(java.lang.Integer numSpaces, java.lang.StringBuilder sb)
boolean
addComment(GenComment aComment)
boolean
addGeneric(GenFieldGeneric aGeneric)
boolean
addGenericAt(GenFieldGeneric aGeneric, int index)
boolean
addGenMethod(GenMethod aGenMethod)
boolean
addGenMethodAt(GenMethod aGenMethod, int index)
boolean
addInitializer(GenFieldInitializer aInitializer)
boolean
addInitializerAt(GenFieldInitializer aInitializer, int index)
boolean
addOrMoveGenericAt(GenFieldGeneric aGeneric, int index)
boolean
addOrMoveGenMethodAt(GenMethod aGenMethod, int index)
boolean
addOrMoveInitializerAt(GenFieldInitializer aInitializer, int index)
boolean
addRequirement(GenRequirement aRequirement)
java.lang.String
assignValueCall()
java.lang.String
assignValueCall(java.lang.String _value)
java.lang.String
autoAssign()
java.lang.String
declaration()
void
delete()
java.lang.String
genericString()
java.lang.String
getAutounique()
GenComment
getComment(int index)
java.util.List<GenComment>
getComments()
java.util.Comparator<GenComment>
getCommentsPriority()
boolean
getDestructible()
GenClass
getGenClass()
boolean
getGeneratable()
GenFieldGeneric
getGeneric(int index)
java.util.List<GenFieldGeneric>
getGenerics()
GenMethod
getGenMethod(int index)
java.util.List<GenMethod>
getGenMethods()
GenStruct
getGenStruct()
GenGroup
getGroup()
GenFieldInitializer
getInitializer(int index)
java.util.List<GenFieldInitializer>
getInitializers()
boolean
getIsComparable()
boolean
getIsConstant()
boolean
getIsEnum()
boolean
getIsIdentifier()
boolean
getIsMany()
boolean
getIsPointer()
boolean
getIsReference()
boolean
getIsStatic()
java.lang.String
getName()
boolean
getNormalize()
TODO: Duplicated code from GenMethodjava.lang.String
getNormalizedType()
TODO: Move to a trait and integrate with GenAssociation and GenFieldjava.lang.String
getNormalizedType(java.lang.Boolean isMany)
boolean
getParameterized()
int
getPriority()
GenAssociation
getRelatedAssociation()
GenMethod
getRelatedMethod()
Use association insteadboolean
getRemote()
CPP-specfificGenRequirement
getRequirement(int index)
java.util.List<GenRequirement>
getRequirements()
java.util.Comparator<GenRequirement>
getRequirementsPriority()
boolean
getSettable()
java.lang.String
getSortKey()
java.lang.String
getType()
java.lang.String
getValue()
java.lang.String
getVisibility()
boolean
hasComments()
boolean
hasGenClass()
boolean
hasGenerics()
boolean
hasGenMethods()
boolean
hasGenStruct()
java.lang.Boolean
hasImplementation()
boolean
hasInitializers()
boolean
hasRelatedAssociation()
boolean
hasRequirements()
java.lang.String
implementation()
int
indexOfComment(GenComment aComment)
int
indexOfGeneric(GenFieldGeneric aGeneric)
int
indexOfGenMethod(GenMethod aGenMethod)
int
indexOfInitializer(GenFieldInitializer aInitializer)
int
indexOfRequirement(GenRequirement aRequirement)
java.lang.String
initializeCall()
java.lang.String
initializerString()
boolean
isDestructible()
boolean
isGeneratable()
boolean
isIsComparable()
boolean
isIsConstant()
boolean
isIsEnum()
boolean
isIsIdentifier()
boolean
isIsMany()
boolean
isIsPointer()
boolean
isIsReference()
boolean
isIsStatic()
boolean
isNormalize()
boolean
isParameterized()
boolean
isRemote()
boolean
isSettable()
static int
minimumNumberOfComments()
static int
minimumNumberOfGenerics()
static int
minimumNumberOfGenMethods()
static int
minimumNumberOfInitializers()
static int
minimumNumberOfRequirements()
int
numberOfComments()
int
numberOfGenerics()
int
numberOfGenMethods()
int
numberOfInitializers()
int
numberOfRequirements()
boolean
removeComment(GenComment aComment)
boolean
removeGeneric(GenFieldGeneric aGeneric)
boolean
removeGenMethod(GenMethod aGenMethod)
boolean
removeInitializer(GenFieldInitializer aInitializer)
boolean
removeRequirement(GenRequirement aRequirement)
boolean
setAutounique(java.lang.String aAutounique)
boolean
setCommentsPriority(java.util.Comparator<GenComment> aCommentsPriority)
boolean
setDestructible(boolean aDestructible)
boolean
setGenClass(GenClass aGenClass)
boolean
setGeneratable(boolean aGeneratable)
boolean
setGenStruct(GenStruct aGenStruct)
boolean
setGroup(GenGroup aGroup)
boolean
setIsComparable(boolean aIsComparable)
boolean
setIsConstant(boolean aIsConstant)
boolean
setIsEnum(boolean aIsEnum)
boolean
setIsIdentifier(boolean aIsIdentifier)
boolean
setIsMany(boolean aIsMany)
boolean
setIsPointer(boolean aIsPointer)
boolean
setIsReference(boolean aIsReference)
boolean
setIsStatic(boolean aIsStatic)
boolean
setName(java.lang.String aName)
boolean
setNormalize(boolean aNormalize)
boolean
setParameterized(boolean aParameterized)
boolean
setPriority(int aPriority)
boolean
setRelatedAssociation(GenAssociation aRelatedAssociation)
boolean
setRelatedMethod(GenMethod aRelatedMethod)
boolean
setRemote(boolean aRemote)
boolean
setRequirementsPriority(java.util.Comparator<GenRequirement> aRequirementsPriority)
boolean
setSettable(boolean aSettable)
boolean
setType(java.lang.String aType)
boolean
setValue(java.lang.String aValue)
boolean
setVisibility(java.lang.String aVisibility)
java.lang.String
toString()
-
Field Details
-
NL
public static final java.lang.String NL -
TEXT_0
public static final java.lang.String TEXT_0- See Also:
- Constant Field Values
-
TEXT_1
public static final java.lang.String TEXT_1- See Also:
- Constant Field Values
-
TEXT_2
public static final java.lang.String TEXT_2- See Also:
- Constant Field Values
-
TEXT_3
public static final java.lang.String TEXT_3- See Also:
- Constant Field Values
-
TEXT_4
public static final java.lang.String TEXT_4- See Also:
- Constant Field Values
-
TEXT_5
public static final java.lang.String TEXT_5- See Also:
- Constant Field Values
-
TEXT_6
public static final java.lang.String TEXT_6 -
TEXT_7
public static final java.lang.String TEXT_7- See Also:
- Constant Field Values
-
TEXT_8
public static final java.lang.String TEXT_8- See Also:
- Constant Field Values
-
TEXT_9
public static final java.lang.String TEXT_9- See Also:
- Constant Field Values
-
TEXT_10
public static final java.lang.String TEXT_10- See Also:
- Constant Field Values
-
TEXT_11
public static final java.lang.String TEXT_11- See Also:
- Constant Field Values
-
TEXT_12
public static final java.lang.String TEXT_12- See Also:
- Constant Field Values
-
TEXT_13
public static final java.lang.String TEXT_13- See Also:
- Constant Field Values
-
TEXT_14
public static final java.lang.String TEXT_14- See Also:
- Constant Field Values
-
TEXT_15
public static final java.lang.String TEXT_15- See Also:
- Constant Field Values
-
-
Constructor Details
-
GenField
public GenField()
-
-
Method Details
-
setGroup
-
setIsIdentifier
public boolean setIsIdentifier(boolean aIsIdentifier) -
setType
public boolean setType(java.lang.String aType) -
setName
public boolean setName(java.lang.String aName) -
setDestructible
public boolean setDestructible(boolean aDestructible) -
setIsStatic
public boolean setIsStatic(boolean aIsStatic) -
setIsConstant
public boolean setIsConstant(boolean aIsConstant) -
setIsMany
public boolean setIsMany(boolean aIsMany) -
setIsEnum
public boolean setIsEnum(boolean aIsEnum) -
setAutounique
public boolean setAutounique(java.lang.String aAutounique) -
setValue
public boolean setValue(java.lang.String aValue) -
setParameterized
public boolean setParameterized(boolean aParameterized) -
setGeneratable
public boolean setGeneratable(boolean aGeneratable) -
setNormalize
public boolean setNormalize(boolean aNormalize) -
setRelatedMethod
-
setVisibility
public boolean setVisibility(java.lang.String aVisibility) -
setPriority
public boolean setPriority(int aPriority) -
setRemote
public boolean setRemote(boolean aRemote) -
setIsPointer
public boolean setIsPointer(boolean aIsPointer) -
setIsReference
public boolean setIsReference(boolean aIsReference) -
setSettable
public boolean setSettable(boolean aSettable) -
setIsComparable
public boolean setIsComparable(boolean aIsComparable) -
setCommentsPriority
-
setRequirementsPriority
-
getGroup
-
getIsIdentifier
public boolean getIsIdentifier() -
getType
public java.lang.String getType() -
getName
public java.lang.String getName() -
getDestructible
public boolean getDestructible() -
getIsStatic
public boolean getIsStatic() -
getIsConstant
public boolean getIsConstant() -
getIsMany
public boolean getIsMany() -
getIsEnum
public boolean getIsEnum() -
getAutounique
public java.lang.String getAutounique() -
getValue
public java.lang.String getValue() -
getParameterized
public boolean getParameterized() -
getGeneratable
public boolean getGeneratable() -
getNormalize
public boolean getNormalize()TODO: Duplicated code from GenMethod -
getSortKey
public java.lang.String getSortKey() -
getRelatedMethod
Use association instead -
getVisibility
public java.lang.String getVisibility() -
getPriority
public int getPriority() -
getRemote
public boolean getRemote()CPP-specfific -
getIsPointer
public boolean getIsPointer() -
getIsReference
public boolean getIsReference() -
getSettable
public boolean getSettable() -
getIsComparable
public boolean getIsComparable() -
getCommentsPriority
-
getRequirementsPriority
-
isIsIdentifier
public boolean isIsIdentifier() -
isDestructible
public boolean isDestructible() -
isIsStatic
public boolean isIsStatic() -
isIsConstant
public boolean isIsConstant() -
isIsMany
public boolean isIsMany() -
isIsEnum
public boolean isIsEnum() -
isParameterized
public boolean isParameterized() -
isGeneratable
public boolean isGeneratable() -
isNormalize
public boolean isNormalize() -
isRemote
public boolean isRemote() -
isIsPointer
public boolean isIsPointer() -
isIsReference
public boolean isIsReference() -
isSettable
public boolean isSettable() -
isIsComparable
public boolean isIsComparable() -
getComment
-
getComments
-
numberOfComments
public int numberOfComments() -
hasComments
public boolean hasComments() -
indexOfComment
-
getRequirement
-
getRequirements
-
numberOfRequirements
public int numberOfRequirements() -
hasRequirements
public boolean hasRequirements() -
indexOfRequirement
-
getGeneric
-
getGenerics
-
numberOfGenerics
public int numberOfGenerics() -
hasGenerics
public boolean hasGenerics() -
indexOfGeneric
-
getInitializer
-
getInitializers
-
numberOfInitializers
public int numberOfInitializers() -
hasInitializers
public boolean hasInitializers() -
indexOfInitializer
-
getGenClass
-
hasGenClass
public boolean hasGenClass() -
getGenMethod
-
getGenMethods
-
numberOfGenMethods
public int numberOfGenMethods() -
hasGenMethods
public boolean hasGenMethods() -
indexOfGenMethod
-
getGenStruct
-
hasGenStruct
public boolean hasGenStruct() -
getRelatedAssociation
-
hasRelatedAssociation
public boolean hasRelatedAssociation() -
minimumNumberOfComments
public static int minimumNumberOfComments() -
addComment
-
removeComment
-
minimumNumberOfRequirements
public static int minimumNumberOfRequirements() -
addRequirement
-
removeRequirement
-
minimumNumberOfGenerics
public static int minimumNumberOfGenerics() -
addGeneric
-
removeGeneric
-
addGenericAt
-
addOrMoveGenericAt
-
minimumNumberOfInitializers
public static int minimumNumberOfInitializers() -
addInitializer
-
removeInitializer
-
addInitializerAt
-
addOrMoveInitializerAt
-
setGenClass
-
minimumNumberOfGenMethods
public static int minimumNumberOfGenMethods() -
addGenMethod
-
removeGenMethod
-
addGenMethodAt
-
addOrMoveGenMethodAt
-
setGenStruct
-
setRelatedAssociation
-
delete
public void delete() -
assignValueCall
public java.lang.String assignValueCall() -
getNormalizedType
public java.lang.String getNormalizedType()TODO: Move to a trait and integrate with GenAssociation and GenField -
getNormalizedType
public java.lang.String getNormalizedType(java.lang.Boolean isMany) -
hasImplementation
public java.lang.Boolean hasImplementation() -
genericString
public java.lang.String genericString() -
initializerString
public java.lang.String initializerString() -
_assignValueCall
public java.lang.StringBuilder _assignValueCall(java.lang.Integer numSpaces, java.lang.StringBuilder sb, java.lang.String _value) -
assignValueCall
public java.lang.String assignValueCall(java.lang.String _value) -
_autoAssign
public java.lang.StringBuilder _autoAssign(java.lang.Integer numSpaces, java.lang.StringBuilder sb) -
autoAssign
public java.lang.String autoAssign() -
_initializeCall
public java.lang.StringBuilder _initializeCall(java.lang.Integer numSpaces, java.lang.StringBuilder sb) -
initializeCall
public java.lang.String initializeCall() -
_declaration
public java.lang.StringBuilder _declaration(java.lang.Integer numSpaces, java.lang.StringBuilder sb) -
declaration
public java.lang.String declaration() -
_implementation
public java.lang.StringBuilder _implementation(java.lang.Integer numSpaces, java.lang.StringBuilder sb) -
implementation
public java.lang.String implementation() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-