Edit in GitHubLog an issue

RuleDataObjects

A collection of prefight rule data objects.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

RuleDataObject add( String name, RuleDataType dataType, Mixed dataValue, Object withProperties )

Add a new preflight rule data to a preflight profile rule.

Parameters

TypeNameDescription
String
name
The name of the rule data to add
RuleDataType
dataType
The type of data
Mixed
dataValue
The value of data. Can accept: String, Real, Long Integer, Short Integer, Boolean, Object or Array of Strings, Reals, Long Integers, Short Integers, Booleans, Objects or Arrays of Array of Arrays of Array of Strings, Reals, Long Integers, Short Integers, Booleans or Objects.
Object
withProperties
Initial values for properties of the new RuleDataObject (Optional)

Number count()

Displays the number of elements in the RuleDataObject.


RuleDataObject item( Mixed index )

Returns the RuleDataObject with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

RuleDataObject itemByName( String name )

Returns the RuleDataObject with the specified name.

Parameters

TypeNameDescription
String
name
The name.

RuleDataObject itemByID( Number id )

Returns the RuleDataObject with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

RuleDataObject itemByRange( Mixed from, Mixed to )

Returns the RuleDataObjects within the specified range.

Parameters

TypeNameDescription
Mixed
from
The RuleDataObject, index, or name at the beginning of the range. Can accept: RuleDataObject, Long Integer or String.
Mixed
to
The RuleDataObject, index, or name at the end of the range. Can accept: RuleDataObject, Long Integer or String.

RuleDataObject firstItem()

Returns the first RuleDataObject in the collection.


RuleDataObject lastItem()

Returns the last RuleDataObject in the collection.


RuleDataObject middleItem()

Returns the middle RuleDataObject in the collection.


RuleDataObject previousItem( RuleDataObject obj )

Returns the RuleDataObject with the index previous to the specified index.

Parameters

TypeNameDescription
RuleDataObject
obj
The index of the RuleDataObject that follows the desired RuleDataObject.

RuleDataObject nextItem( RuleDataObject obj )

Returns the RuleDataObject whose index follows the specified RuleDataObject in the collection.

Parameters

TypeNameDescription
RuleDataObject
obj
The RuleDataObject whose index comes before the desired RuleDataObject.

RuleDataObject anyItem()

Returns any RuleDataObject in the collection.


RuleDataObject everyItem()

Returns every RuleDataObject in the collection.


String toSource()

Generates a string which, if executed, will return the RuleDataObject.


RuleDataObject []( Number index )

Returns the RuleDataObject with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.