Prototype for ConfigurationObject objects. Is kind of SerializableObject object.
you cannot create a ConfigurationObject, only derived typed can be created such as: EncodingProperties object, Document.Parameters object, SourceDescription object.
none.
none.
ECMerge 2.1
ConfigurationObject model the object which can be used for any kind of configuration activity. They can be cloned, set from another object of the same kind, tested for equality and they can be transferred from one document to another with transfer.
no specific properties.
Copies the parameters from a my_document object, changes a source inside, and checks whether something changed.
var param = my_document.parameters.clone (
); // copy parameters
param.left.url = "c:\\temp\\file.text"; // modify the
copy
alert ("they are " + (param.equal(my_document.parameters) ?
"equal" : "different");
SerializableObject object
function clone ( )
returns an Object
none.
ConfigurationObject object, Document.Selection object
ECMerge 2.1
Constructs an object of the original object's type and containing the same value, then returns it.
Creates a clone of an OptionsSet.
var new_options_set = doc.parameters.settings.clone ();
function set ( other )
other. ConfigurationObject. Object of the same actual type as the object on which set method is called.
ConfigurationObject object
ECMerge 2.1
Copies all the values of the other Object into those of this object.
Creates a clone of an OptionsSet.
var option_set = new OptionsSet();
option_set.set (doc.parameters.settings);
function transfer ( other )
other. ConfigurationObject object. Object of the same actual type as the object on which set method is called.
ConfigurationObject object
ECMerge 2.1
Copies the values of the other Object into those of this object, values which are called 'transferable from a document to another'. Some settings are indeed link to the original document and it would nonsense to use them for another document (for example, where to save its status).
Creates a new OptionsSet and gets inside it only transferable properties
var option_set = new OptionsSet();
option_set.transfer (doc.parameters.settings);
function equal ( other )
returns a Boolean
other. ConfigurationObject object. Object of the same actual type as the object on which set method is called.
ConfigurationObject object
ECMerge 2.1
Returns true if this object and other object are identical.
Shows a message telling if two documents share the same settings:
var doc1, doc2;
var options_set1 = new OptionsSet(), options_set2 = new
OptionsSet();options_set1.transfer
(doc1.parameters.settings);
options_set2.transfer (doc2.parameters.settings);
alert ("document settings are " +
(options_set1.equal(options_set2) ? "identical" :
"different"));