/** * Gets a new instance that uses the same schema as this one. * * @return a copy of this instance */ public PolicyParser copy() { return new PolicyParser(m_validators); }
/** * Gets a new instance that uses the same schema as this one. * * @return a copy of this instance */ public PolicyParser copy() { return new PolicyParser(m_validators); }
+ schemaLocation; FileInputStream in = new FileInputStream(schemaPath); PolicyParser policyParser = new PolicyParser(in); ValidationUtility.setFeslPolicyParser(policyParser); } catch (IOException ioe) {
m_policyParser = new PolicyParser(in); ValidationUtility.setPolicyParser(m_policyParser); } catch (Exception e) {
m_policyParser = new PolicyParser(in); ValidationUtility.setPolicyParser(m_policyParser); } catch (Exception e) {
@Test (expected=SAXException.class) public void testConstructWithBadSchema() throws IOException, SAXException { new PolicyParser(StreamUtility.getStream(SCHEMA_BAD)); }
PolicyParser parser = new PolicyParser(getStream(schemaPath)); parser.parse(instance, true); System.out.println("Validation successful");
PolicyParser parser = new PolicyParser(getStream(schemaPath)); parser.parse(instance, true); System.out.println("Validation successful");