org.wso2.mashup.hostobjects.atom
Class AtomEntryHostObject
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.wso2.mashup.hostobjects.atom.AtomEntryHostObject
- All Implemented Interfaces:
- java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable, org.wso2.mashup.hostobjects.feed.IEntry
public class AtomEntryHostObject
- extends org.mozilla.javascript.ScriptableObject
- implements org.wso2.mashup.hostobjects.feed.IEntry
This is a Mozilla Rhino Host Object implementation which tries to provide a javascript representation
of the AtomEntry defined in the ATOM specification.
The "atom:entry" element represents an individual entry, acting as a
container for metadata and data associated with the entry. This element can
appear as a child of the atom:feed element, or it can appear as the document
(i.e., top-level) element of a stand-alone Atom Entry Document.
atomEntry =
element atom:entry {atomCommonAttributes,
(atomAuthor*
& atomCategory*
& atomContent?
& atomContributor*
& atomId
& atomLink*
& atomPublished?
& atomRights?
& atomSource?
& atomSummary?
& atomTitle
& atomUpdated
& extensionElement*)
}
This specification assigns no significance to the order of appearance of the
child elements of atom:entry.
The following child elements are defined by this specification (note that it
requires the presence of some of these elements):
- atom:entry elements MUST contain one or more atom:author elements,
unless the atom:entry contains an atom:source element that
contains an atom:author element or, in an Atom Feed Document, the
atom:feed element contains an atom:author element itself.
- atom:entry elements MAY contain any number of atom:category
elements.
- atom:entry elements MUST NOT contain more than one atom:content
element.
- atom:entry elements MAY contain any number of atom:contributor
elements.
- atom:entry elements MUST contain exactly one atom:id element.
- atom:entry elements that contain no child atom:content element
MUST contain at least one atom:link element with a rel attribute
value of "alternate".
- atom:entry elements MUST NOT contain more than one atom:link
element with a rel attribute value of "alternate" that has the
same combination of type and hreflang attribute values.
- atom:entry elements MAY contain additional atom:link elements
beyond those described above.
- atom:entry elements MUST NOT contain more than one atom:published
element.
- atom:entry elements MUST NOT contain more than one atom:rights
element.
- atom:entry elements MUST NOT contain more than one atom:source
element.
- atom:entry elements MUST contain an atom:summary element in either
of the following cases:
the atom:entry contains an atom:content that has a "src"
attribute (and is thus empty).
the atom:entry contains content that is encoded in Base64;
i.e., the "type" attribute of atom:content is a MIME media type
[MIMEREG], but is not an XML media type [RFC3023], does not
begin with "text/", and does not end with "/xml" or "+xml".
- atom:entry elements MUST NOT contain more than one atom:summary
element.
- atom:entry elements MUST contain exactly one atom:title element.
- atom:entry elements MUST contain exactly one atom:updated element.
- See Also:
- Serialized Form
| Fields inherited from class org.mozilla.javascript.ScriptableObject |
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface org.mozilla.javascript.Scriptable |
NOT_FOUND |
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomEntryHostObject
public AtomEntryHostObject()
AtomEntryHostObject
public AtomEntryHostObject(org.mozilla.javascript.Scriptable arg0,
org.mozilla.javascript.Scriptable arg1)
jsConstructor
public void jsConstructor()
- Constructor the user will be using inside javaScript
- Specified by:
jsConstructor in interface org.wso2.mashup.hostobjects.feed.IEntry
getClassName
public java.lang.String getClassName()
- Specified by:
getClassName in interface org.mozilla.javascript.Scriptable- Specified by:
getClassName in interface org.wso2.mashup.hostobjects.feed.IEntry- Specified by:
getClassName in class org.mozilla.javascript.ScriptableObject
jsSet_author
public void jsSet_author(java.lang.String author)
- Specified by:
jsSet_author in interface org.wso2.mashup.hostobjects.feed.IEntry
jsGet_author
public java.lang.Object jsGet_author()
- Specified by:
jsGet_author in interface org.wso2.mashup.hostobjects.feed.IEntry
jsSet_category
public void jsSet_category(java.lang.String category)
- Specified by:
jsSet_category in interface org.wso2.mashup.hostobjects.feed.IEntry
jsGet_category
public java.lang.String jsGet_category()
- Specified by:
jsGet_category in interface org.wso2.mashup.hostobjects.feed.IEntry
jsSet_content
public void jsSet_content(java.lang.Object content)
- Specified by:
jsSet_content in interface org.wso2.mashup.hostobjects.feed.IEntry
jsGet_content
public java.lang.String jsGet_content()
- Specified by:
jsGet_content in interface org.wso2.mashup.hostobjects.feed.IEntry
jsSet_contributor
public void jsSet_contributor(java.lang.String contributor)
- Specified by:
jsSet_contributor in interface org.wso2.mashup.hostobjects.feed.IEntry
jsGet_contributor
public java.lang.String jsGet_contributor()
- Specified by:
jsGet_contributor in interface org.wso2.mashup.hostobjects.feed.IEntry
jsSet_id
public void jsSet_id(java.lang.Object id)
throws org.apache.abdera.i18n.iri.IRISyntaxException
- Throws:
org.apache.abdera.i18n.iri.IRISyntaxException
jsGet_id
public java.lang.String jsGet_id()
throws org.apache.abdera.i18n.iri.IRISyntaxException
- Throws:
org.apache.abdera.i18n.iri.IRISyntaxException
jsSet_link
public void jsSet_link(java.lang.String link)
throws org.apache.abdera.i18n.iri.IRISyntaxException
- Specified by:
jsSet_link in interface org.wso2.mashup.hostobjects.feed.IEntry
- Throws:
org.apache.abdera.i18n.iri.IRISyntaxException
jsGet_link
public java.lang.String[] jsGet_link()
throws org.apache.abdera.i18n.iri.IRISyntaxException
- Specified by:
jsGet_link in interface org.wso2.mashup.hostobjects.feed.IEntry
- Throws:
org.apache.abdera.i18n.iri.IRISyntaxException
jsSet_published
public void jsSet_published(java.lang.Object published)
throws org.apache.axis2.AxisFault
- Specified by:
jsSet_published in interface org.wso2.mashup.hostobjects.feed.IEntry
- Throws:
org.apache.axis2.AxisFault
jsGet_published
public java.util.Date jsGet_published()
- Specified by:
jsGet_published in interface org.wso2.mashup.hostobjects.feed.IEntry
jsSet_rights
public void jsSet_rights(java.lang.Object rights)
jsGet_rights
public java.lang.String jsGet_rights()
jsSet_summary
public void jsSet_summary(java.lang.Object summary)
- Specified by:
jsSet_summary in interface org.wso2.mashup.hostobjects.feed.IEntry
jsGet_summary
public java.lang.String jsGet_summary()
- Specified by:
jsGet_summary in interface org.wso2.mashup.hostobjects.feed.IEntry
jsSet_title
public void jsSet_title(java.lang.Object title)
- Specified by:
jsSet_title in interface org.wso2.mashup.hostobjects.feed.IEntry
jsGet_title
public java.lang.String jsGet_title()
- Specified by:
jsGet_title in interface org.wso2.mashup.hostobjects.feed.IEntry
jsSet_updated
public void jsSet_updated(java.lang.Object updated)
throws org.apache.axis2.AxisFault
- Specified by:
jsSet_updated in interface org.wso2.mashup.hostobjects.feed.IEntry
- Throws:
org.apache.axis2.AxisFault
jsGet_updated
public java.lang.String jsGet_updated()
- Specified by:
jsGet_updated in interface org.wso2.mashup.hostobjects.feed.IEntry
jsGet_XML
public org.mozilla.javascript.Scriptable jsGet_XML()
- Specified by:
jsGet_XML in interface org.wso2.mashup.hostobjects.feed.IEntry
- Returns:
- the E4X XML of the contents in this AtomEntry object
jsFunction_toString
public java.lang.String jsFunction_toString()
- Specified by:
jsFunction_toString in interface org.wso2.mashup.hostobjects.feed.IEntry