/** * Creates an {@link ComplexReferenceIdentifier} from the given String, without checking its syntax. * This should ONLY be used for identifiers that are known to be valid, such as the ones * defined in the QTI specification. */ public static ComplexReferenceIdentifier assumedLegal(final String value) { return new ComplexReferenceIdentifier(value); }
/** * Parses the given Identifier String, making sure it follows the required syntax. * <p> * Use this factory method for user-supplied identifiers. * * @throws QtiParseException if value is not a valid identifier */ public static ComplexReferenceIdentifier parseString(final String value) { verifyIdentifier(value); return new ComplexReferenceIdentifier(value); }