Adobe InDesign CS4 (6.0) Object Model JS: XMLRuleProcessor

InDesign CS4

Class

XMLRuleProcessor

 An XML rule processor.

QuickLinks

endProcessingRuleSet, extractLabel, findNextMatch, getElements, halt, insertLabel, remove, skipChildren, startProcessingRuleSet, startProcessingSubtree, toSource, toSpecifier

Hierarchy

Application
XMLRuleProcessor
XMLRuleMatchData

Properties

PropertyTypeAccessDescription
haltedbool readonlyIf true, the XML rule process has halted.
idnumber readonlyThe unique ID of the XMLRuleProcessor.
indexnumber readonlyThe index of the XMLRuleProcessor within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
labelstring r/wA property that can be set to any string.
parentApplication readonlyThe parent of the XMLRuleProcessor (a Application).
propertiesObject r/wA property that allows setting of several properties at the same time.
rulePathsArray of string readonlyThe XPath condition paths of the rules in the rule set.

Methods

Instances

void endProcessingRuleSet ()
Stop processing XML rule set.

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

XMLRuleMatchData findNextMatch ()
Finds the next matching XML element.

Array of XMLRuleProcessor getElements ()
Resolves the object specifier, creating an array of object references.

void halt ()
Halt the XML rule processor.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

void remove ()
Deletes the XMLRuleProcessor.

void skipChildren ()
Do not process XML elements (children) of the current XML element.

XMLRuleMatchData startProcessingRuleSet (initialElement: XMLElement)
Start processing an XML rule set.

ParameterTypeDescription
initialElementXMLElementThe XML element at which to start processing the rule set.

XMLRuleMatchData startProcessingSubtree ()
Process the XML elements of the current XML element.

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

string toSpecifier ()
Retrieves the object specifier.

Element of

XMLRuleMatchData.parent

Used in:

array of XMLRuleProcessor XMLRuleProcessors.itemByRange (from: any, to: any)

XMLRuleProcessor XMLRuleProcessors.nextItem (obj: XMLRuleProcessor)

XMLRuleProcessor XMLRuleProcessors.previousItem (obj: XMLRuleProcessor)

Return

Array of XMLRuleProcessor XMLRuleProcessor.getElements ()

XMLRuleProcessor XMLRuleProcessors.[] (index: number)

XMLRuleProcessor XMLRuleProcessors.add (rulePaths: Array of string[, prefixMappingTable: Array of any][, withProperties: Object])

XMLRuleProcessor XMLRuleProcessors.anyItem ()

Array of XMLRuleProcessor XMLRuleProcessors.everyItem ()

XMLRuleProcessor XMLRuleProcessors.firstItem ()

XMLRuleProcessor XMLRuleProcessors.item (index: any)

XMLRuleProcessor XMLRuleProcessors.itemByID (id: number)

XMLRuleProcessor XMLRuleProcessors.itemByName (name: string)

Array of XMLRuleProcessor XMLRuleProcessors.itemByRange (from: any, to: any)

XMLRuleProcessor XMLRuleProcessors.lastItem ()

XMLRuleProcessor XMLRuleProcessors.middleItem ()

XMLRuleProcessor XMLRuleProcessors.nextItem (obj: XMLRuleProcessor)

XMLRuleProcessor XMLRuleProcessors.previousItem (obj: XMLRuleProcessor)

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