Class SchemaDefinition
java.lang.Object
com.aquima.interactions.communication.impl.SchemaDefinition
- All Implemented Interfaces:
ISchemaDefinition
,Serializable
This class holds the static definition of a schema.
- Since:
- 9.0
- Author:
- Arjan Pragt
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SchemaDefinition
(ISchemaDS datasource, IMetaModel metaModel, IRuleEngine ruleEngine) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
boolean
containsElement
(String name) This method indicates whether an element is defined in this schema.boolean
containsTypeMapping
(String name) This method indicates whether a type is defined in this schema.This method returns the attributeformdefault of the shema.getElement
(String name) This method returns the definition of an element.This method returns the elementformdefault of the schema.This method returns all defined elements of this schema.getName()
This method returns the name of the schema.This method returns the namespace of the schema.This method returns the definition of a type.getTypes()
This method returns all defined types of this schema.protected void
initialize
(SchemaSetDefinition schemaSet)
-
Constructor Details
-
SchemaDefinition
protected SchemaDefinition(ISchemaDS datasource, IMetaModel metaModel, IRuleEngine ruleEngine) throws InitializationException - Throws:
InitializationException
-
-
Method Details
-
initialize
- Throws:
InitializationException
-
getName
Description copied from interface:ISchemaDefinition
This method returns the name of the schema.- Specified by:
getName
in interfaceISchemaDefinition
- Returns:
- The name of the schema, may not be null.
-
getTargetNamespace
Description copied from interface:ISchemaDefinition
This method returns the namespace of the schema.- Specified by:
getTargetNamespace
in interfaceISchemaDefinition
- Returns:
- The namespace of the schema, or null.
-
getElementFormDefault
Description copied from interface:ISchemaDefinition
This method returns the elementformdefault of the schema.- Specified by:
getElementFormDefault
in interfaceISchemaDefinition
- Returns:
- The elementFormDefault, may not be null.
-
getAttributeFormDefault
Description copied from interface:ISchemaDefinition
This method returns the attributeformdefault of the shema.- Specified by:
getAttributeFormDefault
in interfaceISchemaDefinition
- Returns:
- The attributeFormDefault, may not be null.
-
containsElement
Description copied from interface:ISchemaDefinition
This method indicates whether an element is defined in this schema.- Specified by:
containsElement
in interfaceISchemaDefinition
- Parameters:
name
- The name of the element, may not be null.- Returns:
- Indicator if present or not.
-
getElement
Description copied from interface:ISchemaDefinition
This method returns the definition of an element.- Specified by:
getElement
in interfaceISchemaDefinition
- Parameters:
name
- The name of the element, may not be null.- Returns:
- The definition of the element.
- Throws:
UnknownElementMappingException
- when the element does not have a element mapping
-
getElements
Description copied from interface:ISchemaDefinition
This method returns all defined elements of this schema.- Specified by:
getElements
in interfaceISchemaDefinition
- Returns:
- All defined elements, never null.
-
getType
Description copied from interface:ISchemaDefinition
This method returns the definition of a type.- Specified by:
getType
in interfaceISchemaDefinition
- Parameters:
name
- The name of the type, may not be null.- Returns:
- The definition of the type.
- Throws:
UnknownTypeMappingException
- when the type type mapping does not exist
-
containsTypeMapping
Description copied from interface:ISchemaDefinition
This method indicates whether a type is defined in this schema.- Specified by:
containsTypeMapping
in interfaceISchemaDefinition
- Parameters:
name
- The name of the type, may not be null.- Returns:
- Indicator if present or not.
-
getTypes
Description copied from interface:ISchemaDefinition
This method returns all defined types of this schema.- Specified by:
getTypes
in interfaceISchemaDefinition
- Returns:
- All defined types, never null.
-
addElement
- Throws:
InitializationException
-
addType
- Throws:
InitializationException
-