public class Class extends Element
Constructor and Description |
---|
Class(RelationshipsHolder relationshipHolder,
java.lang.String name,
boolean isAbstract) |
Class(RelationshipsHolder relationshipHolder,
java.lang.String name,
boolean isAbstract,
java.lang.String packageName) |
Class(RelationshipsHolder relationshipHolder,
java.lang.String name,
Variant variantType,
boolean isAbstract,
java.lang.String namespace,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
addExternalAttribute(Attribute a) |
boolean |
addExternalMethod(Method method) |
void |
addImplementedInterface(Interface supplierElement) |
void |
addRequiredInterface(Interface supplier) |
Attribute |
createAttribute(java.lang.String name,
Types.Type type,
VisibilityKind visibility) |
Method |
createMethod(java.lang.String name,
java.lang.String type,
boolean isAbstract,
java.util.List<ParameterMethod> parameters) |
Class |
deepClone() |
Class |
deepCopy() |
Attribute |
findAttributeById(java.lang.String id) |
Attribute |
findAttributeByName(java.lang.String name) |
Method |
findMethodById(java.lang.String id) |
Method |
findMethodByName(java.lang.String name) |
java.util.List<Method> |
getAllAbstractMethods() |
java.util.List<AssociationClassRelationship> |
getAllAssociationClass() |
java.util.Set<Attribute> |
getAllAttributes() |
java.util.Set<Concern> |
getAllConcerns()
Retorna todo os interesses da classe, como "todos", entende-se:
Interesses anotados na classe Interesses anotados nos atributos e métodos da classe Interesses anotados nas interesses que a classe implementa |
java.util.Set<Concern> |
getAllConcernsWithoutImplementedInterfaces() |
java.util.Set<Method> |
getAllMethods() |
java.util.List<Method> |
getAllModifiableAbstractMethods() |
java.util.Set<Attribute> |
getAllModifiableAttributes() |
java.util.Set<Method> |
getAllModifiableMethods() |
java.lang.Object |
getAllStereotype() |
java.util.Set<Relationship> |
getGeneralizations() |
java.util.Set<Interface> |
getImplementedInterfaces() |
PatternsOperations |
getPatternsOperations() |
RelationshipsHolder |
getRelationshipHolder() |
java.util.Set<Relationship> |
getRelationships() |
java.util.Set<Interface> |
getRequiredInterfaces() |
java.lang.String |
getVariantType()
Retorna o tipo de variant (ex: alternative_OR).
|
boolean |
hasGeneralization() |
boolean |
isAbstract() |
void |
matchImplementedInterface(Architecture architecture) |
void |
matchRequiredInterface(Architecture architecture) |
boolean |
moveAttributeToClass(Attribute attribute,
Class destinationKlass) |
boolean |
moveMethodToClass(Method method,
Class destinationKlass)
Move um método de uma classe para outra.
|
boolean |
removeAttribute(Attribute attribute) |
void |
removeAttributeByID(java.lang.String id) |
void |
removeImplementedInterface(Interface inter) |
boolean |
removeMethod(Method method)
Remove Método da classe
|
void |
removeMethodByID(java.lang.String id) |
boolean |
removeRequiredInterface(Interface supplier) |
void |
setAbstract(boolean isAbstract) |
void |
setAttribute(Attribute attr) |
void |
setPatternOperations(PatternsOperations patternOperations) |
void |
setRelationshipHolder(RelationshipsHolder relationshipHolder) |
void |
updateId(java.lang.String id) |
addConcern, addConcerns, addExternalConcern, belongsToGeneralization, containsConcern, equals, getArchitecture, getComments, getGlobalPosX, getGlobalPosY, getHeight, getId, getName, getNamespace, getNumberId, getOwnConcerns, getPosX, getPosY, getStringComments, getTypeElement, getVariant, getVariationPoint, getWidth, hasComments, hashCode, isFinal, isFreezeByDM, isFreezedByCluster, isMandatory, isStatic, isTotalyFreezed, isVariationPoint, removeConcern, setBelongsToGeneralization, setComments, setComments, setFinal, setFreezedByCluster, setFreezedByCluster, setFreezeFromDM, setFreezeFromDM, setFreezeFromDM, setGlobalPosX, setGlobalPosY, setHeight, setMandatory, setName, setNamespace, setPosX, setPosY, setStatic, setTypeElement, setVariant, setVariationPoint, setWidth, toString, totalyEquals, unsetFreezeFromDM
public Class(RelationshipsHolder relationshipHolder, java.lang.String name, Variant variantType, boolean isAbstract, java.lang.String namespace, java.lang.String id)
public Class(RelationshipsHolder relationshipHolder, java.lang.String name, boolean isAbstract)
public Class(RelationshipsHolder relationshipHolder, java.lang.String name, boolean isAbstract, java.lang.String packageName)
public void matchImplementedInterface(Architecture architecture)
public void matchRequiredInterface(Architecture architecture)
public Attribute findAttributeById(java.lang.String id)
public Method findMethodById(java.lang.String id)
public void removeMethodByID(java.lang.String id)
public void removeAttributeByID(java.lang.String id)
public boolean hasGeneralization()
public Attribute createAttribute(java.lang.String name, Types.Type type, VisibilityKind visibility)
public void setAttribute(Attribute attr)
public java.util.Set<Attribute> getAllAttributes()
public boolean isAbstract()
public void setAbstract(boolean isAbstract)
public java.util.Set<Method> getAllMethods()
public Attribute findAttributeByName(java.lang.String name) throws AttributeNotFoundException
AttributeNotFoundException
public boolean moveAttributeToClass(Attribute attribute, Class destinationKlass)
public boolean moveMethodToClass(Method method, Class destinationKlass)
method
- - Método a ser movidodestinationKlass
- - Classe que irá receber o métodopublic Method createMethod(java.lang.String name, java.lang.String type, boolean isAbstract, java.util.List<ParameterMethod> parameters)
public Method findMethodByName(java.lang.String name) throws MethodNotFoundException
MethodNotFoundException
public boolean addExternalMethod(Method method)
public boolean addExternalAttribute(Attribute a)
public boolean removeMethod(Method method)
method
- - Método a ser removido.public boolean removeAttribute(Attribute attribute)
attribute
- public java.util.List<Method> getAllAbstractMethods()
public void updateId(java.lang.String id)
public java.lang.Object getAllStereotype()
public java.lang.String getVariantType()
Retorna null se não existir
public java.util.Set<Concern> getAllConcerns()
getAllConcerns
in class Element
Set
Imutávelpublic java.util.List<AssociationClassRelationship> getAllAssociationClass()
public java.util.Set<Interface> getImplementedInterfaces()
public java.util.Set<Interface> getRequiredInterfaces()
public void removeImplementedInterface(Interface inter)
public boolean removeRequiredInterface(Interface supplier)
public void addImplementedInterface(Interface supplierElement)
public void addRequiredInterface(Interface supplier)
public Class deepClone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public RelationshipsHolder getRelationshipHolder()
public void setRelationshipHolder(RelationshipsHolder relationshipHolder)
public java.util.Set<Relationship> getRelationships()
public void setPatternOperations(PatternsOperations patternOperations)
public PatternsOperations getPatternsOperations()
public java.util.Set<Relationship> getGeneralizations()
public java.util.Set<Concern> getAllConcernsWithoutImplementedInterfaces()
public java.util.Set<Attribute> getAllModifiableAttributes()
public java.util.Set<Method> getAllModifiableMethods()
public java.util.List<Method> getAllModifiableAbstractMethods()