Specification

Inheritance: java.lang.Object

public abstract class Specification

Provides a base abstract class for search specifications that can be combined using logical operators.

Constructors

Constructor Description
Specification()

Methods

Method Description
isSatisfiedBy(MetadataProperty candidate) Verifies whether a MetadataProperty satisfies the specification.
and(Specification other) Combines two search specifications using the logical AND operator.
or(Specification other) Combines two search specifications using the logical OR operator.
not() Negates the specification.

Specification()

public Specification()

isSatisfiedBy(MetadataProperty candidate)

public abstract boolean isSatisfiedBy(MetadataProperty candidate)

Verifies whether a MetadataProperty satisfies the specification.

Parameters:

Parameter Type Description
candidate MetadataProperty A metadata property to test.

Returns: boolean - True, if the passed property satisfies the specification; otherwise, false.

and(Specification other)

public final Specification and(Specification other)

Combines two search specifications using the logical AND operator.

Parameters:

Parameter Type Description
other Specification A specification to combine with.

Returns: Specification - A composite specification.

or(Specification other)

public final Specification or(Specification other)

Combines two search specifications using the logical OR operator.

Parameters:

Parameter Type Description
other Specification A specification to combine with.

Returns: Specification - A composite specification.

not()

public final Specification not()

Negates the specification.

Returns: Specification - A composite specification.