# com.bea.content.expression
PropertyRef Class

public class PropertyRef
extends `Operator`

An operator that represents a reference to a property.

This base class is used in the left-hand-side of content query expression to reference a content property.

Hierarchy
  `Object`
  `ComplexExpressionImpl`
  `Operator`
  `PropertyRef`

All Implemented Interfaces
  `Cloneable`, `Expression`, `Serializable`

Direct Known Subclasses
  `RequestPropertyRef`, `SessionPropertyRef`, `UserPropertyRef`

## Constructor Summary

PropertyRef(`PropertyRef` propertyRef) Constructor.
PropertyRef(`Object` propSet, `Object` propName) Constructor.
PropertyRef(`Object` propName) Constructor.

## Method Summary

`public `Object`` | `getPropertyName`() Get the property name.
`public `Object`` | `getPropertySet`() Get the property set.
`public `String`` | `getPropertyType`() Return the type of property this refers to.

Methods from `com.bea.p13n.expression.operator.`Operator``
``leftHandSide`, `operand`, `rightHandSide``

Methods from `com.bea.p13n.expression.internal.`ComplexExpressionImpl``
`addListener, addSubExpression, clearCache, clone, createProxyExpression, equals, getCachedValue, getParent, getSource, getSubExpression, getSubExpressionCount, getUserData, hashCode, isCached, isCacheEnabled, isEqualitySubExpression, notifyListeners, removeAllSubExpressions, removeListener, removeSubExpression, removeSubExpression, setCachedValue, setCacheEnabled, setParent, setSource, setSubExpression, setUserData, toString, write`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.bea.p13n.expression.`Expression``
``accept`, `addListener`, `addSubExpression`, `clearCache`, `clone`, `getCachedValue`, `getParameterSignature`, `getParent`, `getSource`, `getSubExpression`, `getSubExpressionCount`, `getUserData`, `isCached`, `isCacheEnabled`, `removeAllSubExpressions`, `removeListener`, `removeSubExpression`, `removeSubExpression`, `setCachedValue`, `setCacheEnabled`, `setSource`, `setSubExpression`, `setUserData`, `write``

## Constructor Detail

### PropertyRef

    public PropertyRef(PropertyRef propertyRef)

  Constructor.

### PropertyRef

    public PropertyRef(Object propSet,
                       Object propName)

  Constructor.

### PropertyRef

    public PropertyRef(Object propName)

  Constructor.

## Method Detail

### getPropertyName() Method

    public Object getPropertyName()

Get the property name.

### getPropertySet() Method

    public Object getPropertySet()

Get the property set.

### getPropertyType() Method

    public String getPropertyType()

Return the type of property this refers to.

This should correspond to a valid propertySetType in the PropertySetManager, but does not have to. The pre-defined values are "CONTENT", "USER", "REQUEST", "SESSION", and "EVENT".