com.sun.jaw.reference.query
Class AttributeExp

java.lang.Object
  |
  +--com.sun.jaw.reference.query.QueryEval
        |
        +--com.sun.jaw.reference.query.ValueExp
              |
              +--com.sun.jaw.reference.query.AttributeExp
Direct Known Subclasses:
IndexedAttributeExp, QualifiedAttributeExp

public class AttributeExp
extends ValueExp

For internal use only.

This class represents attributes used as arguments to relational constraints. An AttributeExp may be used anywhere a ValueExp is required.

See Also:
ValueExp, Query, Serialized Form

Constructor Summary
AttributeExp()
           
AttributeExp(java.lang.String attr)
          Creates a new AttributeExp representing the object attribute named by .
 
Method Summary
 ValueExp apply(java.lang.Object mo)
           
 java.lang.String getAttributeName()
           
 java.lang.String getClassVersion()
          Returns the version of this class.
protected  java.lang.Object getValue(java.lang.Object mo)
           
 java.lang.String toString()
          Returns the string representing its value.
 
Methods inherited from class com.sun.jaw.reference.query.QueryEval
setFramework
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeExp

public AttributeExp(java.lang.String attr)
Creates a new AttributeExp representing the object attribute named by .

AttributeExp

public AttributeExp()
Method Detail

getClassVersion

public java.lang.String getClassVersion()
Returns the version of this class.

getAttributeName

public java.lang.String getAttributeName()

apply

public ValueExp apply(java.lang.Object mo)
               throws BadAttributeValueException,
                      InvalidApplicationException
Throws:
BadAttributeValueException - The attribute value passed to the method is invalid.
InvalidApplicationException - An attempt has been made to apply a subquery expression to a managed object or a qualified attribute expression to a managed object of the wrong class.
Overrides:
apply in class ValueExp

toString

public java.lang.String toString()
Returns the string representing its value.
Returns:
The expression's string value.
Overrides:
toString in class java.lang.Object

getValue

protected java.lang.Object getValue(java.lang.Object mo)