Class DomainObjectDefinition
- java.lang.Object
-
- com.aquima.interactions.communication.impl.DomainObjectDefinition
-
- All Implemented Interfaces:
IDomainObjectDefinition
public class DomainObjectDefinition extends Object implements IDomainObjectDefinition
Data Object definition implementation.- Since:
- 9.3
- Author:
- A.Pragt
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DomainObjectDefinition(IDomainObjectDS datasource, IMetaModel metaModel, IRuleEngine ruleEngine, IEntityDefinition entityDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getProperties()
Returns an array that contains all property names in this object definition.IDomainPropertyDefinition
getProperty(String name)
Returns a property (by name) from the definition.
-
-
-
Constructor Detail
-
DomainObjectDefinition
protected DomainObjectDefinition(IDomainObjectDS datasource, IMetaModel metaModel, IRuleEngine ruleEngine, IEntityDefinition entityDefinition) throws InitializationException
- Throws:
InitializationException
-
-
Method Detail
-
getProperties
public String[] getProperties()
Returns an array that contains all property names in this object definition.- Specified by:
getProperties
in interfaceIDomainObjectDefinition
- Returns:
- Property names, or an empty array (never null).
-
getProperty
public IDomainPropertyDefinition getProperty(String name) throws UnknownPropertyException
Returns a property (by name) from the definition. When the provided name does not match a property that exists in this definition, an exception is thrown.- Specified by:
getProperty
in interfaceIDomainObjectDefinition
- Parameters:
name
- The name of a property, not null.- Returns:
- The property, never null
- Throws:
UnknownPropertyException
- When no property by the provided name exists in this object definition.
-
-