de.rowa.posps.client.connection
Class PospsSchema

java.lang.Object
  extended by de.rowa.posps.client.connection.PospsSchema

public class PospsSchema
extends java.lang.Object

Methods for validating XML documents against the posps schema. The class loads the posps schema from the posps-spec jar.

Author:
Michael Koch

Field Summary
static javax.xml.validation.Schema POSPS_SCHEMA
          Schema object which is initialized with the posps schema.
 
Method Summary
static boolean isValid(javax.xml.transform.Source documentSource)
          Checks if the given document is valid according to the posps schema.
static javax.xml.validation.Validator newValidator()
          Creates a new validator which validates against the posps schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POSPS_SCHEMA

public static final javax.xml.validation.Schema POSPS_SCHEMA
Schema object which is initialized with the posps schema.

Method Detail

newValidator

public static javax.xml.validation.Validator newValidator()
Creates a new validator which validates against the posps schema.

Returns:
A new validator which validates against the posps schema.

isValid

public static boolean isValid(javax.xml.transform.Source documentSource)
Checks if the given document is valid according to the posps schema.

Parameters:
documentSource - Source of the document to check.
Returns:
true if the document validates without errors. (Warnings during validation are ignored.)


Copyright © 2007-2016 Becton Dickinson. All Rights Reserved.