Interface JsonEqualityMatchingRuleCfgClient
- All Superinterfaces:
ConfigurationClient
,SchemaProviderCfgClient
JSON Equality Matching Rules determine whether two JSON values are equivalent using a custom set of rules.
-
Method Summary
Modifier and TypeMethodDescriptionManagedObjectDefinition<? extends JsonEqualityMatchingRuleCfgClient,
? extends JsonEqualityMatchingRuleCfg> Get the configuration definition associated with this JSON Equality Matching Rule.Gets the "java-class" property.Gets the "json-keys" property.Gets the "matching-rule-name" property.Gets the "matching-rule-oid" property.Gets the "case-sensitive-strings" property.Gets the "ignore-white-space" property.void
Sets the "case-sensitive-strings" property.void
Sets the "ignore-white-space" property.void
setJavaClass
(ValueOrExpression<String> value) Sets the "java-class" property.void
setJsonKeys
(ValueOrExpression<String> value) Sets the "json-keys" property.void
Sets the "matching-rule-name" property.void
Sets the "matching-rule-oid" property.Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
Methods inherited from interface org.forgerock.opendj.server.config.client.SchemaProviderCfgClient
isEnabled, setEnabled
-
Method Details
-
definition
ManagedObjectDefinition<? extends JsonEqualityMatchingRuleCfgClient,? extends JsonEqualityMatchingRuleCfg> definition()Get the configuration definition associated with this JSON Equality Matching Rule.- Specified by:
definition
in interfaceConfigurationClient
- Specified by:
definition
in interfaceSchemaProviderCfgClient
- Returns:
- Returns the configuration definition associated with this JSON Equality Matching Rule.
-
isCaseSensitiveStrings
ValueOrExpression<Boolean> isCaseSensitiveStrings()Gets the "case-sensitive-strings" property.Indicates whether JSON string comparisons should be case-sensitive.
Default value:
false
- Returns:
- Returns the value of the "case-sensitive-strings" property.
-
setCaseSensitiveStrings
Sets the "case-sensitive-strings" property.Indicates whether JSON string comparisons should be case-sensitive.
- Parameters:
value
- The value of the "case-sensitive-strings" property.- Throws:
PropertyException
- If the new value is invalid.
-
isIgnoreWhiteSpace
ValueOrExpression<Boolean> isIgnoreWhiteSpace()Gets the "ignore-white-space" property.Indicates whether JSON string comparisons should ignore white space.
When enabled, all leading and trailing white space will be removed and intermediate white space will be reduced to a single character.
Default value:
true
- Returns:
- Returns the value of the "ignore-white-space" property.
-
setIgnoreWhiteSpace
Sets the "ignore-white-space" property.Indicates whether JSON string comparisons should ignore white space.
When enabled, all leading and trailing white space will be removed and intermediate white space will be reduced to a single character.
- Parameters:
value
- The value of the "ignore-white-space" property.- Throws:
PropertyException
- If the new value is invalid.
-
getJavaClass
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the JSON Equality Matching Rule implementation.
Default value:
org.opends.server.schema.JsonEqualityMatchingRuleProvider
- Specified by:
getJavaClass
in interfaceSchemaProviderCfgClient
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the JSON Equality Matching Rule implementation.
- Specified by:
setJavaClass
in interfaceSchemaProviderCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
getJsonKeys
Gets the "json-keys" property.Specifies which JSON fields should be compared in order to determine whether two JSON objects are equivalent.
This parameter is a list of space-delimited JSON pointers.
- Returns:
- Returns the value of the "json-keys" property.
-
setJsonKeys
Sets the "json-keys" property.Specifies which JSON fields should be compared in order to determine whether two JSON objects are equivalent.
This parameter is a list of space-delimited JSON pointers.
- Parameters:
value
- The value of the "json-keys" property.- Throws:
PropertyException
- If the new value is invalid.
-
getMatchingRuleName
ValueOrExpression<String> getMatchingRuleName()Gets the "matching-rule-name" property.The name of the custom JSON matching rule.
- Returns:
- Returns the value of the "matching-rule-name" property.
-
setMatchingRuleName
Sets the "matching-rule-name" property.The name of the custom JSON matching rule.
- Parameters:
value
- The value of the "matching-rule-name" property.- Throws:
PropertyException
- If the new value is invalid.
-
getMatchingRuleOid
Gets the "matching-rule-oid" property.The numeric OID of the custom JSON matching rule.
- Returns:
- Returns the value of the "matching-rule-oid" property.
-
setMatchingRuleOid
@MandatoryProperty void setMatchingRuleOid(ValueOrExpression<String> value) throws PropertyException Sets the "matching-rule-oid" property.The numeric OID of the custom JSON matching rule.
- Parameters:
value
- The value of the "matching-rule-oid" property.- Throws:
PropertyException
- If the new value is invalid.
-