WithNameSpecification
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.search.Specification
public class WithNameSpecification extends Specification
Represents a specification that filters properties with a particular name.
| Constructor | Description |
|---|---|
| WithNameSpecification(String propertyName) | Initializes a new instance of the WithNameSpecification class. |
| WithNameSpecification(String propertyName, boolean ignoreCase) | Initializes a new instance of the WithNameSpecification class. |
| Method | Description |
|---|---|
| getPropertyName() | Gets the name of properties that satisfy the specification. |
| getIgnoreCase() | Gets a value indicating whether the case of the strings being compared should be ignored. |
| isSatisfiedBy(MetadataProperty candidate) | Verifies whether a MetadataProperty satisfies the specification. |
public WithNameSpecification(String propertyName)
Initializes a new instance of the WithNameSpecification class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| propertyName | java.lang.String | The type of properties that satisfy the specification. |
public WithNameSpecification(String propertyName, boolean ignoreCase)
Initializes a new instance of the WithNameSpecification class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| propertyName | java.lang.String | The type of properties that satisfy the specification. |
| ignoreCase | boolean | A value indicating whether the case of the strings being compared should be ignored. |
public final String getPropertyName()
Gets the name of properties that satisfy the specification.
Returns: java.lang.String - The name of properties that satisfy the specification.
public final boolean getIgnoreCase()
Gets a value indicating whether the case of the strings being compared should be ignored.
Returns: boolean - True if the case should be ignored; otherwise, false.
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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.