getXML() method. This interface uses
that method to access the XML document for which it provides a CDF interface.
| Class Summary | |
|---|---|
| jsx3.xml.CDF.Document | A subclass of jsx3.xml.Document that implements the CDF interface. |
| Field Summary | |
|---|---|
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static int | |
| static String | |
| static String | |
| static int | |
| static int | |
| static int | |
| Method Summary | |
|---|---|
| jsx3.xml.Entity | adoptRecord(strSourceId : String | jsx3.xml.CDF, strRecordId : String, strParentRecordId : String, bRedraw : boolean) Transfers a CDF record from another object to this object. |
| jsx3.xml.Entity | adoptRecordBefore(strSourceId : String | jsx3.xml.CDF, strRecordId : String, strSiblingRecordId : String, bRedraw : boolean) Equivalent to adoptRecord, except that the to-be relationship is as a previousSibling to the CDF record identified by the parameter, strSiblingRecordId
This method fails quietly if any of the following conditions apply:
there is no record with a jsxid equal to strSourceId
there is no record in the source object with a jsxid equal to strRecordId
strSiblingRecordId is specified and there is no record in this object with a
jsxid equal to strParentRecordId
this object already has a record with jsxid equal to the record to adopt
|
| void | Converts all attributes in this CDF document that are property keys of the form {key} to
the value of the property. |
| jsx3.xml.Entity | Removes a record from the XML data source of this object. |
| void | Removes a specific property from a record. |
| static String | getKey() Generates a unique jsxid attribute for a CDF record. |
| Object<String, String> | Returns an object containing the attributes of a particular CDF record as property/value pairs. |
| jsx3.xml.Entity | getRecordNode(strRecordId : String) Returns a record from the XML data source of this object. |
| static String | Deprecated. |
| jsx3.xml.Entity | Inserts a new record into the XML data source of this object. |
| jsx3.xml.Entity | insertRecordBefore(objRecord : Object<String, String>, strSiblingRecordId : String, bRedraw : boolean) Creates a new CDF record and inserts it into the CDF data source of this object, before the record identified by strSiblingRecordId. |
| void | Inserts a new record into the XML data source of this object. |
| jsx3.xml.CDF | insertRecordProperty(strRecordId : String, strPropName : String, strPropValue : String, bRedraw : boolean) Inserts a new property into an existing record with jsxid equal to strRecordId. |
| static jsx3.xml.Document | Creates a new XML document that represents an empty CDF document. |
| abstract void | An abstract method that must be implemented by any class that implements this interface. |
| jsx3.xml.Document | reloadFromSource(bSystem : boolean) Deprecated. use jsx3.xml.Cacheable.resetXmlCacheData() instead |
| void | Deprecated. Use jsx3.xml.Cacheable.clearXmlData() instead. |
| Field Detail |
|---|
| Method Detail |
|---|
strSourceId
strRecordId
strParentRecordId is specified and there is no record in this object with
jsxid equal to strParentRecordId
jsxid attribute of the data record in the source object to transfer.jsxid of an existing record. If this optional parameter
is provided, the adopted record will be added as a child of this record. Otherwise, the adopted record will
be added to the root data element.strSourceId
strRecordId
strSiblingRecordId is specified and there is no record in this object with a
jsxid equal to strParentRecordId
jsxid attribute of the data record in the source object to transfer.jsxid of an existing record in front of
which the record identified by strSourceId will be placedtrue or null, the on-screen view of this object is
immediately updated to reflect the deleted record.{key} to
the value of the property.true, arrProps is combined with the default set of
attributes and those attributes are converted.
jsxid attribute of the data record to remove.true or null, the on-screen view of this object is
immediately updated to reflect the deleted record.null if no such record found.
jsxid attribute of the data record to modify.true or null, the on-screen view of this object is
immediately updated to reflect the deleted property.
jsxid attribute for a CDF record. This method can be used for new CDF records
when there is no natural unique key to assign to them.
objCDF.getRecord(strId).propName;
objCDF.getRecordNode(strId).getAttribute("propName");
jsxid attribute of the data record to return.null if no such record found. redrawRecord(strRecordId, jsx3.xml.CDF.UPDATE); on this object.jsxid attribute of the data record to return.null if none exists with a jsxid
attribute equal to strRecordId. jsxid property of objRecord,
the operation is treated as an update, meaning the existing record is completely removed and a new record with
the given jsxid is inserted.jsxid that is unique across all records in the XML document.
All property values will be treated as strings. Additionally, the following 3 characters are escaped:
" > <.jsxid of an existing record. If this optional parameter
is provided and a record exists with a matching jsxid attribute, the new record will be added as a child of
this record. Otherwise, the new record will be added to the root data element. However, if a
record already exists with a jsxid attribute equal to the jsxid property of
objRecord, this parameter will be ignored. In this case adoptRecord() must be called
to change the parent of the record.true or null, the on-screen view of this object is
immediately updated to reflect the additional record.strSiblingRecordId
objRecord.jsxid
jsxid that is unique across all records in the XML document.
All property values will be treated as strings. Additionally, the following 3 characters are escaped:
" > <.jsxid of an existing record before which the new record will be inserted.true or null, the on-screen view of this object is
immediately updated to reflect the additional record.insertRecord() except that its first parameter is of type jsx3.xml.Entity rather than
Object.record. Note that most classes that
implement this interface require that all records have an attribute named jsxid that is unique
across all records in the XML document.jsxid of an existing record. If this optional parameter
is provided and a record exists with a matching jsxid attribute, the new record will be added as a child of
this record. Otherwise, the new record will be added to the root data element.true or null, the on-screen view of this object is
immediately updated to reflect the additional record.jsxid equal to strRecordId.
If the property already exists, the existing property value will be updated. If no such record exists
in the XML document, this method fails quietly.jsxid attribute of the data record to modify.true or null, the on-screen view of this object is
immediately updated to reflect the inserted property.<data jsxid="jsxroot"/>.jsxid attribute of the data record to redraw.INSERT, UPDATE, or DELETE.jsx3.xml.Cacheable.resetXmlCacheData() insteadresetData() in that this method does not reset the XML
document of this object to an empty CDF document.jsx3.xml.Cacheable.clearXmlData() instead.CDF.newDocument() and places the document
in the server cache.true or null, the on-screen view of this object is
immediately updated to reflect the inserted property.