Dresden OCL Toolkit

tudresden.ocl.check.types.xmifacade
Class ModelAttribute

java.lang.Object
  extended bytudresden.ocl.check.types.xmifacade.ModelAttribute
All Implemented Interfaces:
Comparable

public final class ModelAttribute
extends Object
implements Comparable

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.

See Also:
Model.AMBIGOUS

Field Summary
private  String name
           
private  ModelClass parent
           
private  Type[] qualifiers
           
private  Type type
           
 Type unqualifiedType
           
 
Constructor Summary
ModelAttribute(String name, Type type)
           
ModelAttribute(String name, Type type, Type[] qualifiers)
           
 
Method Summary
 int compareTo(Object o)
           
 String getName()
           
 ModelClass getParent()
           
 Type[] getQualifiers()
           
 Type getType()
           
 Type getUnqualifiedType()
           
 void printData(PrintStream o)
           
 void setParent(ModelClass parent)
           
 
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 Type type

qualifiers

private Type[] qualifiers

unqualifiedType

public Type unqualifiedType

parent

private ModelClass parent
Constructor Detail

ModelAttribute

public ModelAttribute(String name,
                      Type type)

ModelAttribute

public ModelAttribute(String name,
                      Type type,
                      Type[] qualifiers)
Method Detail

getName

public String getName()

getType

public Type getType()

getQualifiers

public Type[] getQualifiers()

getUnqualifiedType

public Type getUnqualifiedType()

setParent

public void setParent(ModelClass parent)

getParent

public ModelClass getParent()

printData

public void printData(PrintStream o)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

Dresden OCL Toolkit

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