public class ProcessModelXMLHelperTools
extends java.lang.Object
XMLHelperTools can be used.| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessModelXMLHelperTools.LockDescription
This class describes a lock, e.g. a lock on a template.
|
static class |
ProcessModelXMLHelperTools.SerialisableProcessType
A lightweight data container for serialising process types without a
template proxy.
|
static class |
ProcessModelXMLHelperTools.TemplateInformation
A lightweight data container for serialising process types without a
template proxy.
|
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
The logger instance of this class.
|
| Constructor and Description |
|---|
ProcessModelXMLHelperTools() |
| Modifier and Type | Method and Description |
|---|---|
static javax.xml.validation.Schema |
getSchemaForSchemaType(ProcessModelXMLConstants.SchemaType schemaType) |
static boolean |
isDocumentValid(org.w3c.dom.Document document,
ProcessModelXMLConstants.SchemaType schemaType)
Returns whether the given
Document is valid against the given
SchemaType. |
static void |
validateDocument(org.w3c.dom.Document document,
ProcessModelXMLConstants.SchemaType schemaType)
Checks, if a document uses a valid schema.
|
protected static final java.util.logging.Logger logger
public static boolean isDocumentValid(org.w3c.dom.Document document,
ProcessModelXMLConstants.SchemaType schemaType)
Document is valid against the given
SchemaType.document - the document to be validatedschemaType - the type of the schema to validate the document againstDocument is valid against the given
SchemaTypeXMLHelperTools.isValid(org.w3c.dom.Node, Schema)public static void validateDocument(org.w3c.dom.Document document,
ProcessModelXMLConstants.SchemaType schemaType)
throws XMLFormatException
document - the document, that wants to be checkedschemaType - the type of the document, needed to get the right schemaXMLFormatException - when the validation failsXMLHelperTools.validateDocument(org.w3c.dom.Node, Schema)public static javax.xml.validation.Schema getSchemaForSchemaType(ProcessModelXMLConstants.SchemaType schemaType)
schemaType - the type of the schema that is needed