use of org.apache.xmlbeans.XmlError in project knime-core by knime.
the class NodeDescription212Proxy method validate.
/**
* Validate against the XML Schema. If violations are found they are reported via the logger as coding problems.
*
* @return <code>true</code> if the document is valid, <code>false</code> otherwise
*/
protected final boolean validate() {
// this method has default visibility so that we can use it in testcases
XmlOptions options = new XmlOptions(OPTIONS);
List<XmlError> errors = new ArrayList<XmlError>();
options.setErrorListener(errors);
boolean valid = m_document.validate(options);
if (!valid) {
logger.coding("Node description of '" + m_document.getKnimeNode().getName() + "' does not conform to the Schema. Violations follow.");
for (XmlError err : errors) {
logger.coding(err.toString());
}
}
return valid;
}
use of org.apache.xmlbeans.XmlError in project knime-core by knime.
the class NodeDescription210Proxy method validate.
/**
* Validate against the XML Schema. If violations are found they are reported via the logger as coding problems.
*
* @return <code>true</code> if the document is valid, <code>false</code> otherwise
*/
protected final boolean validate() {
// this method has default visibility so that we can use it in testcases
XmlOptions options = new XmlOptions(OPTIONS);
List<XmlError> errors = new ArrayList<XmlError>();
options.setErrorListener(errors);
boolean valid = m_document.validate(options);
if (!valid) {
logger.coding("Node description of '" + m_document.getKnimeNode().getName() + "' does not conform to the Schema. Violations follow.");
for (XmlError err : errors) {
logger.coding(err.toString());
}
}
return valid;
}
use of org.apache.xmlbeans.XmlError in project knime-core by knime.
the class NodeDescription27Proxy method validate.
/**
* Validate against the XML Schema. If violations are found they are reported via the logger as coding problems.
*
* @return <code>true</code> if the document is valid, <code>false</code> otherwise
*/
protected final boolean validate() {
// this method has default visibility so that we can use it in testcases
XmlOptions options = new XmlOptions(OPTIONS);
List<XmlError> errors = new ArrayList<XmlError>();
options.setErrorListener(errors);
boolean valid = m_document.validate(options);
if (!valid) {
logger.coding(// .getName()
"Node description of '" + m_document.getKnimeNode() + "' does not conform to the Schema. Violations follow.");
for (XmlError err : errors) {
logger.coding(err.toString());
}
}
return valid;
}
use of org.apache.xmlbeans.XmlError in project knime-core by knime.
the class NodeDescription31Proxy method validate.
/**
* Validate against the XML Schema. If violations are found they are reported via the logger as coding problems.
*
* @return <code>true</code> if the document is valid, <code>false</code> otherwise
*/
protected final boolean validate() {
// this method has default visibility so that we can use it in testcases
XmlOptions options = new XmlOptions(OPTIONS);
List<XmlError> errors = new ArrayList<XmlError>();
options.setErrorListener(errors);
boolean valid = m_document.validate(options);
if (!valid) {
logger.coding("Node description of '" + m_document.getKnimeNode().getName() + "' does not conform to the Schema. Violations follow.");
for (XmlError err : errors) {
logger.coding(err.toString());
}
}
return valid;
}
use of org.apache.xmlbeans.XmlError in project knime-core by knime.
the class NodeDescription13Proxy method validate.
/**
* Validate against the XML Schema. If violations are found they are reported via the logger as coding problems.
*
* @return <code>true</code> if the document is valid, <code>false</code> otherwise
*/
final boolean validate() {
// this method has default visibility so that we can use it in testcases
XmlOptions options = new XmlOptions(OPTIONS);
List<XmlError> errors = new ArrayList<XmlError>();
options.setErrorListener(errors);
boolean valid = m_document.validate(options);
if (!valid) {
logger.coding("Node description of '" + m_document.getKnimeNode().getName() + "' does not conform to the Schema. Violations follow.");
for (XmlError err : errors) {
logger.coding(err.toString());
}
}
return valid;
}
Aggregations