Interface FactTemplate

  • All Superinterfaces:
    java.io.Externalizable, java.io.Serializable
    All Known Implementing Classes:
    FactTemplateImpl

    public interface FactTemplate
    extends java.io.Externalizable
    • Method Detail

      • getName

        java.lang.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:
      • getFieldNames

        java.util.Collection<java.lang.String> getFieldNames()
      • getFieldTemplate

        FieldTemplate getFieldTemplate​(java.lang.String name)
        Return the slot with the String name
        Returns:
      • getFieldTemplateIndex

        int getFieldTemplateIndex​(java.lang.String name)
        Get the pattern index with the given name
        Parameters:
        name -
        Returns:
      • createFact

        Fact createFact()