Class SchemaToDomProcessor
java.lang.Object
com.evolveum.midpoint.prism.impl.schema.SchemaToDomProcessor
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 Summary
Modifier and TypeMethodDescriptionaddAnnotation
(QName qname, boolean value, Element parent) addAnnotation
(QName qname, PrismReferenceValue value, Element parent) addAnnotation
(QName qname, String value, Element parent) Add generic annotation element.addAnnotation
(QName qname, QName value, Element parent) addAnnotation
(QName qname, Element parent) addRefAnnotation
(QName qname, QName value, Element parent) Adds annotation that points to another element (ususaly a property).createElement
(QName qname) Create XML element with the correct namespace prefix and namespace definition.void
setNamespacePrefixMapper
(DynamicNamespacePrefixMapper namespacePrefixMapper) void
setPrismContext
(PrismContext prismContext)
-
Method Details
-
getPrismContext
-
setPrismContext
-
getNamespacePrefixMapper
-
setNamespacePrefixMapper
-
addAnnotation
Add generic annotation element.- Parameters:
qname
- QName of the elementvalue
- string value of the elementparent
- element under which the definition will be added- Returns:
- created XSD element
-
addAnnotation
-
addAnnotation
-
addAnnotation
-
addAnnotation
-
addRefAnnotation
Adds annotation that points to another element (ususaly a property).- Parameters:
qname
- QName of the elementvalue
- Qname of the target element (property QName)parent
- parent element under which the definition will be added- Returns:
- created XSD element
-
createElement
Create XML element with the correct namespace prefix and namespace definition.- Parameters:
qname
- element QName- Returns:
- created DOM element
-