OrSpecification

Inheritance: java.lang.Object, com.groupdocs.metadata.search.Specification

public class OrSpecification extends Specification

Represents a composite specification that uses the logical OR operator to combine two given search specifications.

Methods

Method Description
getLeft() Gets the left specification.
getRight() Gets the right specification.
isSatisfiedBy(MetadataProperty candidate) Verifies whether a MetadataProperty satisfies the specification.

getLeft()

public final Specification getLeft()

Gets the left specification.

Returns: Specification - The left specification.

getRight()

public final Specification getRight()

Gets the right specification.

Returns: Specification - The right specification.

isSatisfiedBy(MetadataProperty candidate)

public 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.