public final class JcrPropertyConstraints extends Object
JcrProperties
check.
config
options:
name
denyIfAbsent
denyIfPresent
denyIfMultivalued
requireType
PropertyType.valueFromName(String)
, e.g.
Binary, Boolean, Date, Decimal, Double, Long, Name, Path, Reference, String, WeakReference, or URI.valueRules
severity
Severity.MAJOR
) specify the severity if a violation is
reported by this set of constraints.Modifier and Type | Class and Description |
---|---|
static interface |
JcrPropertyConstraints.JsonKeys |
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_DENY_IF_ABSENT
Deprecated.
|
static String |
CONFIG_DENY_IF_MULTIVALUED
Deprecated.
|
static String |
CONFIG_DENY_IF_PRESENT
Deprecated.
|
static String |
CONFIG_NAME
Deprecated.
|
static String |
CONFIG_REQUIRE_TYPE
Deprecated.
|
static String |
CONFIG_SEVERITY
Deprecated.
|
static String |
CONFIG_VALUE_RULES
Deprecated.
|
static net.adamcin.oakpal.api.Severity |
DEFAULT_SEVERITY |
Constructor and Description |
---|
JcrPropertyConstraints(String name,
boolean denyIfAbsent,
boolean denyIfPresent,
boolean denyIfMultivalued,
String requireType,
List<net.adamcin.oakpal.api.Rule> valueRules,
net.adamcin.oakpal.api.Severity severity,
Supplier<ResourceBundle> resourceBundleSupplier) |
Modifier and Type | Method and Description |
---|---|
static Function<javax.json.JsonObject,JcrPropertyConstraints> |
fromJson(@NotNull Supplier<ResourceBundle> resourceBundleSupplier) |
static List<JcrPropertyConstraints> |
fromJsonArray(@NotNull Supplier<ResourceBundle> resourceBundleSupplier,
javax.json.JsonArray rulesArray) |
String |
getName() |
String |
getRequireType() |
net.adamcin.oakpal.api.Severity |
getSeverity() |
List<net.adamcin.oakpal.api.Rule> |
getValueRules() |
boolean |
isDenyIfAbsent() |
boolean |
isDenyIfMultivalued() |
boolean |
isDenyIfPresent() |
static @NotNull JcrPropertyConstraints.JsonKeys |
keys() |
@Deprecated public static final String CONFIG_NAME
@Deprecated public static final String CONFIG_DENY_IF_ABSENT
@Deprecated public static final String CONFIG_DENY_IF_PRESENT
@Deprecated public static final String CONFIG_DENY_IF_MULTIVALUED
@Deprecated public static final String CONFIG_REQUIRE_TYPE
@Deprecated public static final String CONFIG_VALUE_RULES
@Deprecated public static final String CONFIG_SEVERITY
public static final net.adamcin.oakpal.api.Severity DEFAULT_SEVERITY
public JcrPropertyConstraints(String name, boolean denyIfAbsent, boolean denyIfPresent, boolean denyIfMultivalued, String requireType, List<net.adamcin.oakpal.api.Rule> valueRules, net.adamcin.oakpal.api.Severity severity, Supplier<ResourceBundle> resourceBundleSupplier)
@NotNull public static @NotNull JcrPropertyConstraints.JsonKeys keys()
public static Function<javax.json.JsonObject,JcrPropertyConstraints> fromJson(@NotNull @NotNull Supplier<ResourceBundle> resourceBundleSupplier)
public static List<JcrPropertyConstraints> fromJsonArray(@NotNull @NotNull Supplier<ResourceBundle> resourceBundleSupplier, javax.json.JsonArray rulesArray)
public String getName()
public boolean isDenyIfAbsent()
public boolean isDenyIfPresent()
public boolean isDenyIfMultivalued()
public String getRequireType()
public List<net.adamcin.oakpal.api.Rule> getValueRules()
public net.adamcin.oakpal.api.Severity getSeverity()
Copyright © 2017–2020. All rights reserved.