Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.drools.definition.type
Interface FactField

All Superinterfaces:
  Externalizable, Serializable

    public interface FactField

extends Externalizable

A field from a declared fact type

Method Summary
`Object` | `get(Object bean)` Returns the value of this field in the given fact.
`int` | `getIndex()`
`String` | `getName()` Returns the name of this field.
`Class<?>` | `getType()` Returns the type of this field.
`boolean` | `isKey()` Returns true if this field is a key field.
`void` | `set(Object bean, Object value)` Sets the value of this field in the given fact.

Methods inherited from interface java.io.Externalizable
`readExternal, writeExternal`

Method Detail

### getType

    Class<?> getType()

  Returns the type of this field.

  Returns:

### getName

    String getName()

  Returns the name of this field.

  Returns:

### isKey

    boolean isKey()

  Returns true if this field is a key field. A key field is included in hashcode() calculation and on the equals() method evaluation. Non-key fields are not checked in this methods.

  Returns:

### set

    void set(Object bean,
             Object value)

  Sets the value of this field in the given fact.

  Parameters:
    `bean` - fact on which to set the field.
    `value` - the value to set on the field.

### get

    Object get(Object bean)

  Returns the value of this field in the given fact.

  Parameters:
    `bean` - the fact from which the field will be read.
  Returns:
    the value of the field on the given fact.

### getIndex

    int getIndex()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.