/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, InputNode source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, String source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, File source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, String source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, InputNode source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, InputStream source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, Reader source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, File source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, Reader source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, String source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, InputStream source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, File source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, InputStream source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, InputNode source) throws Exception { return validate(type, source, true); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * @param strict this determines whether to read in strict mode * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, String source, boolean strict) throws Exception { return validate(type, new StringReader(source), strict); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * @param strict this determines whether to read in strict mode * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, String source, boolean strict) throws Exception { return validate(type, new StringReader(source), strict); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param node this provides the source of the XML document * @param session this is the session that is used for validation * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ private boolean validate(Class type, InputNode node, Session session) throws Exception { return validate(type, node, new Source(strategy, support, session)); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * @param strict this determines whether to read in strict mode * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, InputStream source, boolean strict) throws Exception { return validate(type, NodeBuilder.read(source), strict); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param node this provides the source of the XML document * @param session this is the session that is used for validation * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ private boolean validate(Class type, InputNode node, Session session) throws Exception { return validate(type, node, new Source(strategy, support, session)); }
/** * This <code>validate</code> method will validate the contents of * the XML document against the specified XML class schema. This is * used to perform a read traversal of the class schema such that * the document can be tested against it. This is preferred to * reading the document as it does not instantiate the objects or * invoke any callback methods, thus making it a safe validation. * * @param type this is the class type to be validated against XML * @param source this provides the source of the XML document * @param strict this determines whether to read in strict mode * * @return true if the document matches the class XML schema * * @throws Exception if the class XML schema does not fully match */ public boolean validate(Class type, Reader source, boolean strict) throws Exception { return validate(type, NodeBuilder.read(source), strict); }