com.evolveum.midpoint.schema.processor
Class Schema

java.lang.Object
  extended by com.evolveum.midpoint.schema.processor.Schema

public class Schema
extends java.lang.Object

Schema as a collection of definitions. This is a midPoint-specific view of schema definition. It is just a collection of definitions grouped under a specific namespace. The schema and all the public classes in this package define a schema meta-model. It is supposed to be used for run-time schema interpretation. It will not be a convenient tool to work with static data model objects such as user or role. But it is needed for interpreting dynamic schemas for resource objects, extensions and so on. Schema is immutable.

Author:
Radovan Semancik

Constructor Summary
Schema(java.lang.String namespace)
           
 
Method Summary
 java.lang.String debugDump()
           
 PropertyContainerDefinition findContainerDefinitionByType(javax.xml.namespace.QName typeName)
          Finds a PropertyContainerDefinition by the type name.
 java.util.Set<Definition> getDefinitions()
          Returns set of definitions.
 java.lang.String getNamespace()
          Returns schema namespace.
static Schema parse(org.w3c.dom.Element schema)
           
static org.w3c.dom.Document parseSchema(Schema schema)
           
 void updateSchemaAccess(SchemaHandlingType schemaHandling)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema

public Schema(java.lang.String namespace)
Method Detail

getNamespace

public java.lang.String getNamespace()
Returns schema namespace. All schema definitions are placed in the returned namespace.

Returns:
schema namespace

getDefinitions

public java.util.Set<Definition> getDefinitions()
Returns set of definitions. The set contains all definitions of all types that were parsed. Order of definitions is insignificant.

Returns:
set of definitions

parse

public static Schema parse(org.w3c.dom.Element schema)
                    throws SchemaProcessorException
Throws:
SchemaProcessorException

parseSchema

public static org.w3c.dom.Document parseSchema(Schema schema)
                                        throws SchemaProcessorException
Throws:
SchemaProcessorException

updateSchemaAccess

public void updateSchemaAccess(SchemaHandlingType schemaHandling)

findContainerDefinitionByType

public PropertyContainerDefinition findContainerDefinitionByType(javax.xml.namespace.QName typeName)
Finds a PropertyContainerDefinition by the type name.

Parameters:
typeName - property container type name
Returns:
found property container definition
Throws:
java.lang.IllegalStateException - if more than one definition is found

debugDump

public java.lang.String debugDump()


Copyright © 2011 evolveum. All Rights Reserved.