A read only data store for Atom XML based services or documents
A data store for Atom XML based services or documents. This store is still under development and doesn't support wildcard filtering yet. Attribute filtering is limited to category or id.
Parameter | Type | Description |
---|---|---|
args | object | An anonymous object to initialize properties. It expects the following values:
|
See the dojox/data/AtomReadStore reference documentation for more information.
This function tests whether the item passed in is indeed a valid 'attribute' like type for the store.
Parameter | Type | Description |
---|---|---|
attribute | attribute-name-string | The attribute to test for being contained by the store. |
This function tests whether the item passed in is indeed an item in the store.
Parameter | Type | Description |
---|---|---|
item | dojo/data/api/Item | The item to test for being contained by the store. |
Retrieves the items from the Atom XML document.
Parameter | Type | Description |
---|---|---|
request | undefined | |
fetchHandler | undefined | |
errorHandler | undefined |
Parameter | Type | Description |
---|---|---|
request | undefined |
Parses the document in a first pass
Parameter | Type | Description |
---|---|---|
document | undefined | |
request | undefined |
Initializes an item before it can be parsed.
Parameter | Type | Description |
---|---|---|
item | undefined |
See dojo/data/api/Read.close()
Parameter | Type | Description |
---|---|---|
request | dojo/data/api/Request | Object |
Optional
|
Check whether the attribute values contain the value
Parameter | Type | Description |
---|---|---|
item | dojo/data/api/Item | An object to check |
attribute | attribute | attribute-name-string | A tag name of a child element, An XML attribute name or one of special names |
value | anything |
True if the attribute values contain the value, otherwise false
Return an array of attribute names
'item' must be have been created by the AtomReadStore instance. tag names of child elements and XML attribute names of attributes specified to the element are returned along with special attribute names applicable to the element including "tagName", "childNodes" if the element has child elements, "text()" if the element has child text nodes, and attribute names in '_attributeMap' that match the tag name of the element.
Parameter | Type | Description |
---|---|---|
item | dojo/data/api/Item | An XML element |
An array of attributes found
Return supported data APIs
"dojo.data.api.Read" and "dojo.data.api.Write"
Non-API method for retrieving values regarding the Atom feed, rather than the Atom entries.
Parameter | Type | Description |
---|---|---|
attribute | undefined | |
defaultValue | undefined |
Non-API method for retrieving values regarding the Atom feed, rather than the Atom entries.
Parameter | Type | Description |
---|---|---|
attribute | undefined | |
defaultValue | undefined |
See dojo/data/api/Read.getLabel()
Parameter | Type | Description |
---|---|---|
item | dojo/data/api/Item |
See dojo/data/api/Read.getLabelAttributes()
Parameter | Type | Description |
---|---|---|
item | dojo/data/api/Item |
Return an attribute value
'item' must be an instance of an object created by the AtomReadStore instance. Accepted attributes are id, subtitle, title, summary, content, author, updated, published, category, link and alternate
Parameter | Type | Description |
---|---|---|
item | dojo/data/api/Item | An item returned by a call to the 'fetch' method. |
attribute | attribute | attribute-name-string | A attribute of the Atom Entry |
defaultValue | anything |
Optional A default value |
An attribute value found, otherwise 'defaultValue'
Return an attribute value
'item' must be an instance of an object created by the AtomReadStore instance. Accepted attributes are id, subtitle, title, summary, content, author, updated, published, category, link and alternate
Parameter | Type | Description |
---|---|---|
item | dojo/data/api/Item | An item returned by a call to the 'fetch' method. |
attribute | attribute | attribute-name-string | A attribute of the Atom Entry |
An array of values for the attribute value found, otherwise 'defaultValue'
Check whether an element has the attribute
Parameter | Type | Description |
---|---|---|
item | dojo/data/api/Item | 'item' must be created by the AtomReadStore instance. |
attribute | attribute | attribute-name-string | An attribute of an Atom Entry item. |
True if the element has the attribute, otherwise false
Check whether the object is an item (XML element)
Parameter | Type | Description |
---|---|---|
something | anything |
True if the object is an XML element, otherwise false
Check whether the object is an item (XML element) and loaded
Parameter | Type | Description |
---|---|---|
something | anything |
True if the object is an XML element, otherwise false
Load an item (XML element)
Parameter | Type | Description |
---|---|---|
keywordArgs | object | object containing the args for loadItem. See dojo/data/api/Read.loadItem() |