Commit d9d2180c authored by cdanger's avatar cdanger

Merge branch 'master' into develop

parents f6732ed3 8a9fccef
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2804cd619dde437a883da48ad5c283bc)](https://www.codacy.com/app/coder103/authzforce-ce-core-pdp-api?utm_source=github.com&utm_medium=referral&utm_content=authzforce/core-pdp-api&utm_campaign=Badge_Grade)
[![Javadocs](http://javadoc.io/badge/org.ow2.authzforce/authzforce-ce-core-pdp-api.svg)](http://javadoc.io/doc/org.ow2.authzforce/authzforce-ce-core-pdp-api)
# AuthZForce Core PDP API
High-level API for using AuthZForce PDP engine and implementing PDP engine extensions: attribute datatypes, functions, policy/rule combining algorithms, attribute providers, policy providers, XACML Request/Result filters, etc.
......
......@@ -55,7 +55,7 @@ public abstract class BaseFirstOrderFunctionCall<RETURN extends Value> implement
private static final IllegalArgumentException EVAL_ARGS_NULL_INPUT_STACK_EXCEPTION = new IllegalArgumentException("Input stack to store evaluation results is NULL");
/**
* Evaluates primitive argument expressions in the given context, and stores all result values in a given array of a specific datatype.
* Evaluates primitive argument expressions in the given context, and stores all result values in a given linear collection of a specific datatype.
*
* @param args
* (mandatory) function arguments
......@@ -101,7 +101,7 @@ public abstract class BaseFirstOrderFunctionCall<RETURN extends Value> implement
}
/**
* Evaluates primitive argument expressions in the given context, and stores all result values in a given array.
* Evaluates primitive argument expressions in the given context, and stores all result values in a given linear collection.
*
* @param args
* (mandatory) function arguments
......
......@@ -36,26 +36,23 @@ public abstract class BaseFunction<RETURN_T extends Value> implements Function<R
private transient volatile int hashCode = 0; // Effective Java - Item 9
@Override
public final String getId()
{
public final String getId() {
return this.functionId;
}
protected BaseFunction(final String functionId)
{
this.functionId = functionId;
this.indeterminateArgMessagePrefix = "Function " + functionId + ": Indeterminate arg #";
this.indeterminateArgMessagePrefix = "Function '" + functionId + "': Indeterminate arg #";
}
@Override
public final String toString()
{
public final String toString() {
return this.functionId;
}
@Override
public final int hashCode()
{
public final int hashCode() {
if (hashCode == 0)
{
hashCode = this.functionId.hashCode();
......@@ -64,8 +61,7 @@ public abstract class BaseFunction<RETURN_T extends Value> implements Function<R
}
@Override
public final boolean equals(final Object obj)
{
public final boolean equals(final Object obj) {
if (this == obj)
{
return true;
......@@ -88,8 +84,7 @@ public abstract class BaseFunction<RETURN_T extends Value> implements Function<R
* function argument index (#x) that could not be determined
* @return "Indeterminate arg#x" exception
*/
public final String getIndeterminateArgMessage(final int argIndex)
{
public final String getIndeterminateArgMessage(final int argIndex) {
return indeterminateArgMessagePrefix + argIndex;
}
......@@ -100,8 +95,7 @@ public abstract class BaseFunction<RETURN_T extends Value> implements Function<R
* function argument index (#x) that could not be determined
* @return "Indeterminate arg#x" exception
*/
public final IndeterminateEvaluationException getIndeterminateArgException(final int argIndex)
{
public final IndeterminateEvaluationException getIndeterminateArgException(final int argIndex) {
return new IndeterminateEvaluationException(getIndeterminateArgMessage(argIndex), XacmlStatusCode.PROCESSING_ERROR.value());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment