edu.cmu.sei.aadl.model.properties
Class AbstractAadlPropertyValue

java.lang.Object
  extended by edu.cmu.sei.aadl.model.properties.AbstractAadlPropertyValue
All Implemented Interfaces:
AadlPropertyValue
Direct Known Subclasses:
BogusPropertyValue, ListPropertyValue, NonExistentPropertyValue, ScalarPropertyValue, UndefinedByReferencePropertyValue, UndefinedPropertyValue

public abstract class AbstractAadlPropertyValue
extends java.lang.Object
implements AadlPropertyValue

Abstract implementation providing the equals() method. Need to override hashcode() ...

Author:
aarong

Constructor Summary
protected AbstractAadlPropertyValue()
           
protected AbstractAadlPropertyValue(AadlPropertyValue valToCopy)
           
protected AbstractAadlPropertyValue(java.util.List da)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.List getDefiningAssociations()
          Get the property associations/property declaration that determines this value.
abstract  int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.cmu.sei.aadl.model.properties.AadlPropertyValue
evaluate, exists, getScalarValue, getValue, instantiate, isList, isNotPresent, preEvaluate
 

Constructor Detail

AbstractAadlPropertyValue

protected AbstractAadlPropertyValue()

AbstractAadlPropertyValue

protected AbstractAadlPropertyValue(java.util.List da)

AbstractAadlPropertyValue

protected AbstractAadlPropertyValue(AadlPropertyValue valToCopy)
Method Detail

getDefiningAssociations

public final java.util.List getDefiningAssociations()
Description copied from interface: AadlPropertyValue
Get the property associations/property declaration that determines this value. This is list of at least length one. It contains zero or more property associations followed by at most one property declaration. Specifically, if the value is not list-valued, then this returns a list of length one, where the element is either the PropertyAssociation that provides the value, or the PropertyDefinition of the property in the case that the value is the default value. If the value is list-valued, then the list represents those property assocations and possibly the property defintiion that contribute to the value of the list. This list may be of non-zero length even when AadlPropertyValue.isNotPresent() is true because the value actually be defined to be a reference to another property value and that property value might be undefined.

Specified by:
getDefiningAssociations in interface AadlPropertyValue

hashCode

public abstract int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object