UML.Semantic.Foundation.Core
Class ElementOwnership

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ElementOwnership

public class ElementOwnership
extends java.lang.Object

Element ownership has visibility in a namespace.

In the metamodel ElementOwnership reifies the relationship between ModelElement and Namespace denoting the ownership of a ModelElement by a Namespace and its visibility outside the Namespace.

See Also:
ModelElement

Constructor Summary
ElementOwnership()
           
 
Method Summary
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.lang.String getVisibility()
          Gets the current element visibility kind.
 void setVisibility(java.lang.String mode)
          Sets the element visibility to the given kind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementOwnership

public ElementOwnership()
Method Detail

setVisibility

public void setVisibility(java.lang.String mode)
Sets the element visibility to the given kind.


getVisibility

public java.lang.String getVisibility()
Gets the current element visibility kind.

Returns:
The current visibility.

check

public boolean check()
Checks if well-formedness rules are respected in this model element.

Returns:
True if check was successful, false otherwise.