public interface FactTemplate extends Externalizable
Modifier and Type | Method and Description |
---|---|
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.
|
InternalKnowledgePackage |
getPackage() |
readExternal, writeExternal
InternalKnowledgePackage getPackage()
String getName()
int getNumberOfFields()
FieldTemplate[] getAllFieldTemplates()
FieldTemplate getFieldTemplate(String name)
FieldTemplate getFieldTemplate(int index)
index
- int getFieldTemplateIndex(String name)
name
- Fact createFact(long id)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.