UML.Semantic.Foundation.Core
Class Attribute

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Feature
              |
              +--UML.Semantic.Foundation.Core.StructuralFeature
                    |
                    +--UML.Semantic.Foundation.Core.Attribute
All Implemented Interfaces:
Element, ElementAtt, LinkAtt

public class Attribute
extends StructuralFeature

An attribute is a named slot within a classifier that describes a range of values that instances of the classifier may hold.

In the metamodel an Attribute is a named piece of the declared state of a Classifier, particularly the range of values that Instances of the Classifier may hold.


Field Summary
 
Fields inherited from class UML.Semantic.Foundation.Core.StructuralFeature
multiplicity
 
Constructor Summary
Attribute()
          Constructor.
 
Method Summary
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 void getInfo()
          Gets info on Attribute.
 java.lang.String getInitialValue()
          Gets the initial value string of this attribute.
 void setInitialValue(java.lang.String expr)
          Sets the initial value of this attribute.
 
Methods inherited from class UML.Semantic.Foundation.Core.StructuralFeature
getChangeable, getMultiplicity, getTargetScope, getType, setChangeable, setMultiplicity, setTargetScope, setType
 
Methods inherited from class UML.Semantic.Foundation.Core.Feature
getOwner, getOwnerScope, setOwner, setOwnerScope
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()
Constructor.

Method Detail

setInitialValue

public void setInitialValue(java.lang.String expr)
Sets the initial value of this attribute.


getInitialValue

public java.lang.String getInitialValue()
Gets the initial value string of this attribute.


check

public boolean check()
Checks if well-formedness rules are respected in this model element.

Overrides:
check in class StructuralFeature
Returns:
True if check was successful, false otherwise.

getInfo

public void getInfo()
Gets info on Attribute.

Overrides:
getInfo in class ModelElement