OMG UML 2 Fundamental Exam :
OMG UML 2 Fundamental Exam NamedElement: name: String [0..1] - The name of the NamedElement. qualifiedName: String [0..1] - A name that allows the NamedElement to be uniquely identified within a hierarchy of nested Namespaces. Sales :: Customer. Accounting :: Sales :: Customer. visibility: VisibityKind [0..1] - Determines where the NamedElement appears within different Namespaces within the overall model. This obviously affects the named element’s accessibility. + public – a named element with public visibility is visible to all elements that can access the contents of the namespace that owns it.
private – visible only inside the namespace that owns it
# protected – visible to elements that have a generalization relationship to the namespace
~ package – visible only to elements within the same package
OMG UML 2 Fundamental Exam :
OMG UML 2 Fundamental Exam Packageable Element: visibility: VisibityKind [1] - a packageable element must always have a visibility i.e. it is not an optional attribute
OMG UML 2 Fundamental Exam :
OMG UML 2 Fundamental Exam Element Import: visibility: VisibilityKind [1] Specifies the visibility of the packageable element within the importing package. The default visibility is the same as the visibility of the imported element. alias: String [0..1] Specifies an alternative name that can be used in lieu of the PackagableElement’s name. The aliased name must not clash with any other member name in the importing Package. Example: <<import>>s <<access>>s
OMG UML 2 Fundamental Exam :
OMG UML 2 Fundamental Exam Package Import: visibility: VisibilityKind [1] Specifies the visibility of the imported packageable elements within the importing namespace. The default visibility is public Example: <<import>> <<access>> <<import>>
OMG UML 2 Fundamental Exam :
OMG UML 2 Fundamental Exam Name Space: visibility: VisibilityKind [1] Specifies the visibility of the imported packageable elements within the importing namespace. The default visibility is public Example: