NotEmpty

<< Fare clic per visualizzazione il sommario >>

Percorso:  Il linguaggio OEL > OEL Library >

NotEmpty

Checks for the selected object not being empty.

 

Methods

NotEmpty(Object obj1)

 

Parameters

Name

Description

Type

Optional

obj1

Object to be checked

Object

 

 

Return Value

Value

Boolean

 

 

Remarks

The check of the contents of an object is carried out on the following types and with the following criteria:

- String: empty -> ""

- DateTime: empty -> DateTime.MinValue o DateTime.MaxValue

- Integer: empty -> 0

- Decimal: empty -> 0

- ChangeStatusInformation: empty -> IdentityReference.Url = null o ""

- IReference: Url = null o ""

- ArrayValue: empty -> Count = 0

- ICollection: empty -> Count = 0

- DataSetValue: empty -> Fields.Count = 0

- Filter: empty -> inizialized whitout filter

 

For other type obtain the error "Invalid object type".

For object null obtain the error "Null object".