Adobe InDesign CS2 (4.0) Object Model JS: ValidationErrors

InDesign CS2

Class

ValidationErrors

 A collection of XML validation errors.

QuickLinks

anyItem, count, everyItem, firstItem, item, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

ValidationError anyItem ()
Returns any ValidationError in the collection.

number count ()
Displays the number of elements in the ValidationError.

Array of ValidationError everyItem ()
Returns every ValidationError in the collection.

ValidationError firstItem ()
Returns the first ValidationError in the collection.

ValidationError item (index: any)
Returns the ValidationError with the specified index or name.

ParameterTypeDescription
indexLong
String
The index or name. Can accept: Long or String.

ValidationError itemByName (name: string)
Returns the ValidationError with the specified name.

ParameterTypeDescription
namestringThe name.

Array of ValidationError itemByRange (from: any, to: any)
Returns the ValidationErrors within the specified range.

ParameterTypeDescription
fromLong
String
ValidationError
The ValidationError, index, or name at the beginning of the range. Can accept: ValidationError, Long or String.
toLong
String
ValidationError
The ValidationError, index, or name at the end of the range. Can accept: ValidationError, Long or String.

ValidationError lastItem ()
Returns the last ValidationError in the collection.

ValidationError middleItem ()
Returns the middle ValidationError in the collection.

ValidationError nextItem (obj: ValidationError)
Returns the ValidationError whose index follows the specified ValidationError in the collection.

ParameterTypeDescription
objValidationErrorThe ValidationError whose index comes before the desired ValidationError.

ValidationError previousItem (obj: ValidationError)
Returns the ValidationError with the index previous to the specified index.

ParameterTypeDescription
objValidationErrorThe index of the ValidationError that follows the desired ValidationError.

string toSource ()
Generates a string which, if executed, will return the ValidationError.

Element of

Document.validationErrors

Jongware, 27-Jun-2010 v3.0.3dContents :: Index