com.evolveum.midpoint.schema.processor
Class MidPointSchemaDefinitionFactory

java.lang.Object
  extended by com.evolveum.midpoint.prism.schema.SchemaDefinitionFactory
      extended by com.evolveum.midpoint.schema.processor.MidPointSchemaDefinitionFactory

public class MidPointSchemaDefinitionFactory
extends SchemaDefinitionFactory

Author:
semancik

Constructor Summary
MidPointSchemaDefinitionFactory()
           
 
Method Summary
 void addExtraComplexTypeAnnotations(ComplexTypeDefinition definition, org.w3c.dom.Element appinfo, SchemaToDomProcessor schemaToDomProcessor)
          Add extra annotations to a complexType DOM model.
 ComplexTypeDefinition createComplexTypeDefinition(com.sun.xml.xsom.XSComplexType complexType, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation)
           
 PrismContainerDefinition createExtraDefinitionFromComplexType(com.sun.xml.xsom.XSComplexType complexType, ComplexTypeDefinition complexTypeDefinition, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation)
          Create optional extra definition form a top-level complex type definition.
 PrismPropertyDefinition createPropertyDefinition(javax.xml.namespace.QName elementName, javax.xml.namespace.QName typeName, ComplexTypeDefinition complexTypeDefinition, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation, com.sun.xml.xsom.XSParticle elementParticle)
           
 void finishComplexTypeDefinition(ComplexTypeDefinition complexTypeDefinition, com.sun.xml.xsom.XSComplexType complexType, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation)
          Called after the complex type definition is filled with items.
 
Methods inherited from class com.evolveum.midpoint.prism.schema.SchemaDefinitionFactory
addExtraPropertyAnnotations, addExtraReferenceAnnotations, createContainerDefinition, createObjectDefinition, createReferenceDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidPointSchemaDefinitionFactory

public MidPointSchemaDefinitionFactory()
Method Detail

createComplexTypeDefinition

public ComplexTypeDefinition createComplexTypeDefinition(com.sun.xml.xsom.XSComplexType complexType,
                                                         PrismContext prismContext,
                                                         com.sun.xml.xsom.XSAnnotation annotation)
                                                  throws SchemaException
Overrides:
createComplexTypeDefinition in class SchemaDefinitionFactory
Throws:
SchemaException

finishComplexTypeDefinition

public void finishComplexTypeDefinition(ComplexTypeDefinition complexTypeDefinition,
                                        com.sun.xml.xsom.XSComplexType complexType,
                                        PrismContext prismContext,
                                        com.sun.xml.xsom.XSAnnotation annotation)
                                 throws SchemaException
Description copied from class: SchemaDefinitionFactory
Called after the complex type definition is filled with items. It may be used to finish building the definition, e.g. by adding data that depends on existing internal definitions.

Overrides:
finishComplexTypeDefinition in class SchemaDefinitionFactory
Throws:
SchemaException

addExtraComplexTypeAnnotations

public void addExtraComplexTypeAnnotations(ComplexTypeDefinition definition,
                                           org.w3c.dom.Element appinfo,
                                           SchemaToDomProcessor schemaToDomProcessor)
Description copied from class: SchemaDefinitionFactory
Add extra annotations to a complexType DOM model. Used when serializing schema to DOM.

Overrides:
addExtraComplexTypeAnnotations in class SchemaDefinitionFactory

createExtraDefinitionFromComplexType

public PrismContainerDefinition createExtraDefinitionFromComplexType(com.sun.xml.xsom.XSComplexType complexType,
                                                                     ComplexTypeDefinition complexTypeDefinition,
                                                                     PrismContext prismContext,
                                                                     com.sun.xml.xsom.XSAnnotation annotation)
                                                              throws SchemaException
Description copied from class: SchemaDefinitionFactory
Create optional extra definition form a top-level complex type definition. This is used e.g. to create object class definitions in midPoint

Overrides:
createExtraDefinitionFromComplexType in class SchemaDefinitionFactory
Throws:
SchemaException

createPropertyDefinition

public PrismPropertyDefinition createPropertyDefinition(javax.xml.namespace.QName elementName,
                                                        javax.xml.namespace.QName typeName,
                                                        ComplexTypeDefinition complexTypeDefinition,
                                                        PrismContext prismContext,
                                                        com.sun.xml.xsom.XSAnnotation annotation,
                                                        com.sun.xml.xsom.XSParticle elementParticle)
                                                 throws SchemaException
Overrides:
createPropertyDefinition in class SchemaDefinitionFactory
Throws:
SchemaException


Copyright © 2012 evolveum. All Rights Reserved.