/** * Uses the syntaxChecker associated with the attributeType to check if the * value is valid. Repeated calls to this method do not attempt to re-check * the syntax of the wrapped value every time if the wrapped value does not * change. Syntax checks only result on the first check, and when the wrapped * value changes. * * @see Value#isValid() */ public final boolean isValid() { if ( valid != null ) { return valid; } if ( attributeType != null ) { valid = attributeType.getSyntax().getSyntaxChecker().isValidSyntax( get() ); } else { valid = false; } return valid; }
return attributeType.getSyntax().getSyntaxChecker().isValidSyntax( null );
if ( syntax.getSyntaxChecker() == null ) if ( !syntaxCheckerRegistry.contains( syntax.getSyntaxChecker().getOid() ) ) LOG.debug( "Cannot find the SyntaxChecker {} for the Syntax {}", syntax.getSyntaxChecker().getOid(), syntax ); if ( !checkReferences( syntax, syntax.getSyntaxChecker(), "SyntaxChecker" ) )