站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

FactTemplate (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.facttemplates
Interface FactTemplate

All Superinterfaces:
Serializable
All Known Implementing Classes:
FactTemplateImpl

public interface FactTemplate
extends Serializable

Author:
Peter Lin Template defines the methods to access an object, which is the equivalent of un-ordered facts. It defines all the necessary methods for Deftemplate.

Method Summary
 Fact createFact(long id)
           
 FieldTemplate[] getAllFieldTemplates()
          Return an array of all the slots.
 FieldTemplate getFieldTemplate(int index)
          Get the Slot at the given pattern id
 FieldTemplate getFieldTemplate(String name)
          Return the slot with the String name
 int getFieldTemplateIndex(String name)
          Get the pattern index with the given name
 String getName()
          The name of the template may be the fully qualified class name, or an alias.
 int getNumberOfFields()
          templates may have 1 or more slots.
 Package getPackage()
           
 

Method Detail

getPackage

Package getPackage()

getName

String getName()
The name of the template may be the fully qualified class name, or an alias.

Returns:

getNumberOfFields

int getNumberOfFields()
templates may have 1 or more slots. A slot is a named pattern with a specific type of value.

Returns:

getAllFieldTemplates

FieldTemplate[] getAllFieldTemplates()
Return an array of all the slots.

Returns:

getFieldTemplate

FieldTemplate getFieldTemplate(String name)
Return the slot with the String name

Returns:

getFieldTemplate

FieldTemplate getFieldTemplate(int index)
Get the Slot at the given pattern id

Parameters:
index -
Returns:

getFieldTemplateIndex

int getFieldTemplateIndex(String name)
Get the pattern index with the given name

Parameters:
name -
Returns:

createFact

Fact createFact(long id)


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.