Class ElementParticleMappingDefinition
- java.lang.Object
-
- com.aquima.interactions.communication.impl.ParticleMappingDefinition
-
- com.aquima.interactions.communication.impl.ElementParticleMappingDefinition
-
- All Implemented Interfaces:
IElementParticleMappingDefinition
,IParticleMappingDefinition
,Serializable
public final class ElementParticleMappingDefinition extends ParticleMappingDefinition implements IElementParticleMappingDefinition
Element particle mapping definition that can be created with a datasource.- Since:
- 9.0
- Author:
- Jon van Leuven, Arjan Pragt
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ElementParticleMappingDefinition(SchemaDefinition schema, IElementParticleMappingDS datasource, IEntityDefinition entityDef, IMetaModel metaModel, IRuleEngine ruleEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttributeName()
This method returns the attribute for the element content.IElementReference
getElementReference()
This method returns the element reference of the element.SchemaFormType
getForm()
This method returns the schemaforn of the attribute.ITypeMappingDefinition
getInlineType()
This method returns the element reference of the element.String
getName()
This method returns the name of the element particle.QualifiedName
getQualifiedName()
This method returns the qualified name of the element particle.ITypeReference
getTypeReference()
This method returns the element reference of the element.IFieldValidationDefinition[]
getValidations()
This method returns the validations of the attribute.protected void
initialize(SchemaSetDefinition schemaSet)
boolean
isNillable()
This method returns whether the element is nillable-
Methods inherited from class com.aquima.interactions.communication.impl.ParticleMappingDefinition
getMaxOccurs, getMinOccurs, isUnbounded
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aquima.interactions.communication.IParticleMappingDefinition
getMaxOccurs, getMinOccurs, isUnbounded
-
-
-
-
Constructor Detail
-
ElementParticleMappingDefinition
protected ElementParticleMappingDefinition(SchemaDefinition schema, IElementParticleMappingDS datasource, IEntityDefinition entityDef, IMetaModel metaModel, IRuleEngine ruleEngine) throws InitializationException
- Throws:
InitializationException
-
-
Method Detail
-
initialize
protected void initialize(SchemaSetDefinition schemaSet) throws InitializationException
- Specified by:
initialize
in classParticleMappingDefinition
- Throws:
InitializationException
-
getName
public String getName()
Description copied from interface:IElementParticleMappingDefinition
This method returns the name of the element particle.- Specified by:
getName
in interfaceIElementParticleMappingDefinition
- Returns:
- The name of the element particle, may not be null.
-
getQualifiedName
public QualifiedName getQualifiedName()
Description copied from interface:IElementParticleMappingDefinition
This method returns the qualified name of the element particle.- Specified by:
getQualifiedName
in interfaceIElementParticleMappingDefinition
- Returns:
- The qualified name of the element particle, may not be null.
-
getForm
public SchemaFormType getForm()
Description copied from interface:IElementParticleMappingDefinition
This method returns the schemaforn of the attribute.- Specified by:
getForm
in interfaceIElementParticleMappingDefinition
- Returns:
- the schemaform, may not be null.
-
getAttributeName
public String getAttributeName()
Description copied from interface:IElementParticleMappingDefinition
This method returns the attribute for the element content.- Specified by:
getAttributeName
in interfaceIElementParticleMappingDefinition
- Returns:
- The attribute definition, may be null.
-
getElementReference
public IElementReference getElementReference()
Description copied from interface:IElementParticleMappingDefinition
This method returns the element reference of the element. An element has either an elementreference, typereference or an inlinetype. If not a elementreference this method must return null.- Specified by:
getElementReference
in interfaceIElementParticleMappingDefinition
- Returns:
- The full name of the referenced element.
-
getTypeReference
public ITypeReference getTypeReference()
Description copied from interface:IElementParticleMappingDefinition
This method returns the element reference of the element. An element has either an elementreference, typereference or an inlinetype. If not a typereference this method must return null.- Specified by:
getTypeReference
in interfaceIElementParticleMappingDefinition
- Returns:
- The typereference of the element.
-
getInlineType
public ITypeMappingDefinition getInlineType()
Description copied from interface:IElementParticleMappingDefinition
This method returns the element reference of the element. An element has either an elementreference, typereference or an inlinetype. If not a elementreference this method must return null.- Specified by:
getInlineType
in interfaceIElementParticleMappingDefinition
- Returns:
- The type definition of the inline type.
-
isNillable
public boolean isNillable()
Description copied from interface:IElementParticleMappingDefinition
This method returns whether the element is nillable- Specified by:
isNillable
in interfaceIElementParticleMappingDefinition
- Returns:
- The nillable value
-
getValidations
public IFieldValidationDefinition[] getValidations()
Description copied from interface:IElementParticleMappingDefinition
This method returns the validations of the attribute.- Specified by:
getValidations
in interfaceIElementParticleMappingDefinition
- Returns:
- The validations of the attribute, may not be null.
-
-