Adobe InCopy CS6 (8.0) Object Model JS: ValidationErrors

InCopy CS6

Class

ValidationErrors

 A collection of XML validation errors.

See also ValidationError.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

ValidationError [] (index: number)
Returns the ValidationError with the specified index.

ParameterTypeDescription
indexnumberThe index.

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: varies)
Returns the ValidationError with the specified index or name.

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

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

ParameterTypeDescription
fromLong Integer
String
ValidationError
The ValidationError, index, or name at the beginning of the range. Can accept: ValidationError, Long Integer or String.
toLong Integer
String
ValidationError
The ValidationError, index, or name at the end of the range. Can accept: ValidationError, Long Integer 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, 29-Apr-2012 v3.0.3iContents :: Index