public class Package extends Element
Modifier and Type | Field and Description |
---|---|
java.util.Set<Package> |
nestedPackages |
Constructor and Description |
---|
Package(RelationshipsHolder relationshipHolder,
java.lang.String name) |
Package(RelationshipsHolder relationshipHolder,
java.lang.String name,
java.lang.String id) |
Package(RelationshipsHolder relationshipHolder,
java.lang.String name,
Variant variantType,
java.lang.String namespace,
java.lang.String id)
Construtor Para um Elemento do Tipo Pacote
|
Modifier and Type | Method and Description |
---|---|
void |
addExternalClass(Class klass) |
void |
addExternalInterface(Interface inter) |
void |
addImplementedInterface(Interface interfacee) |
void |
addRequiredInterface(Interface interfacee) |
boolean |
containsConcern(Concern concern) |
Class |
createClass(java.lang.String className,
boolean isAbstract)
Cria uma classe e adiciona no pacote em questão.
|
Interface |
createInterface(java.lang.String name)
Cria uma interface dentro do pacote
|
Interface |
createInterface(java.lang.String name,
java.lang.String id)
Cria uma interface dentro do pacote.
|
Package |
deepCopy() |
boolean |
findInterfaceByID(java.lang.String id) |
java.util.Set<Class> |
getAllClasses()
Retorna todas
Class que pertencem ao pacote. |
java.util.Set<Concern> |
getAllConcerns() |
java.util.Set<Interface> |
getAllInterfaces()
Retorna todas as
Interface do pacote. |
java.util.Set<Concern> |
getConcernsOnlyFromElementWithoutMethodOrAttribute() |
java.util.Set<Element> |
getElements()
Retorna um Set contendo as classes e as interfaces do pacote
|
java.util.Set<Interface> |
getImplementedInterfaces()
Retorna as interfaces implementadas pelo pacote e as interfaces
implementadas pelas classes que estão dentro do pacote.
|
java.util.Set<Package> |
getNestedPackages()
Retorna todos
Package dentro do pacote em questão. |
java.util.Set<Interface> |
getOnlyInterfacesImplementedByPackage() |
java.util.Set<Interface> |
getOnlyInterfacesRequiredByPackage() |
java.util.Set<Concern> |
getOwnConcerns()
Retorna apenas os interesses pertencentes a este elemento.
|
RelationshipsHolder |
getRelationshipHolder() |
java.util.Set<Relationship> |
getRelationships() |
java.util.Set<Interface> |
getRequiredInterfaces() |
boolean |
isFreezeByDM() |
void |
matchImplementedInterface(Architecture architecture) |
void |
matchRequiredInterface(Architecture architecture) |
void |
moveClassToPackage(Class klass,
Package packageToMove) |
boolean |
moveInterfaceToPackage(Interface inter,
Package packageToMove)
move a interface of this package to other package
if this package not has the selected interface, cannot move
if destiny package has the same interface, cannot move
if interface cannot remove from this package by hash, remove by id
|
void |
removeAllClass() |
void |
removeAllInterfaces() |
boolean |
removeClass(Element klass) |
void |
removeClassByID(java.lang.String id) |
boolean |
removeImplementedInterface(Interface interface_) |
boolean |
removeInterface(Element interfacee) |
void |
removeInterfaceByID(java.lang.String id)
recreate a new has that not has interface with selected id
hash some times cannot remove using its original function, then this method are created to remove that type of interface
|
boolean |
removeOnlyElement(Element element) |
boolean |
removeRequiredInterface(Interface supplier) |
void |
setElements(java.util.List<? extends Element> elements) |
void |
setRelationshipHolder(RelationshipsHolder relationshipHolder) |
addConcern, addConcerns, addExternalConcern, belongsToGeneralization, equals, getArchitecture, getComments, getGlobalPosX, getGlobalPosY, getHeight, getId, getName, getNamespace, getNumberId, getPosX, getPosY, getStringComments, getTypeElement, getVariant, getVariationPoint, getWidth, hasComments, hashCode, isFinal, 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 java.util.Set<Package> nestedPackages
public Package(RelationshipsHolder relationshipHolder, java.lang.String name, Variant variantType, java.lang.String namespace, java.lang.String id)
architecture
- - A qual br.otimizes.oplatool.arquitetura pertencename
- - Nome do PacoteisVariationPoint
- - Se o mesmo é um ponto de variaçãovariantType
- - Qual o tipo ( VariantType
) da varianteparent
- - Qual o Element
paipublic Package(RelationshipsHolder relationshipHolder, java.lang.String name)
public Package(RelationshipsHolder relationshipHolder, java.lang.String name, java.lang.String id)
public void matchImplementedInterface(Architecture architecture)
public void matchRequiredInterface(Architecture architecture)
public void removeClassByID(java.lang.String id)
public void removeAllClass()
public void removeAllInterfaces()
public java.util.Set<Interface> getAllInterfaces()
Interface
do pacote.public java.util.Set<Class> getAllClasses()
Class
que pertencem ao pacote.public java.util.Set<Package> getNestedPackages()
Package
dentro do pacote em questão.public void addImplementedInterface(Interface interfacee)
public java.util.Set<Interface> getImplementedInterfaces()
Set
imutávelpublic java.util.Set<Interface> getOnlyInterfacesImplementedByPackage()
public java.util.Set<Interface> getOnlyInterfacesRequiredByPackage()
public void addRequiredInterface(Interface interfacee)
public java.util.Set<Interface> getRequiredInterfaces()
public Class createClass(java.lang.String className, boolean isAbstract)
className
- - Nome da classeisAbstract
- - abstrata ou nãoClass
java.lang.Exception
public Interface createInterface(java.lang.String name)
name
- public Interface createInterface(java.lang.String name, java.lang.String id)
name
- public java.util.Set<Concern> getAllConcerns()
getAllConcerns
in class Element
public java.util.Set<Concern> getConcernsOnlyFromElementWithoutMethodOrAttribute()
public java.util.Set<Concern> getOwnConcerns()
Element
getOwnConcerns
in class Element
public boolean moveInterfaceToPackage(Interface inter, Package packageToMove)
inter
- - interface to movepackageToMove
- - destiny packagepublic boolean findInterfaceByID(java.lang.String id)
public void addExternalClass(Class klass)
public void addExternalInterface(Interface inter)
public boolean removeClass(Element klass)
public boolean removeInterface(Element interfacee)
public void removeInterfaceByID(java.lang.String id)
id
- - id of interface to removepublic boolean removeImplementedInterface(Interface interface_)
public boolean removeRequiredInterface(Interface supplier)
public java.util.Set<Element> getElements()
public void setElements(java.util.List<? extends Element> elements)
public boolean containsConcern(Concern concern)
containsConcern
in class Element
public boolean removeOnlyElement(Element element)
public RelationshipsHolder getRelationshipHolder()
public void setRelationshipHolder(RelationshipsHolder relationshipHolder)
public java.util.Set<Relationship> getRelationships()
public boolean isFreezeByDM()
isFreezeByDM
in class Element