@Override public boolean validate(Object context) { return resolver.validate(property.getValue(), context); }
@Override public boolean validate(Object context) { return resolver.validate(doc.getPropertyValue(xpath), context); }
@Override public boolean validate() { return resolver.validate(property.getValue()); }
@Override public boolean validate() { return resolver.validate(doc.getPropertyValue(xpath), doc.getCoreSession()); }
/** * Validates some value references an existing entity, in the given context * * @param value The reference. * @param context A resolver-specific context allowing resolution of the value. * @return true if value could be resolved as an existing external reference, false otherwise. * @throws IllegalStateException If this resolver has not been configured. * @since 10.2 */ default boolean validate(Object value, Object context) { return validate(value); }
@Override public boolean validate(Object object) { if (object == null) { return true; } return resolver.validate(object); }