tudresden.ocl.check.types.xmifacade
Class ModelAttribute
java.lang.Object
tudresden.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private String name
type
private Type type
qualifiers
private Type[] qualifiers
unqualifiedType
public Type unqualifiedType
parent
private ModelClass parent
ModelAttribute
public ModelAttribute(String name,
Type type)
ModelAttribute
public ModelAttribute(String name,
Type type,
Type[] qualifiers)
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
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.