AttributeProperty (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.reflect, interface: AttributeProperty

# Interface AttributeProperty

All Superinterfaces:
  `PropertyDescriptor`

All Known Implementing Classes:
  `SimpleAttributeProperty`

public interface AttributeProperty extends PropertyDescriptor
Represents a simple object property.

Since:
  3.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ObjAttribute`
  `getAttribute()`

  ### Methods inherited from interface PropertyDescriptor

  `equals, getName, injectValueHolder, readProperty, readPropertyDirectly, visit, writeProperty, writePropertyDirectly`
  Modifier and Type
  Method
  Description
  `default boolean`
  `equals(Object value1, Object value2)`
  Allows to use special logic to compare values for equality as in rare cases it is not sufficient to use the default equals() method.
  `String`
  `getName()`
  Returns property name.
  `void`
  `injectValueHolder(Object object)`
  If a property is implemented as a ValueHolder, this operation would create an unfaulted value holder and inject it into the object, if an object doesn't have it set yet.
  `Object`
  `readProperty(Object object)`
  Returns a property value, inflating unresolved object if need.
  `Object`
  `readPropertyDirectly(Object object)`
  Returns a property value of an object without disturbing the object fault status.
  `boolean`
  `visit(PropertyVisitor visitor)`
  A visitor accept method.
  `void`
  `writeProperty(Object object, Object oldValue, Object newValue)`
  Sets a property value, inflating unresolved object if need.
  `void`
  `writePropertyDirectly(Object object, Object oldValue, Object newValue)`
  Sets a property value of an object without disturbing the object fault status.

- ## Method Details

  - ### getAttribute

    ObjAttribute getAttribute()