ContributorCollection
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable
public class ContributorCollection implements Iterable
Represents bibliography source contributors.
Examples:
Shows how to get bibliography sources available in the document.
Document document = new Document(getMyDir() + "Bibliography sources.docx");
Bibliography bibliography = document.getBibliography();
Assert.assertEquals(12, bibliography.getSources().size());
Source source = (Source)bibliography.getSources().toArray()[8];
Assert.assertEquals(source.getTitle(), "Book 0 (No LCID)");
ContributorCollection contributors = source.getContributors();
PersonCollection authors = (PersonCollection)contributors.getAuthor();
Person person = authors.iterator().next();
Assert.assertEquals(person.getFirst(), "Roxanne");
Assert.assertEquals(person.getMiddle(), "Brielle");
Assert.assertEquals(person.getLast(), "Tejeda");
Methods
Method | Description |
---|---|
getArtist() | Gets the artist of a source. |
getAuthor() | Gets the author of a source. |
getBookAuthor() | Gets the book author of a source. |
getCompiler() | Gets the compiler of a source. |
getComposer() | Gets the composer of a source. |
getConductor() | Gets the conductor of a source. |
getCounsel() | Gets the counsel of a source. |
getDirector() | Gets the director of a source. |
getEditor() | Gets the editor of a source. |
getInterviewee() | Gets the interviewee of a source. |
getInterviewer() | Gets the interviewer of a source. |
getInventor() | Gets the inventor of a source. |
getPerformer() | Gets the performer of a source. |
getProducer() | Gets the producer of a source. |
getTranslator() | Gets the translator of a source. |
getWriter() | Gets the writer of a source. |
iterator() |
getArtist()
public Contributor getArtist()
Gets the artist of a source.
Returns: Contributor - The artist of a source.
getAuthor()
public Contributor getAuthor()
Gets the author of a source.
Examples:
Shows how to get bibliography sources available in the document.
Document document = new Document(getMyDir() + "Bibliography sources.docx");
Bibliography bibliography = document.getBibliography();
Assert.assertEquals(12, bibliography.getSources().size());
Source source = (Source)bibliography.getSources().toArray()[8];
Assert.assertEquals(source.getTitle(), "Book 0 (No LCID)");
ContributorCollection contributors = source.getContributors();
PersonCollection authors = (PersonCollection)contributors.getAuthor();
Person person = authors.iterator().next();
Assert.assertEquals(person.getFirst(), "Roxanne");
Assert.assertEquals(person.getMiddle(), "Brielle");
Assert.assertEquals(person.getLast(), "Tejeda");
Returns: Contributor - The author of a source.
getBookAuthor()
public Contributor getBookAuthor()
Gets the book author of a source.
Returns: Contributor - The book author of a source.
getCompiler()
public Contributor getCompiler()
Gets the compiler of a source.
Returns: Contributor - The compiler of a source.
getComposer()
public Contributor getComposer()
Gets the composer of a source.
Returns: Contributor - The composer of a source.
getConductor()
public Contributor getConductor()
Gets the conductor of a source.
Returns: Contributor - The conductor of a source.
getCounsel()
public Contributor getCounsel()
Gets the counsel of a source.
Returns: Contributor - The counsel of a source.
getDirector()
public Contributor getDirector()
Gets the director of a source.
Returns: Contributor - The director of a source.
getEditor()
public Contributor getEditor()
Gets the editor of a source.
Returns: Contributor - The editor of a source.
getInterviewee()
public Contributor getInterviewee()
Gets the interviewee of a source.
Returns: Contributor - The interviewee of a source.
getInterviewer()
public Contributor getInterviewer()
Gets the interviewer of a source.
Returns: Contributor - The interviewer of a source.
getInventor()
public Contributor getInventor()
Gets the inventor of a source.
Returns: Contributor - The inventor of a source.
getPerformer()
public Contributor getPerformer()
Gets the performer of a source.
Returns: Contributor - The performer of a source.
getProducer()
public Contributor getProducer()
Gets the producer of a source.
Returns: Contributor - The producer of a source.
getTranslator()
public Contributor getTranslator()
Gets the translator of a source.
Returns: Contributor - The translator of a source.
getWriter()
public Contributor getWriter()
Gets the writer of a source.
Returns: Contributor - The writer of a source.
iterator()
public Iterator iterator()
Returns: java.util.Iterator