|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Container for a news component's news lines.
A NewsComponent
may have a series of standard (and
non-standard) news lines attached to it, such as the headline,
byline, and dateline. All of those news lines are accessible
through this interface. There are also special convenience
methods to return headlines and subheadlines as grouped pairs
in a HeadLineGroup
.
News lines contain natural-language text intended for human readers, and do not necessarily follow rigid formats. The information in the news lines may be duplicated in some types of content (such as textual news stories) but not in others (such as photos).
Method Summary | |
OriginText[] |
getByLine()
Get all byline children in an array. |
OriginText |
getByLine(int index)
Get a ByLine. |
int |
getByLineCount()
Count the ByLines. |
OriginText[] |
getCopyrightLine()
Get all CopyrightLine children in an array. |
OriginText |
getCopyrightLine(int index)
Get a copyright line. |
int |
getCopyrightLineCount()
Count the copyright lines. |
OriginText[] |
getCreditLine()
Get all CreditLine children in an array. |
OriginText |
getCreditLine(int index)
Get a credit line. |
int |
getCreditLineCount()
Count the credit lines. |
OriginText[] |
getDateLine()
Get all DateLine children in an array. |
OriginText |
getDateLine(int index)
Get a dateline. |
int |
getDateLineCount()
Count the datelines. |
OriginText[] |
getHeadLine()
Get all headline children in an array. |
OriginText |
getHeadLine(int index)
Get a headline. |
int |
getHeadLineCount()
Count the headlines. |
HeadLineGroup[] |
getHeadLineGroup()
Convenience method: get all HeadLineGroup children in an array. |
HeadLineGroup |
getHeadLineGroup(int index)
Convenience method: get a headline/subheadline pair. |
int |
getHeadLineGroupCount()
Convenience method: count the headline groups present. |
OriginText[] |
getKeywordLine()
Get all KeywordLine children in an array. |
OriginText |
getKeywordLine(int index)
Get a keyword line. |
int |
getKeywordLineCount()
Count the keyword lines. |
NewsLine[] |
getNewsLine()
Get all NewsLine children in an array. |
NewsLine |
getNewsLine(int index)
Get a user-defined news line. |
int |
getNewsLineCount()
Count the generic news lines. |
OriginText[] |
getRightsLine()
Get all RightsLine children in an array. |
OriginText |
getRightsLine(int index)
Get a rights line. |
int |
getRightsLineCount()
Count the rights lines. |
OriginText[] |
getSeriesLine()
Get all SeriesLine children in an array. |
OriginText |
getSeriesLine(int index)
Get a series line. |
int |
getSeriesLineCount()
Count the series lines. |
OriginText[] |
getSlugLine()
Get all SlugLine children in an array. |
OriginText |
getSlugLine(int index)
Get a slug line. |
int |
getSlugLineCount()
Count the slug lines. |
OriginText[] |
getSubHeadLine()
Get all subheadline children in an array. |
OriginText |
getSubHeadLine(int index)
Get a subheadline. |
int |
getSubHeadLineCount()
Count the subheadlines. |
Methods inherited from interface org.newsml.toolkit.BaseNode |
getAttr, getChild, getChild, getChild, getChild, getChildCount, getChildCount, getParent, getPath, getSession, getXMLName, getXPath, insertAfter, insertAfter, insertAfter, insertAfter, insertAfterDuid, insertAfterDuid, insertBefore, insertBefore, insertBefore, insertBefore, insertBeforeDuid, insertBeforeDuid, insertChild, insertChild, insertFirst, insertFirst, insertLast, insertLast, removeChild, removeChild, removeSelf, replaceChild, replaceChild, replaceChild, replaceChild, replaceChild, replaceChild, setAttr, setAttr, toXML, toXML, unsetAttr, unsetAttr, writeXML, writeXML |
Methods inherited from interface org.newsml.toolkit.IdNode |
getDuid, getEuid |
Method Detail |
public int getHeadLineCount()
public OriginText getHeadLine(int index)
The headline contains a primary title for the NewsComponent
.
index
- The index of the headline, zero-based, numbered
sequentially.public OriginText[] getHeadLine()
public int getSubHeadLineCount()
public OriginText getSubHeadLine(int index)
The subheadline contains an optional subtitle for the NewsComponent
, linked with the preceding HeadLine in document
order.
Note: HeadLine and SubHeadLine indices will not necessarily
correspond, since some headlines may not be accompanied by
subheadlines; use getHeadLineGroup(int)
to get
headlines and subheadlines grouped properly.
index
- The index of the subheadline, zero-based, numbered
sequentially.public OriginText[] getSubHeadLine()
public int getByLineCount()
public OriginText getByLine(int index)
The ByLine presents information about the authors or
creators of the NewsComponent
.
index
- The index of the ByLine, zero-based, numbered
sequentially.public OriginText[] getByLine()
public int getDateLineCount()
public OriginText getDateLine(int index)
The byline presents information about the date when and/or
location where the NewsComponent
was created.
index
- The index of the dateline, zero-based, numbered
sequentially.public OriginText[] getDateLine()
public int getCreditLineCount()
public OriginText getCreditLine(int index)
The credit line provides credits (attribution,
contributions, and so on) for the NewsComponent
.
index
- The index of the credit line, zero-based, numbered
sequentially.public OriginText[] getCreditLine()
public int getCopyrightLineCount()
public OriginText getCopyrightLine(int index)
A natural-language statement of copyright information for
the NewsComponent
.
index
- The index of the copyright line, zero-based,
numbered sequentially.public OriginText[] getCopyrightLine()
public int getRightsLineCount()
public OriginText getRightsLine(int index)
A description of rights assigned for the NewsComponent
(such as distribution and archiving).
index
- The index of the rights line, zero-based, numbered
sequentially.public OriginText[] getRightsLine()
public int getSeriesLineCount()
public OriginText getSeriesLine(int index)
Information describing the role of the NewsComponent
in a larger series.
index
- The index of the series line, zero-based, numbered
sequentially.public OriginText[] getSeriesLine()
public int getSlugLineCount()
public OriginText getSlugLine(int index)
An abbreviated string for referring to a news story. There is no fixed format for slug lines, and they will vary among providers.
index
- The index of the slug line, zero-based, numbered
sequentially.public OriginText[] getSlugLine()
public int getKeywordLineCount()
public OriginText getKeywordLine(int index)
Displayable keywords relevant to a NewsComponent
.
index
- The index of the keyword line, zero-based,
numbered sequentially.public OriginText[] getKeywordLine()
public int getNewsLineCount()
public NewsLine getNewsLine(int index)
This method returns news lines of types not covered by the other methods.
index
- The index of the news line, zero-based, numbered
sequentially.public NewsLine[] getNewsLine()
public int getHeadLineGroupCount()
getHeadLineCount()
public HeadLineGroup getHeadLineGroup(int index)
index
- The index of the headline group, zero-based,
numbered sequentially.getHeadLine(int)
,
getSubHeadLine(int)
public HeadLineGroup[] getHeadLineGroup()
getHeadLine()
,
getSubHeadLine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |