FileDocCategorySizeDatePackage
UMLMember.javaAPI DocExample2016Tue Dec 08 01:21:00 GMT 1998oisoft.togetherx.scriptapi.UML

UMLMember.java

/*----------------------------------------------------------------------------
Copyright © 1998 Object International Software GmbH
----------------------------------------------------------------------------*/
package oisoft.togetherx.scriptapi.UML;

import oisoft.togetherx.scriptapi.UML.enums.*;

//------------------------------------------------------------------------------
/**
* Presents members of a class (attributes and operations).
* @version  2.1.01  12.03.1998
* @author  	Andrei Ivanov
* @see UMLAttribute
* @see UMLOperation
*/
public interface UMLMember extends UMLElement
{
  /** Returns the class that contains this member.*/
  UMLClass  getContainingClass();

  /** Indicates whether the member is attribute.*/
  boolean   isAttribute();

  /** Indicates whether the member is operation.*/
  boolean   isOperation();

  /** Returns member's declaration.
  Returns string enumeration because 
  declaration can continue on a number of strings.
  @return String enumerator with the text of declaration, line by line.
  */
  UMLStringEnumeration getDeclarationStrings();

  /** Returns string that contains expression of the member type */
  String    getTypeExpression();

  /** Returns member's type as <i>UMLType</i> 
   *  @since 345
   */
  UMLType  getType();

  /** Indicates whether this member is static.
   * @return true - if this member is class member <br>
   *  false - if this member is object member. 
   */
  boolean   isStatic();

  /** Indicates whether this member is constant.  */
  boolean   isConst();

  /** Indicates whether this member is friend. */
  boolean   isFriend();
  
  /** Indicates whether this member is final.
  A final operation may never be overriden. 
  A final attribute may never have its value reassigned.
  */
  boolean   isFinal();
}
//------------------------------------------------------------------------------