/** * Translation-time validation of the XML document * associated with the JSP page. * This is a convenience method on the associated * TagLibraryValidator class. * * @param thePage The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } ValidationMessage[] messages = tlv.validate(getPrefixString(), uri, thePage); tlv.release(); return messages; }
/** * Translation-time validation of the XML document associated with the JSP * page. This is a convenience method on the associated TagLibraryValidator * class. * * @param thePage * The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } return tlv.validate(getPrefixString(), uri, thePage); }
/** * The instance (if any) for the TagLibraryValidator class. * * @return The TagLibraryValidator instance, if any. */ public TagLibraryValidator getTagLibraryValidator() { return tagLibraryValidator; }