|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.adt.ui.text.atl.types.Feature
public class Feature
The Feature wrapper.
Field Summary | |
---|---|
protected java.lang.String |
documentation
|
protected java.lang.String |
name
|
Constructor Summary | |
---|---|
Feature(UnitType unit,
org.eclipse.emf.ecore.EObject declaration,
java.lang.String name,
OclAnyType contextType,
OclAnyType type,
boolean ordered,
boolean container,
int lower,
int upper)
Creates a new feature using the given parameters. |
|
Feature(UnitType unit,
org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.String metamodelName)
Creates a new feature from an EMF one. |
Method Summary | |
---|---|
int |
compareTo(Feature o)
|
static Feature |
createFromAttribute(UnitType unit,
org.eclipse.emf.ecore.EObject attribute,
OclAnyType context)
Utility method to initialize a Feature from an ATL model attribute helper. |
boolean |
equals(java.lang.Object obj)
|
OclAnyType |
getContextType()
|
org.eclipse.emf.ecore.EObject |
getDeclaration()
|
java.lang.String |
getDocumentation()
Returns the information related to the operation, or null if not found. |
protected static java.lang.String |
getDocumentation(org.eclipse.emf.ecore.EObject element)
Retrieves the comments associated with the given element. |
java.lang.String |
getImagePath()
|
java.lang.String |
getInformation()
Returns a description of the feature. |
int |
getLowerBound()
|
java.lang.String |
getName()
|
java.lang.String |
getOppositeName()
|
OclAnyType |
getType()
Returns the feature type. |
UnitType |
getUnit()
|
int |
getUpperBound()
|
int |
hashCode()
|
boolean |
isContainer()
|
boolean |
isMany()
|
boolean |
isOrdered()
|
void |
setDocumentation(java.lang.String documentation)
|
void |
setImagePath(java.lang.String imagePath)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String documentation
Constructor Detail |
---|
public Feature(UnitType unit, org.eclipse.emf.ecore.EObject declaration, java.lang.String name, OclAnyType contextType, OclAnyType type, boolean ordered, boolean container, int lower, int upper)
unit
- the atl unit containing the declarationdeclaration
- the feature declarationname
- the feature namecontextType
- the feature context typetype
- the feature typeordered
- the feature "is ordered" flagcontainer
- the feature "is container" flaglower
- the feature lower boundupper
- the feature upper boundpublic Feature(UnitType unit, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String metamodelName)
unit
- the atl unit containing the declarationfeature
- the EMF featuremetamodelName
- the metamodel nameMethod Detail |
---|
public boolean isOrdered()
public boolean isMany()
public java.lang.String getOppositeName()
public boolean isContainer()
public java.lang.String getName()
public OclAnyType getType()
public org.eclipse.emf.ecore.EObject getDeclaration()
public OclAnyType getContextType()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public int getLowerBound()
public int getUpperBound()
public void setImagePath(java.lang.String imagePath)
public java.lang.String getImagePath()
public static Feature createFromAttribute(UnitType unit, org.eclipse.emf.ecore.EObject attribute, OclAnyType context)
unit
- the atl unit containing the declarationattribute
- the attribute helper model elementcontext
- the attribute context type
public UnitType getUnit()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int compareTo(Feature o)
compareTo
in interface java.lang.Comparable<Feature>
Comparable.compareTo(java.lang.Object)
public java.lang.String getInformation()
public java.lang.String getDocumentation()
context
- the context typeparameters
- the operation parameter types
public void setDocumentation(java.lang.String documentation)
protected static java.lang.String getDocumentation(org.eclipse.emf.ecore.EObject element)
element
- the given ATL element
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |