public class Citation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
Authors
Author(s) associated with this citation
|
java.lang.Class |
Component
Component this citation is associated with
|
java.net.URL |
Location
URL of resource being cited.
|
java.lang.String |
Notes
Anything else that a user should know about this resource.
|
java.lang.String |
Title
Title of resource being cited.
|
java.lang.String |
Type
Type of resource being cited.
|
Constructor and Description |
---|
Citation(java.lang.Class component,
java.lang.String type,
java.lang.String[] authors,
java.lang.String title,
java.lang.String url,
java.lang.String notes)
Create a new citation object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
printInformation()
Print out a description of this citation.
|
java.lang.String |
toString() |
public final java.lang.Class Component
public final java.lang.String[] Authors
public final java.lang.String Title
public final java.lang.String Type
public final java.net.URL Location
public final java.lang.String Notes
public Citation(java.lang.Class component, java.lang.String type, java.lang.String[] authors, java.lang.String title, java.lang.String url, java.lang.String notes)
component
- Component that this citation is associated withauthors
- Optional: List of authors. [0] should be the primary
author. Preferred format: <first initial>. <family name>.
Recommended to use "et al." for author lists longer than 3.title
- Title of resourcetype
- Type of resource being cited (e.g., "Article", "Webpage",
"Book").url
- Optional: URL of resourcenotes
- Optional: Anything else someone who cites this should know