Click or drag to resize

IValidatorNameValidation Method

Validates a name of a CAEX object. Names of CAEX classes or types (RoleClasses, InterfaceClasses, SystemUnitClasses and AttributeTypes), Attributes, Libraries and CAEX InstanceHierarchies shall be unique across its siblings or across all child elements of the same CAEX parent element over its life time. This shall assure that referencing a library, a class, a type or an attribute by its path delivers a unique result.

Namespace: Aml.Engine.Services.Interfaces
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
(bool IsValid, string Message) NameValidation(
	CAEXObject caexObject,
	string name
)

Parameters

caexObject  CAEXObject
The CAEX object.
name  String
The name, which should be assigned to the object.

Return Value

ValueTupleBoolean, String
A value tuple, returning the validation result and a message
See Also