Class MidPointSchemaDefinitionFactory
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.schema.SchemaDefinitionFactory
-
- com.evolveum.midpoint.schema.processor.MidPointSchemaDefinitionFactory
-
public class MidPointSchemaDefinitionFactory extends SchemaDefinitionFactory
- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description MidPointSchemaDefinitionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtraComplexTypeAnnotations(ComplexTypeDefinition definition, Element appinfo, SchemaToDomProcessor schemaToDomProcessor)
Add extra annotations to a complexType DOM model.void
addExtraPropertyAnnotations(PrismPropertyDefinition definition, Element appinfo, SchemaToDomProcessor schemaToDomProcessor)
Add extra annotations to a property DOM model.MutableComplexTypeDefinition
createComplexTypeDefinition(com.sun.xml.xsom.XSComplexType complexType, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation)
<C extends Containerable>
PrismContainerDefinition<C>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.<T> PrismPropertyDefinition<T>
createPropertyDefinition(QName elementName, QName typeName, ComplexTypeDefinition complexTypeDefinition, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation, com.sun.xml.xsom.XSParticle elementParticle)
<T> MutablePrismPropertyDefinition<T>
createPropertyDefinition(QName elementName, QName typeName, ComplexTypeDefinition complexTypeDefinition, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation, com.sun.xml.xsom.XSParticle elementParticle, Collection<? extends DisplayableValue<T>> allowedValues, T defaultValue)
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.impl.schema.SchemaDefinitionFactory
addExtraReferenceAnnotations, createContainerDefinition, createObjectDefinition, createReferenceDefinition, createSimpleTypeDefinition
-
-
-
-
Method Detail
-
createComplexTypeDefinition
public MutableComplexTypeDefinition createComplexTypeDefinition(com.sun.xml.xsom.XSComplexType complexType, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation) throws SchemaException
- Overrides:
createComplexTypeDefinition
in classSchemaDefinitionFactory
- 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 classSchemaDefinitionFactory
- Throws:
SchemaException
-
addExtraComplexTypeAnnotations
public void addExtraComplexTypeAnnotations(ComplexTypeDefinition definition, 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 classSchemaDefinitionFactory
-
createExtraDefinitionFromComplexType
public <C extends Containerable> PrismContainerDefinition<C> 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 classSchemaDefinitionFactory
- Throws:
SchemaException
-
createPropertyDefinition
public <T> PrismPropertyDefinition<T> createPropertyDefinition(QName elementName, QName typeName, ComplexTypeDefinition complexTypeDefinition, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation, com.sun.xml.xsom.XSParticle elementParticle) throws SchemaException
- Overrides:
createPropertyDefinition
in classSchemaDefinitionFactory
- Throws:
SchemaException
-
createPropertyDefinition
public <T> MutablePrismPropertyDefinition<T> createPropertyDefinition(QName elementName, QName typeName, ComplexTypeDefinition complexTypeDefinition, PrismContext prismContext, com.sun.xml.xsom.XSAnnotation annotation, com.sun.xml.xsom.XSParticle elementParticle, Collection<? extends DisplayableValue<T>> allowedValues, T defaultValue) throws SchemaException
- Overrides:
createPropertyDefinition
in classSchemaDefinitionFactory
- Throws:
SchemaException
-
addExtraPropertyAnnotations
public void addExtraPropertyAnnotations(PrismPropertyDefinition definition, Element appinfo, SchemaToDomProcessor schemaToDomProcessor)
Description copied from class:SchemaDefinitionFactory
Add extra annotations to a property DOM model. Used when serializing schema to DOM.- Overrides:
addExtraPropertyAnnotations
in classSchemaDefinitionFactory
-
-