|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An IPTC subject code from the IPTC Information Interchange Model (IIM).
The subject code is part of the DescriptiveMetadata
for
a NewsComponent
.
Although the NewsML documentation limits this property to IPTC subject codes, the fact that the codes are formal names implies that other vocabularies could be used; programmers should take care using this interface until the IPTC clarifies the situation, since providers may choose to take a liberal interpretation.
Method Summary | |
SubjectCodeItem[] |
getItem()
Convenience method: get all Item children in an array. |
SubjectCodeItem |
getItem(int index)
Convenience method: get an item from the subject code. |
int |
getItemCount()
Convenience method: count the items available in this subject code. |
AssignedFormalName[] |
getSubject()
Get an array of all subjects in the code. |
AssignedFormalName |
getSubject(int index)
Get the IIM code for the subject of a news item. |
int |
getSubjectCount()
Count the subjects in the code. |
AssignedFormalName[] |
getSubjectDetail()
Get an array of all subject details in the code. |
AssignedFormalName |
getSubjectDetail(int index)
Get the IIM code for a subject detail of a news item. |
int |
getSubjectDetailCount()
Count the subject details in the code. |
AssignedFormalName[] |
getSubjectMatter()
Get an array of all subject matter in the code. |
AssignedFormalName |
getSubjectMatter(int index)
Get the IIM code for the subject matter of a news item. |
int |
getSubjectMatterCount()
Count the subject matter in the code. |
AssignedFormalName[] |
getSubjectQualifier()
Get an array of all subject qualifiers in the code. |
AssignedFormalName |
getSubjectQualifier(int index)
Get the IIM code for a subject qualifier. |
int |
getSubjectQualifierCount()
Count the subject qualifiers in the code. |
Methods inherited from interface org.newsml.toolkit.AssignmentNode |
getAssignedBy, getAssignmentDateAndTime, getConfidence, getHowPresent, getImportance |
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 getSubjectCount()
getSubject(int)
,
getSubject()
public AssignedFormalName getSubject(int index)
index
- The index of the subject, zero-based, in document
order.getSubjectCount()
,
getSubject()
public AssignedFormalName[] getSubject()
getSubjectCount()
,
getSubject(int)
public int getSubjectMatterCount()
getSubjectMatter(int)
,
getSubjectMatter()
public AssignedFormalName getSubjectMatter(int index)
index
- The index of the subject matter, zero-based, in
document order.getSubjectMatterCount()
,
getSubjectMatter()
public AssignedFormalName[] getSubjectMatter()
getSubjectMatterCount()
,
getSubjectMatter(int)
public int getSubjectDetailCount()
getSubjectDetail(int)
,
getSubjectDetail()
public AssignedFormalName getSubjectDetail(int index)
index
- The index of the subject detail, zero-based, in
document order.getSubjectDetailCount()
,
getSubjectDetail()
public AssignedFormalName[] getSubjectDetail()
getSubjectDetailCount()
,
getSubjectDetail(int)
public int getSubjectQualifierCount()
getSubjectQualifier(int)
,
getSubjectQualifier()
public AssignedFormalName getSubjectQualifier(int index)
Note: since every subject, subject matter, or subject detail
may have zero or more qualifiers, the index of the qualifier will
not likely have any correspondence to the index of the thing
it qualifiers; to obtain qualifiers grouped with the things they
qualify, use the getItem(int)
method.
index
- The index of the subject qualifier, zero-based, in
document order.getSubjectQualifierCount()
,
getSubjectQualifier()
public AssignedFormalName[] getSubjectQualifier()
getSubjectQualifierCount()
,
getSubjectQualifier(int)
public int getItemCount()
getItem(int)
public SubjectCodeItem getItem(int index)
The item includes a single piece of Subject, SubjectMatter, or Subject information together with zero or more SubjectQualifiers.
index
- The index of the item, zero-based, numbered
sequentially.public SubjectCodeItem[] getItem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |