Package cruise.umple.compiler
Class UmpleClassifier
java.lang.Object
cruise.umple.compiler.UmpleElement
cruise.umple.compiler.UmpleClassifier
- Direct Known Subclasses:
UmpleClass
,UmpleInterface
,UmpleTrait
public abstract class UmpleClassifier extends UmpleElement
Represents an Umple classifier: a Class or Interface
-
Constructor Summary
Constructors Constructor Description UmpleClassifier(java.lang.String aName, UmpleModel aSourceModel)
-
Method Summary
Modifier and Type Method Description boolean
addConstant(Constant aConstant)
boolean
addConstantAt(Constant aConstant, int index)
boolean
addDepend(Depend aDepend)
boolean
addDependAt(Depend aDepend, int index)
boolean
addMethod(Method aMethod)
boolean
addMethodAt(Method aMethod, int index)
boolean
addModelConstraint(ModelConstraint aModelConstraint)
boolean
addModelConstraintAt(ModelConstraint aModelConstraint, int index)
boolean
addOrMoveConstantAt(Constant aConstant, int index)
boolean
addOrMoveDependAt(Depend aDepend, int index)
boolean
addOrMoveMethodAt(Method aMethod, int index)
boolean
addOrMoveModelConstraintAt(ModelConstraint aModelConstraint, int index)
void
delete()
Constant
getConstant(int index)
java.util.List<Constant>
getConstants()
The constants contained within the Umple Classifier.Depend
getDepend(int index)
java.util.List<Depend>
getDepends()
java.lang.String
getDistributeTechnology()
Token
getExtendsToken()
boolean
getIsDistributable()
Specifies whether or not the Umple class or implemented classes are distributable with RMI technology.Method
getMethod(int index)
java.util.List<Method>
getMethods()
The methods contained within the Umple Classifier.ModelConstraint
getModelConstraint(int index)
java.util.List<ModelConstraint>
getModelConstraints()
java.lang.String
getRelativePath(java.lang.String filename, java.lang.String language)
Obtains the relative path between the source file for the UmpleClassifier and and the package name given the target languageUmpleModel
getSourceModel()
boolean
hasConstants()
boolean
hasDepends()
boolean
hasExtendsToken()
boolean
hasMethod(Method comparedMethod)
boolean
hasMethods()
boolean
hasModelConstraints()
int
indexOfConstant(Constant aConstant)
int
indexOfDepend(Depend aDepend)
int
indexOfMethod(Method aMethod)
int
indexOfModelConstraint(ModelConstraint aModelConstraint)
boolean
isIsDistributable()
static int
minimumNumberOfConstants()
static int
minimumNumberOfDepends()
static int
minimumNumberOfMethods()
static int
minimumNumberOfModelConstraints()
int
numberOfConstants()
int
numberOfDepends()
int
numberOfMethods()
int
numberOfModelConstraints()
boolean
removeConstant(Constant aConstant)
boolean
removeDepend(Depend aDepend)
boolean
removeMethod(Method aMethod)
boolean
removeModelConstraint(ModelConstraint aModelConstraint)
boolean
setDistributeTechnology(java.lang.String aDistributeTechnology)
boolean
setExtendsToken(Token aNewExtendsToken)
boolean
setIsDistributable(boolean aIsDistributable)
boolean
setSourceModel(UmpleModel aSourceModel)
java.lang.String
toString()
Methods inherited from class cruise.umple.compiler.UmpleElement
addEndPosition, addEndPositionAt, addNamespace, addOrMoveEndPositionAt, addOrMovePositionAt, addPosition, addPositionAt, appendExtraCode, appendExtraCode, appendExtraCode, getCoordinates, getDisplayColor, getEndPosition, getEndPositions, getExtraCode, getHasMainMethod, getIsInternal, getModifier, getName, getNamespace, getNameSpace, getNamespaces, getPackageName, getPosition, getPositions, hasEndPositions, hasExtraCode, hasNamespaces, hasPositions, indexOfEndPosition, indexOfNamespace, indexOfPosition, isHasMainMethod, isIsInternal, isUmpleClass, isUmpleInterface, isUmpleTrait, minimumNumberOfEndPositions, minimumNumberOfPositions, numberOfEndPositions, numberOfNamespaces, numberOfPositions, removeEndPosition, removeNamespace, removePosition, resetExtraCode, setCoordinates, setDisplayColor, setHasMainMethod, setIsInternal, setModifier, setName, setNameSpace, setPackageName
-
Constructor Details
-
Method Details
-
setIsDistributable
public boolean setIsDistributable(boolean aIsDistributable) -
setDistributeTechnology
public boolean setDistributeTechnology(java.lang.String aDistributeTechnology) -
setSourceModel
-
getIsDistributable
public boolean getIsDistributable()Specifies whether or not the Umple class or implemented classes are distributable with RMI technology. -
getDistributeTechnology
public java.lang.String getDistributeTechnology() -
getSourceModel
-
isIsDistributable
public boolean isIsDistributable() -
getMethod
-
getMethods
The methods contained within the Umple Classifier. -
numberOfMethods
public int numberOfMethods() -
hasMethods
public boolean hasMethods() -
indexOfMethod
-
getDepend
-
getDepends
-
numberOfDepends
public int numberOfDepends() -
hasDepends
public boolean hasDepends() -
indexOfDepend
-
getConstant
-
getConstants
The constants contained within the Umple Classifier. -
numberOfConstants
public int numberOfConstants() -
hasConstants
public boolean hasConstants() -
indexOfConstant
-
getModelConstraint
-
getModelConstraints
-
numberOfModelConstraints
public int numberOfModelConstraints() -
hasModelConstraints
public boolean hasModelConstraints() -
indexOfModelConstraint
-
getExtendsToken
-
hasExtendsToken
public boolean hasExtendsToken() -
minimumNumberOfMethods
public static int minimumNumberOfMethods() -
addMethod
-
removeMethod
-
addMethodAt
-
addOrMoveMethodAt
-
minimumNumberOfDepends
public static int minimumNumberOfDepends() -
addDepend
-
removeDepend
-
addDependAt
-
addOrMoveDependAt
-
minimumNumberOfConstants
public static int minimumNumberOfConstants() -
addConstant
-
removeConstant
-
addConstantAt
-
addOrMoveConstantAt
-
minimumNumberOfModelConstraints
public static int minimumNumberOfModelConstraints() -
addModelConstraint
-
removeModelConstraint
-
addModelConstraintAt
-
addOrMoveModelConstraintAt
-
setExtendsToken
-
delete
public void delete()- Overrides:
delete
in classUmpleElement
-
getRelativePath
public java.lang.String getRelativePath(java.lang.String filename, java.lang.String language)Obtains the relative path between the source file for the UmpleClassifier and and the package name given the target language- Parameters:
filename
- the file name to get the relative path fromlanguage
- The language target to compare- Returns:
- The string relative path between the parent and position
-
hasMethod
-
toString
public java.lang.String toString()- Overrides:
toString
in classUmpleElement
-