|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
News content for presentation to humans.
A content item represents a leaf node in the NewsML content tree:
it either contains or points to actual content, such as a textual
news story, a photo, or a video. If the content item contains the
content, the content will be accessible through the
getDataContent()
method; otherwise, the content's URL
will be available through the getHref()
method.
The getMediaType()
, getFormat()
, and getNotation()
methods all provide redundant information already
available through getMimeType()
, and provide that
information in ways that will be less familiar to users;
these redundant methods have been included only for the sake of
completeness.
Fields inherited from interface org.newsml.toolkit.PrimaryNode |
CONTENT_ITEM, NEWS_COMPONENT, NEWS_ITEM, NEWS_ITEM_REF, NEWSML |
Method Summary | |
Characteristics |
getCharacteristics()
Get the physical characteristics of the news content. |
org.w3c.dom.NodeList |
getDataContent()
Get the data for inline news content. |
java.lang.String |
getDataText()
Get the text for inline news content. |
java.lang.String[] |
getEncoding()
Get all Encoding children in an array. |
java.lang.String |
getEncoding(int index)
Get an encoding step for the content. |
int |
getEncodingCount()
Get the number of encoding steps for the content. |
FormalName |
getFormat()
Get the content's format. |
java.lang.String |
getHref()
Get the URL of the actual content. |
FormalName |
getMediaType()
Get the content's media type. |
FormalName |
getMimeType()
Return the content's MIME type. |
FormalName |
getNotation()
Get the content's data type notation. |
Methods inherited from interface org.newsml.toolkit.BaseNode |
getSession, getXMLName |
Methods inherited from interface org.newsml.toolkit.CatalogNode |
getCatalog |
Methods inherited from interface org.newsml.toolkit.CommentNode |
getComment, getComment, getCommentCount |
Methods inherited from interface org.newsml.toolkit.IdNode |
getDuid, getEuid |
Methods inherited from interface org.newsml.toolkit.PrimaryNode |
asContentItem, asNewsComponent, asNewsItem, asNewsItemRef, asNewsML, getChild, getChild, getChildCount, getNodePath, getParent, getType |
Method Detail |
public java.lang.String getHref()
getDataContent()
methods
are mutually exclusive: one of the two will always return null.getHref
in interface HrefNode
getDataContent()
public FormalName getMediaType()
getMimeType()
). Typical media types include Text, Audio,
Video, and Image.getMimeType()
public FormalName getFormat()
getMimeType()
). Typical media types include ANPA 1312 and
NITF.getMimeType()
public FormalName getMimeType()
getCharacteristics()
public FormalName getNotation()
getMimeType()
) but using a
less familiar representation.getMimeType()
public Characteristics getCharacteristics()
getMimeType()
).getMimeType()
public int getEncodingCount()
public java.lang.String getEncoding(int index)
index
- The index of the encoding, zero-based, numbered
sequentially in document order.public java.lang.String[] getEncoding()
public org.w3c.dom.NodeList getDataContent()
NodeList
for the
content. This method and the getHref()
method are
mutually exclusive: one of the two will always return null.getHref()
,
getDataText()
public java.lang.String getDataText()
getDataContent()
,
getHref()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |