|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--UML.Semantic.Foundation.Core.ModelElement
A model element is an element that is an abstraction drawn from the system being modeled. Contrast with view element, which is an element whose purpose is to provide a presentation of information for human comprehension.
In the metamodel a ModelElement is a named entity
in a Model. It is the base for all modeling
metaclasses in the UML. All other modeling metaclasses are either
direct or indirect subclasses of ModelElement.
ModelElement is an abstract metaclass.
Each ModelElement can be regarded as a template. A template has a set of templateParameters that denotes which of the parts of a ModelElement are the template parameters. A ModelElementis a template when there is at least one template parameter. If it is not a template, a ModelElement cannot have template parameters. However, such embedded parameters are not usually complete and need not satisfy well-formedness rules. It is the arguments supplied when the template is instantiated that must be well-formed.
Partially instantiated templates are allowed. This is the case when there are arguments provided for some, but not all templateParameters. A partially instantiated template is still a template, since it has still parameters.
Any model element may have arbitrary tagged values and constraints (subject to theses making sense). A model element may have at most one stereotype whose base class must match the UML class of the modeling element (such as Class, Association, Dependency, etc.). The presence of a stereotype may impose implicit constraints on the modeling element and may require the presence of specific tagged values.
UML.Semantic.Foundation.AuxiliaryElements.UmlViewElement| Constructor Summary | |
ModelElement()
|
|
| Method Summary | |
void |
add(Locator locator)
Adds a locator to the set of locators. |
void |
add(ModelElement elem)
Adds an element into the Dictionary. |
boolean |
check()
Checks if well-formedness rules are respected in this model element. |
java.lang.String |
getBindingList()
Gets the binding list of this element template (if any). |
java.lang.String |
getConstraintList()
Gets the constraint list of this element (if any). |
java.lang.String |
getElementType()
Gets the type of this element. |
int |
getErrors()
Gets the value of the errors attribute of this element. |
java.lang.String |
getHref()
Gets the element href. |
java.lang.String |
getId()
Gets the element identifier. |
java.lang.String |
getIdentification()
Gets an element identification string. |
java.lang.String |
getIdref()
Gets the element identifier reference. |
int |
getIndex()
Gets the index of the Dictionary where this element is stored. |
void |
getInfo()
Gets info on this element. |
boolean |
getIsOwned()
Gets the value of the isOwned attribute. |
java.lang.String |
getLabel()
Gets the element label. |
java.util.Vector |
getLocator()
Gets the set of locators. |
java.lang.String |
getName()
Gets the element name attribute. |
Namespace |
getNamespace()
Gets the namespace which this element belongs to. |
java.lang.String |
getNamespaceId()
Gets the identifier of the namespace which this element belongs to. |
Stereotype |
getStereotype()
Gets the stereotype of this element. |
ModelElement |
getTemplate()
Gets the template of this element. |
java.lang.String |
getTemplateParameterList()
Gets the parameter list of this element template (if any). |
java.lang.String |
getTitle()
Gets the element reference title. |
java.lang.String |
getUuid()
Gets the element unique identifier. |
java.lang.String |
getUuidref()
Gets the element unique identifier reference. |
java.lang.String |
getVisibility()
Gets the current visibility kind. |
java.lang.String |
getVisibilitySymbol()
Gets the current visibility kind symbol. |
int |
getWarnings()
Gets the value of the warnings attribute of this element. |
void |
setElementType(java.lang.String type)
Sets the type of this element. |
void |
setErrors(int n)
Sets the value of the errors attribute of this element. |
void |
setHref(java.lang.String href)
Sets the element href reference to given value. |
void |
setId(java.lang.String id)
Sets the element identifier to given value. |
void |
setIdref(java.lang.String idref)
Sets the element identifier reference to given value. |
void |
setIndex(int index)
Sets the index of the Dictionary (where this element is stored) to given index. |
void |
setIsOwned(java.lang.String mode)
Sets the value of the isOwned attribute. |
void |
setLabel(java.lang.String label)
Sets the element label to given value. |
void |
setName(java.lang.String name)
Sets the element name attribute to given value. |
void |
setNamespace(java.lang.String namespace)
Sets the element namespace. |
void |
setTemplate(java.lang.String template)
Sets the template of this element. |
void |
setTitle(java.lang.String title)
Sets the element reference title to given value. |
void |
setUuid(java.lang.String uuid)
Sets the element unique identifier to given value. |
void |
setUuidref(java.lang.String uuidref)
Sets the element unique identifier reference to given value. |
void |
setVisibility(java.lang.String mode)
Sets the element visibility to the given kind. |
void |
setWarnings(int n)
Sets the value of the warnings attribute of this element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ModelElement()
| Method Detail |
public void setId(java.lang.String id)
setId in interface ElementAttpublic void setLabel(java.lang.String label)
setLabel in interface ElementAttpublic void setUuid(java.lang.String uuid)
setUuid in interface ElementAttpublic void setHref(java.lang.String href)
setHref in interface LinkAttpublic void setTitle(java.lang.String title)
setTitle in interface LinkAttpublic void add(Locator locator)
public void setIdref(java.lang.String idref)
setIdref in interface LinkAttpublic void setUuidref(java.lang.String uuidref)
setUuidref in interface LinkAttpublic java.lang.String getId()
getId in interface ElementAttpublic java.lang.String getLabel()
getLabel in interface ElementAttpublic java.lang.String getUuid()
getUuid in interface ElementAttpublic java.lang.String getHref()
getHref in interface LinkAttpublic java.lang.String getTitle()
public java.util.Vector getLocator()
public java.lang.String getIdref()
getIdref in interface LinkAttpublic java.lang.String getUuidref()
getUuidref in interface LinkAttpublic void setName(java.lang.String name)
public java.lang.String getName()
public java.lang.String getIdentification()
public void setNamespace(java.lang.String namespace)
public Namespace getNamespace()
public java.lang.String getNamespaceId()
public void setVisibility(java.lang.String mode)
public java.lang.String getVisibility()
public java.lang.String getVisibilitySymbol()
public Stereotype getStereotype()
public void setTemplate(java.lang.String template)
public ModelElement getTemplate()
public java.lang.String getTemplateParameterList()
public java.lang.String getBindingList()
public java.lang.String getConstraintList()
public void setElementType(java.lang.String type)
public java.lang.String getElementType()
public void setIsOwned(java.lang.String mode)
public boolean getIsOwned()
public void setIndex(int index)
public int getIndex()
public void setWarnings(int n)
public int getWarnings()
public void setErrors(int n)
public int getErrors()
public void add(ModelElement elem)
Dictionarypublic boolean check()
public void getInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||