All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openehealth.ipf.commons.xml.SchematronProfile Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2009 the original author or authors.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *     
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.openehealth.ipf.commons.xml;

import java.util.Map;

/**
 * Validation profile exclusively used by {@link SchematronValidator}. The
 * following standard Schematron parameters can be passed in as Map parameter:
 * 
    *
  • phase : NMTOKEN | "#ALL" (default) Select the phase for validation *
  • allow-foreign : "true" | "false" (default) Pass non-Schematron elements * and rich markup to the generated stylesheet *
  • diagnose : "true" (default) | "false" Add the diagnostics to the * assertion test in reports *
  • property : "true" (default) | "false" Experimental: Add properties to the * assertion test in reports *
  • generate-paths : "true" (default) | "false" Generate the @location * attribute with XPaths *
  • sch.exslt.imports : semi-colon delimited string of filenames for some * EXSLT implementations *
  • optimize : "visit-no-attributes" Use only when the schema has no * attributes as the context nodes *
  • generate-fired-rule: "true" (default) | "false" Generate fired-rule * elements *
* * @author Christian Ohr * @see SchematronValidator */ public class SchematronProfile { public SchematronProfile() { super(); } public SchematronProfile(String rules) { super(); this.rules = rules; } public SchematronProfile(String rules, Map parameters) { super(); this.rules = rules; this.parameters = parameters; } private String rules; private Map parameters; public String getRules() { return rules; } public void setRules(String rules) { this.rules = rules; } public Map getParameters() { return parameters; } public void setParameters(Map parameters) { this.parameters = parameters; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy