Dresden OCL Toolkit

tudresden.ocl.injection.test
Class Example

java.lang.Object
  extended bytudresden.ocl.injection.test.Example
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
SecondExample

public abstract class Example
extends Object
implements Runnable

Represents an attribute or association partner of a class. Note: type==Model.AMIGOUS means, the attribute cannot be used in OCL due to attribute ambiguities. See OCL spec 5.4.1. for details.


Nested Class Summary
(package private)  class Example.Inner
           
 
Field Summary
private  int a
          Testcomment A
(package private)  Date aDate
           
(package private)  Format aFormat
           
(package private)  Integer anInteger
           
(package private)  AbstractImplementation anInterface
           
private  int b
          Testcomment B
private  List collectionWithoutComment
           
(package private)  int commaSeparated1
          TestCommentCommaSeparated123
(package private)  int commaSeparated2
          TestCommentCommaSeparated123
(package private)  int commaSeparated3
          TestCommentCommaSeparated123
(package private)  int commaSeparated4
          TestCommentCommaSeparated456
(package private)  int commaSeparated5
          TestCommentCommaSeparated456
(package private)  int commaSeparated6
          TestCommentCommaSeparated456
(package private)  List dates
          A collection of dates.
(package private)  Vector formats
           
(package private)  String hallo
           
(package private)  Set integers
           
(package private)  Set interfaces
           
private  Map mapWithoutComment
           
(package private)  Set myStrings
          A collection of Strings.
private  String name
           
(package private)  HashMap namedIntegers
          A map from strings to integers.
(package private)  Collection nullCollection
          Tests null collections to be treated as empty collections.
(package private)  List nullList
          Tests null lists to be treated as empty lists.
(package private)  Map nullMap
          Tests null maps to be treated as empty maps.
(package private)  Set nullSet
          Tests null sets to be treated as empty sets.
(package private)  String nullString
          Tests null strings to be treated as empty strings.
private  Object parent
           
private  Integer[] qualifiers
           
(package private)  Collection testTypeTrace
           
private  Integer type
           
(package private)  String uglyAttribute1
           
(package private)  char uglyAttribute2
           
(package private)  char uglyAttribute3
           
(package private)  char uglyAttribute4
           
(package private)  char uglyAttribute5
           
(package private)  String[] uglyAttribute6
           
(package private)  char[] uglyAttribute7
           
(package private)  Runnable uglyAttribute8
           
 Integer unqualifiedType
           
 
Constructor Summary
private Example()
           
  Example(String name, Integer type)
           
 
Method Summary
(package private) abstract  void abstractMethod()
           
(package private)  void accessifierPackage()
           
private  void accessifierPrivate()
           
protected  void accessifierProtected()
           
 void accessifierPublic()
           
 void addTestTypeTrace(Object o)
           
 String getName()
           
 Object getParent()
           
 Integer[] getQualifiers()
           
 Integer getType()
           
 Integer getUnqualifiedType()
           
static void main(String[] args)
           
 boolean poly1(Interface someInterface)
           
 void printData(PrintStream o)
           
 void run()
          Some example doc-comment.
 void set(String name, Integer type, Integer[] qualifiers)
           
 void setParent(Object parent)
           
(package private)  void test_super()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private String name

type

private Integer type

qualifiers

private volatile Integer[] qualifiers

hallo

String hallo

commaSeparated1

int commaSeparated1
TestCommentCommaSeparated123


commaSeparated2

int commaSeparated2
TestCommentCommaSeparated123


commaSeparated3

int commaSeparated3
TestCommentCommaSeparated123


commaSeparated4

int commaSeparated4
TestCommentCommaSeparated456


commaSeparated5

int commaSeparated5
TestCommentCommaSeparated456


commaSeparated6

int commaSeparated6
TestCommentCommaSeparated456


uglyAttribute1

String uglyAttribute1

uglyAttribute2

char uglyAttribute2

uglyAttribute3

char uglyAttribute3

uglyAttribute4

char uglyAttribute4

uglyAttribute5

char uglyAttribute5

uglyAttribute6

String[] uglyAttribute6

uglyAttribute7

char[] uglyAttribute7

uglyAttribute8

Runnable uglyAttribute8

a

private int a
Testcomment A


collectionWithoutComment

private List collectionWithoutComment

b

private int b
Testcomment B


mapWithoutComment

private Map mapWithoutComment

myStrings

Set myStrings
A collection of Strings.

See Also:
String

integers

Set integers

anInteger

Integer anInteger

dates

List dates
A collection of dates. Here are some lines to test the reveng GUI....


aDate

Date aDate

interfaces

Set interfaces

anInterface

AbstractImplementation anInterface

formats

Vector formats

aFormat

Format aFormat

namedIntegers

HashMap namedIntegers
A map from strings to integers. * * * * These stars should be removed by the reveng GUI...


unqualifiedType

public Integer unqualifiedType

parent

private Object parent

testTypeTrace

Collection testTypeTrace

nullString

String nullString
Tests null strings to be treated as empty strings.


nullCollection

Collection nullCollection
Tests null collections to be treated as empty collections.


nullSet

Set nullSet
Tests null sets to be treated as empty sets.


nullList

List nullList
Tests null lists to be treated as empty lists.


nullMap

Map nullMap
Tests null maps to be treated as empty maps.

Constructor Detail

Example

private Example()

Example

public Example(String name,
               Integer type)
Method Detail

set

public void set(String name,
                Integer type,
                Integer[] qualifiers)

abstractMethod

abstract void abstractMethod()

run

public void run()
Some example doc-comment.

Specified by:
run in interface Runnable

poly1

public boolean poly1(Interface someInterface)

getName

public String getName()

getType

public Integer getType()

getQualifiers

public Integer[] getQualifiers()

getUnqualifiedType

public Integer getUnqualifiedType()
                           throws IllegalArgumentException
Throws:
IllegalArgumentException

setParent

public void setParent(Object parent)
               throws IllegalArgumentException,
                      NullPointerException
Throws:
IllegalArgumentException
NullPointerException

getParent

public Object getParent()

printData

public void printData(PrintStream o)

accessifierPrivate

private void accessifierPrivate()

accessifierProtected

protected void accessifierProtected()

accessifierPackage

void accessifierPackage()

accessifierPublic

public void accessifierPublic()

test_super

void test_super()

addTestTypeTrace

public void addTestTypeTrace(Object o)

main

public static void main(String[] args)

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.