Class XpathConstraint

    • Constructor Detail

      • XpathConstraint

        public XpathConstraint()
    • Method Detail

      • addChunck

        public XpathConstraint.XpathChunk addChunck​(java.lang.Class<?> clazz,
                                                    java.lang.String field,
                                                    int index,
                                                    boolean iterate,
                                                    boolean lazy)
      • getRequiredDeclarations

        public Declaration[] getRequiredDeclarations()
        Description copied from interface: Constraint
        Returns all the declarations required by the given constraint implementation.
        Returns:
      • replaceDeclaration

        public void replaceDeclaration​(Declaration oldDecl,
                                       Declaration newDecl)
        Description copied from interface: Constraint
        When a rule contains multiple logical branches, i.e., makes use of 'OR' CE, it is required to clone patterns and declarations for each logical branch. Since this is done at ReteOO build type, when constraints were already created, eventually some constraints need to update their references to the declarations.
      • isTemporal

        public boolean isTemporal()
        Description copied from interface: Constraint
        Returns true in case this constraint is a temporal constraint
        Returns:
      • isAllowedCachedRight

        public boolean isAllowedCachedRight​(Tuple tuple,
                                            ContextEntry context)
      • createContextEntry

        public ContextEntry createContextEntry()
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class MutableTypeConstraint
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class MutableTypeConstraint
        Throws:
        java.io.IOException
      • getResultClass

        public java.lang.Class<?> getResultClass()
      • setDeclaration

        public void setDeclaration​(Declaration declaration)
      • getXpathStartDeclaration

        public Declaration getXpathStartDeclaration()
      • setXpathStartDeclaration

        public void setXpathStartDeclaration​(Declaration xpathStartDeclaration)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object