/** * Set condition #<code>code</code> * to be treated as a warning; * or clear it as a warning condition. * Setting a code to be a warning, clears it from * being an error. Care must be taken * if the <code>code</code> is one that is documented * in {@link ViolationCodes} has having SHOULD or MUST * force, since ignoring any resulting warning may * result in a nonconformant application. * @param code A condition code from {@link ViolationCodes}. * @param set True to set this as a warning, false to clear. * @throws IllegalStateException If this factory has already been used to create an IRI. */ public void setIsWarning(int code, boolean set) { initializing(); if (set) { warnings |= (1l<<code); setIsError(code,false); } else warnings &= ~(1l<<code); }
/** * Set condition #<code>code</code> * to be treated as a warning; * or clear it as a warning condition. * Setting a code to be a warning, clears it from * being an error. Care must be taken * if the <code>code</code> is one that is documented * in {@link ViolationCodes} has having SHOULD or MUST * force, since ignoring any resulting warning may * result in a nonconformant application. * @param code A condition code from {@link ViolationCodes}. * @param set True to set this as a warning, false to clear. * @throws IllegalStateException If this factory has already been used to create an IRI. */ public void setIsWarning(int code, boolean set) { initializing(); if (set) { warnings |= (1l<<code); setIsError(code,false); } else warnings &= ~(1l<<code); }
/** * Set condition #<code>code</code> * to be treated as an error; or clear it as an error condition. * <p> * Care must be taken when using this to clear the error behaviour * on a code documented * in {@link ViolationCodes} * as having SHOULD force: * see the documentation at {@link #shouldViolation(boolean, boolean)}, * concerning the necessary steps. * Using this method with <code>code</code> * being one that is documented as having MUST force * will result in non-conformant behaviour. * </p> * @param code A condition code from {@link ViolationCodes}. * @param set True to set this as an error, false to clear. * @throws IllegalStateException If this factory has already been used to create an IRI. */ public void setIsError(int code, boolean set) { initializing(); if (set) { errors |= (1l<<code); setIsWarning(code,false); } else errors &= ~(1l<<code); }
/** * Set condition #<code>code</code> * to be treated as a warning; * or clear it as a warning condition. * Setting a code to be a warning, clears it from * being an error. Care must be taken * if the <code>code</code> is one that is documented * in {@link ViolationCodes} has having SHOULD or MUST * force, since ignoring any resulting warning may * result in a nonconformant application. * @param code A condition code from {@link ViolationCodes}. * @param set True to set this as a warning, false to clear. * @throws IllegalStateException If this factory has already been used to create an IRI. */ public void setIsWarning(int code, boolean set) { initializing(); if (set) { warnings |= (1l<<code); setIsError(code,false); } else warnings &= ~(1l<<code); }
/** * Set condition #<code>code</code> * to be treated as an error; or clear it as an error condition. * <p> * Care must be taken when using this to clear the error behaviour * on a code documented * in {@link ViolationCodes} * as having SHOULD force: * see the documentation at {@link #shouldViolation(boolean, boolean)}, * concerning the necessary steps. * Using this method with <code>code</code> * being one that is documented as having MUST force * will result in non-conformant behaviour. * </p> * @param code A condition code from {@link ViolationCodes}. * @param set True to set this as an error, false to clear. * @throws IllegalStateException If this factory has already been used to create an IRI. */ public void setIsError(int code, boolean set) { initializing(); if (set) { errors |= (1l<<code); setIsWarning(code,false); } else errors &= ~(1l<<code); }
/** * Set condition #<code>code</code> * to be treated as an error; or clear it as an error condition. * <p> * Care must be taken when using this to clear the error behaviour * on a code documented * in {@link ViolationCodes} * as having SHOULD force: * see the documentation at {@link #shouldViolation(boolean, boolean)}, * concerning the necessary steps. * Using this method with <code>code</code> * being one that is documented as having MUST force * will result in non-conformant behaviour. * </p> * @param code A condition code from {@link ViolationCodes}. * @param set True to set this as an error, false to clear. * @throws IllegalStateException If this factory has already been used to create an IRI. */ public void setIsError(int code, boolean set) { initializing(); if (set) { errors |= (1l<<code); setIsWarning(code,false); } else errors &= ~(1l<<code); }