uci.uml.Foundation.Core
Class ElementImpl

java.lang.Object
  |
  +--uci.uml.Foundation.Core.ElementImpl
Direct Known Subclasses:
ModelElementImpl, TaggedValue

public class ElementImpl
extends Object
implements Element, Highlightable

Highlight is an added attribute that is not in the UML spec. It is used in Argo/UML to visually identify the offending elements reported by a design critic. Most operations report state changes via the _vetoListeners, but setHighlight sends notifications to _propertyListeners.

See Also:
Serialized Form

Field Summary
 Vector _characteristic
           
 Stereotype _classification
           
 boolean _highlight
           
 Name _name
           
 Vector _propertyListeners
           
protected static PropertyChangeListener _staticListener
           
 Vector _taggedValue
           
 Vector _vetoListeners
           
 String elementID
           
 
Constructor Summary
ElementImpl()
           
ElementImpl(Name name)
           
ElementImpl(String nameStr)
           
 
Method Summary
 void addCharacteristic(TaggedValue x)
           
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void addTaggedValue(TaggedValue x)
           
 void addVetoableChangeListener(VetoableChangeListener listener)
           
 String dbgString()
           
 void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
           
 void firePropertyChange(String propertyName, int oldValue, int newValue)
           
 void firePropertyChange(String propertyName, Object oldValue, Object newValue)
           
 void firePropertyChangeNoCritique(String propertyName, boolean oldValue, boolean newValue)
           
 void firePropertyChangeNoCritique(String propertyName, Object oldValue, Object newValue)
           
 void fireVetoableChange(String propertyName, boolean oldValue, boolean newValue)
           
 void fireVetoableChange(String propertyName, int oldValue, int newValue)
           
 void fireVetoableChange(String propertyName, Object oldValue, Object newValue)
           
 void fireVetoableChangeNoCompare(String propertyName, Object oldValue, Object newValue)
           
 Vector getCharacteristic()
           
 Stereotype getClassification()
           
static int getElementCount()
           
 boolean getHighlight()
           
 String getId()
           
 Name getName()
           
 Vector getNamedProperty(String propName)
           
 String getOCLTypeStr()
           
 Vector getTaggedValue()
           
 Vector getVetoListeners()
           
static String newElementID()
           
 void removeCharacteristic(TaggedValue x)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void removeTaggedValue(TaggedValue x)
           
 void removeVetoableChangeListener(VetoableChangeListener listener)
           
 void setCharacteristic(Vector x)
           
 void setClassification(Stereotype x)
           
static void setElementCount(int c)
           
 void setHighlight(boolean x)
           
 void setId(String id)
           
 void setName(Name x)
           
 void setName(String x)
           
static void setStaticChangeListener(PropertyChangeListener l)
           
 void setTaggedValue(Vector x)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_staticListener

protected static PropertyChangeListener _staticListener

elementID

public String elementID

_name

public Name _name

_characteristic

public Vector _characteristic

_classification

public Stereotype _classification

_taggedValue

public Vector _taggedValue

_vetoListeners

public transient Vector _vetoListeners

_propertyListeners

public transient Vector _propertyListeners

_highlight

public boolean _highlight
Constructor Detail

ElementImpl

public ElementImpl()

ElementImpl

public ElementImpl(Name name)

ElementImpl

public ElementImpl(String nameStr)
Method Detail

newElementID

public static String newElementID()

setStaticChangeListener

public static void setStaticChangeListener(PropertyChangeListener l)

getElementCount

public static int getElementCount()

setElementCount

public static void setElementCount(int c)

getNamedProperty

public Vector getNamedProperty(String propName)

getVetoListeners

public Vector getVetoListeners()

getId

public String getId()
Specified by:
getId in interface Element

setId

public void setId(String id)

getCharacteristic

public Vector getCharacteristic()
Specified by:
getCharacteristic in interface Element

setCharacteristic

public void setCharacteristic(Vector x)
                       throws PropertyVetoException
Specified by:
setCharacteristic in interface Element

addCharacteristic

public void addCharacteristic(TaggedValue x)
                       throws PropertyVetoException

removeCharacteristic

public void removeCharacteristic(TaggedValue x)
                          throws PropertyVetoException

getClassification

public Stereotype getClassification()

setClassification

public void setClassification(Stereotype x)
                       throws PropertyVetoException

getName

public Name getName()
Specified by:
getName in interface Element

setName

public void setName(String x)
             throws PropertyVetoException

setName

public void setName(Name x)
             throws PropertyVetoException
Specified by:
setName in interface Element

getTaggedValue

public Vector getTaggedValue()
Specified by:
getTaggedValue in interface Element

setTaggedValue

public void setTaggedValue(Vector x)
                    throws PropertyVetoException
Specified by:
setTaggedValue in interface Element

addTaggedValue

public void addTaggedValue(TaggedValue x)
                    throws PropertyVetoException

removeTaggedValue

public void removeTaggedValue(TaggedValue x)
                       throws PropertyVetoException

getHighlight

public boolean getHighlight()
Specified by:
getHighlight in interface Highlightable

setHighlight

public void setHighlight(boolean x)
Specified by:
setHighlight in interface Highlightable

addVetoableChangeListener

public void addVetoableChangeListener(VetoableChangeListener listener)

removeVetoableChangeListener

public void removeVetoableChangeListener(VetoableChangeListener listener)

fireVetoableChange

public void fireVetoableChange(String propertyName,
                               boolean oldValue,
                               boolean newValue)
                        throws PropertyVetoException

fireVetoableChange

public void fireVetoableChange(String propertyName,
                               int oldValue,
                               int newValue)
                        throws PropertyVetoException

fireVetoableChange

public void fireVetoableChange(String propertyName,
                               Object oldValue,
                               Object newValue)
                        throws PropertyVetoException

fireVetoableChangeNoCompare

public void fireVetoableChangeNoCompare(String propertyName,
                                        Object oldValue,
                                        Object newValue)
                                 throws PropertyVetoException

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface Highlightable

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface Highlightable

firePropertyChange

public void firePropertyChange(String propertyName,
                               boolean oldValue,
                               boolean newValue)

firePropertyChangeNoCritique

public void firePropertyChangeNoCritique(String propertyName,
                                         boolean oldValue,
                                         boolean newValue)

firePropertyChange

public void firePropertyChange(String propertyName,
                               int oldValue,
                               int newValue)

firePropertyChange

public void firePropertyChange(String propertyName,
                               Object oldValue,
                               Object newValue)

firePropertyChangeNoCritique

public void firePropertyChangeNoCritique(String propertyName,
                                         Object oldValue,
                                         Object newValue)

toString

public String toString()
Overrides:
toString in class Object

getOCLTypeStr

public String getOCLTypeStr()

dbgString

public String dbgString()