Class EndpointRuleSet

    • Method Detail

      • fromNode

        public static EndpointRuleSet fromNode​(Node node)
                                        throws RuleError
        Creates an EndpointRuleSet of a specific type from the given Node information.
        Parameters:
        node - the node to deserialize.
        Returns:
        the created EndpointRuleSet.
        Throws:
        RuleError
      • getParameters

        public Parameters getParameters()
        Gets the Parameters defined in this rule-set.
        Returns:
        the parameters defined in the rule-set.
      • getRules

        public java.util.List<Rule> getRules()
        Gets the list of Rules defined in this rule-set.
        Returns:
        the rules defined in this rule-set.
      • getVersion

        public java.lang.String getVersion()
        Gets the version of this rule-set.
        Returns:
        the rule-set version.
      • typeCheck

        public Type typeCheck()
      • typeCheck

        public Type typeCheck​(Scope<Type> scope)
        Description copied from interface: TypeCheck
        Checks whether the given types within a scope satisfy the constraints.
        Specified by:
        typeCheck in interface TypeCheck
        Parameters:
        scope - the scope to evaluate.
        Returns:
        the type validated by the scope check.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public static boolean hasBuiltIn​(java.lang.String name)
        Returns true if a built-in of the provided name has been registered.
        Parameters:
        name - the name of the built-in to check for.
        Returns:
        true if the built-in is present, false otherwise.
      • getKeyString

        public static java.lang.String getKeyString()
        Gets the built-in names as a joined string.
        Returns:
        a string of the built-in names.
      • createFunctionFactory

        public static java.util.function.Function<FunctionNode,​java.util.Optional<LibraryFunction>> createFunctionFactory()
        Creates a LibraryFunction factory function using the loaded function definitions.
        Returns:
        the created factory.
      • getAuthSchemeValidators

        public static java.util.List<AuthSchemeValidator> getAuthSchemeValidators()
        Gets loaded authentication scheme validators.
        Returns:
        a list of AuthSchemeValidators.