com.steptools.stdev
Class Attribute

java.lang.Object
  extended by com.steptools.stdev.Attribute

public abstract class Attribute
extends java.lang.Object

Representation of an attribute of an EXPRESS entity


Method Summary
abstract  java.lang.String getName()
          Gets the name of the attribute.
 StaticEntityDomain getOwner()
          Get the domain that defines the attribute.
 java.lang.Object getValue(EntityInstance inst)
          Retrieves an attribute value in a late-bound fashion.
 boolean isAggregate()
          Determines if the type of the attribute is an Aggregate type.
 boolean isBoolean()
          Determines if the type of the attribute is a boolean
 boolean isEntity()
          Determines if the type of the attribute is an Entity type.
 boolean isInteger()
          Determines if the type of the attribute is an INTEGER type.
 boolean isLogical()
          Determines if the type of the attribute is a boolean
 boolean isReal()
          Determines if the type of the attribute is a REAL type.
 boolean isSelect()
          Determines if the type of the attribute is a Select type.
 boolean isString()
          Determines if the type of the attribute is a STRING type.
 void setValue(EntityInstance inst, java.lang.Object val)
          Sets an attribute value of an entity instance in a late-bound fashon The preferred, early-bound, operation for settting attribute values is to call the setXXX) method on subtype of the EntityInstace object.
abstract  java.lang.Class slotClass()
          Reserved for EXPRESS generated classes
 Domain slotDomain()
          Get the domain for the type of the attribute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

slotClass

public abstract java.lang.Class slotClass()
Reserved for EXPRESS generated classes


slotDomain

public Domain slotDomain()
Get the domain for the type of the attribute.

Returns:
The domain of the attribute type.

getOwner

public StaticEntityDomain getOwner()
Get the domain that defines the attribute. This will always return the entity that ultimately defined the attribute in the EXPRESS, regardless of any redeclarations of the attribute

Returns:
The domain for the defining Entity.

isBoolean

public boolean isBoolean()
Determines if the type of the attribute is a boolean

Returns:
true if the attribute value is a boolean.

isLogical

public boolean isLogical()
Determines if the type of the attribute is a boolean

Returns:
true if the attribute value is a boolean.

isEntity

public boolean isEntity()
Determines if the type of the attribute is an Entity type.

Returns:
true if the attribute value is an entity.

isSelect

public boolean isSelect()
Determines if the type of the attribute is a Select type.

Returns:
true if the attribute value is a Select type.

isAggregate

public boolean isAggregate()
Determines if the type of the attribute is an Aggregate type.

Returns:
true if the attribute value is an Aggregate type.

isReal

public boolean isReal()
Determines if the type of the attribute is a REAL type.

Returns:
true if the attribute value is an Aggregate type.

isInteger

public boolean isInteger()
Determines if the type of the attribute is an INTEGER type.

Returns:
true if the attribute value is an Aggregate type.

isString

public boolean isString()
Determines if the type of the attribute is a STRING type.

Returns:
true if the attribute value is an Aggregate type.

setValue

public void setValue(EntityInstance inst,
                     java.lang.Object val)
Sets an attribute value of an entity instance in a late-bound fashon The preferred, early-bound, operation for settting attribute values is to call the setXXX) method on subtype of the EntityInstace object.

Parameters:
inst - The instance getting updated.
val - The value to set the attribute to. For integer and double, the value must be wrapped up in a java.lang.Integer or java.lang.Double. For all other types, the value is passed in directly.

getName

public abstract java.lang.String getName()
Gets the name of the attribute.

Returns:
The attribute name.

getValue

public java.lang.Object getValue(EntityInstance inst)
Retrieves an attribute value in a late-bound fashion. The preferred, early-bound operation for getting attribute values is to call the getXXX) method on subtype of the EntityInstace object.

Parameters:
inst - The EntityInstance to get the attribute from.
Returns:
The value for the attribute. If the value is a double, or int, it is wrapped in a java.lang.Double or java.lang.Integer, unless the value is unset. Other types are returned literally If the attribute is unset, null is returned.