public static void checkValidCommentText(String text) { if (text == null) throw new NullPointerException("Text cannot be null"); if (!XmlGrammar.xmlCommentText().matcher(text).matches()) throw new IllegalArgumentException("Not a valid XML Comment text"); }
public static void checkValidCommentText(String text) { if (text == null) throw new NullPointerException("Text cannot be null"); if (!XmlGrammar.xmlCommentText().matcher(text).matches()) throw new IllegalArgumentException("Not a valid XML Comment text"); }