Class SchemaToDomProcessor
- java.lang.Object
- 
- com.evolveum.midpoint.prism.impl.schema.SchemaToDomProcessor
 
- 
 public class SchemaToDomProcessor extends Object Takes a midPoint Schema definition and produces a XSD schema (in a DOM form). Great pains were taken to make sure that the output XML is "nice" and human readable. E.g. the namespace prefixes are unified using the definitions in SchemaRegistry. Please do not ruin this if you would update this class. Single use class. Not thread safe. Create new instance for each run.- Author:
- lazyman, Radovan Semancik
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementaddAnnotation(QName qname, boolean value, Element parent)ElementaddAnnotation(QName qname, PrismReferenceValue value, Element parent)ElementaddAnnotation(QName qname, String value, Element parent)Add generic annotation element.ElementaddAnnotation(QName qname, QName value, Element parent)ElementaddAnnotation(QName qname, Element parent)ElementaddRefAnnotation(QName qname, QName value, Element parent)Adds annotation that points to another element (ususaly a property).ElementcreateElement(QName qname)Create XML element with the correct namespace prefix and namespace definition.DynamicNamespacePrefixMappergetNamespacePrefixMapper()PrismContextgetPrismContext()voidsetNamespacePrefixMapper(DynamicNamespacePrefixMapper namespacePrefixMapper)voidsetPrismContext(PrismContext prismContext)
 
- 
- 
- 
Method Detail- 
getPrismContextpublic PrismContext getPrismContext() 
 - 
setPrismContextpublic void setPrismContext(PrismContext prismContext) 
 - 
getNamespacePrefixMapperpublic DynamicNamespacePrefixMapper getNamespacePrefixMapper() 
 - 
setNamespacePrefixMapperpublic void setNamespacePrefixMapper(DynamicNamespacePrefixMapper namespacePrefixMapper) 
 - 
addAnnotationpublic Element addAnnotation(QName qname, String value, Element parent) Add generic annotation element.- Parameters:
- qname- QName of the element
- value- string value of the element
- parent- element under which the definition will be added
- Returns:
- created XSD element
 
 - 
addAnnotationpublic Element addAnnotation(QName qname, PrismReferenceValue value, Element parent) 
 - 
addRefAnnotationpublic Element addRefAnnotation(QName qname, QName value, Element parent) Adds annotation that points to another element (ususaly a property).- Parameters:
- qname- QName of the element
- value- Qname of the target element (property QName)
- parent- parent element under which the definition will be added
- Returns:
- created XSD element
 
 
- 
 
-