com.evolveum.midpoint.prism.schema
Class SchemaToDomProcessor

java.lang.Object
  extended by com.evolveum.midpoint.prism.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

Field Summary
static String RESOURCE_OBJECT_CLASS
           
 
Method Summary
 Element addAnnotation(QName qname, Element parent)
           
 Element addAnnotation(QName qname, QName value, Element parent)
           
 Element addAnnotation(QName qname, String value, Element parent)
          Add generic annotation element.
 Element addRefAnnotation(QName qname, QName value, Element parent)
          Adds annotation that points to another element (ususaly a property).
 DynamicNamespacePrefixMapper getNamespacePrefixMapper()
           
 PrismContext getPrismContext()
           
 void setNamespacePrefixMapper(DynamicNamespacePrefixMapper namespacePrefixMapper)
           
 void setPrismContext(PrismContext prismContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_OBJECT_CLASS

public static final String RESOURCE_OBJECT_CLASS
See Also:
Constant Field Values
Method Detail

getPrismContext

public PrismContext getPrismContext()

setPrismContext

public void setPrismContext(PrismContext prismContext)

getNamespacePrefixMapper

public DynamicNamespacePrefixMapper getNamespacePrefixMapper()

setNamespacePrefixMapper

public void setNamespacePrefixMapper(DynamicNamespacePrefixMapper namespacePrefixMapper)

addAnnotation

public 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

addAnnotation

public Element addAnnotation(QName qname,
                             Element parent)

addAnnotation

public Element addAnnotation(QName qname,
                             QName value,
                             Element parent)

addRefAnnotation

public 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


Copyright © 2013 evolveum. All Rights Reserved.