Top Description Fields Constructors Methods
de.undercouch.citeproc.output

public Class Bibliography

extends Object
Class Inheritance
Imports
java.util.Arrays, .Map, .Objects

A generated bibliography consisting of bibliography entries and some formatting parameters
Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final Boolean
private final String[]
private final String[]
private final Integer
private final Boolean
private final Integer
private final Integer
private final SecondFieldAlign

Constructor Summary

AccessConstructor and Description
public
Bibliography(String... entries)

public
Bibliography(String[] entries, String bibStart, String bibEnd, String[] entryIds, Integer maxOffset, Integer entrySpacing, Integer lineSpacing, Boolean hangingIndent, Boolean done, SecondFieldAlign secondFieldAlign)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public String

Returns:

the bibliography's bibend
getBibEnd
()

public String

Returns:

the bibliography's bibstart
getBibStart
()

public Boolean

Returns:

the bibliography's done
getDone
()

public String[]

Returns:

the bibliography's entries
getEntries
()

public String[]

Returns:

the bibliography's entry_ids
getEntryIds
()

public Integer

Returns:

the bibliography's entryspacing
getEntrySpacing
()

public Boolean

Returns:

the bibliography's hangingindent
getHangingIndent
()

public Integer

Returns:

the bibliography's linespacing
getLineSpacing
()

public Integer

Returns:

the bibliography's maxoffset
getMaxOffset
()

public SecondFieldAlign

Returns:

the bibliography's second-field-align
getSecondFieldAlign
()

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public String

Returns:

the String representing the bibliography
makeString
()

Converts this bibliography to a String that can be inserted into the text

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

bibEndback to summary
private final String bibEnd
bibStartback to summary
private final String bibStart
doneback to summary
private final Boolean done
entriesback to summary
private final String[] entries
entryIdsback to summary
private final String[] entryIds
entrySpacingback to summary
private final Integer entrySpacing
hangingIndentback to summary
private final Boolean hangingIndent
lineSpacingback to summary
private final Integer lineSpacing
maxOffsetback to summary
private final Integer maxOffset
secondFieldAlignback to summary
private final SecondFieldAlign secondFieldAlign

Constructor Detail

Bibliographyback to summary
public Bibliography(String... entries)
Bibliographyback to summary
public Bibliography(String[] entries, String bibStart, String bibEnd, String[] entryIds, Integer maxOffset, Integer entrySpacing, Integer lineSpacing, Boolean hangingIndent, Boolean done, SecondFieldAlign secondFieldAlign)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
getBibEndback to summary
public String getBibEnd()
Returns:String

the bibliography's bibend

getBibStartback to summary
public String getBibStart()
Returns:String

the bibliography's bibstart

getDoneback to summary
public Boolean getDone()
Returns:Boolean

the bibliography's done

getEntriesback to summary
public String[] getEntries()
Returns:String[]

the bibliography's entries

getEntryIdsback to summary
public String[] getEntryIds()
Returns:String[]

the bibliography's entry_ids

getEntrySpacingback to summary
public Integer getEntrySpacing()
Returns:Integer

the bibliography's entryspacing

getHangingIndentback to summary
public Boolean getHangingIndent()
Returns:Boolean

the bibliography's hangingindent

getLineSpacingback to summary
public Integer getLineSpacing()
Returns:Integer

the bibliography's linespacing

getMaxOffsetback to summary
public Integer getMaxOffset()
Returns:Integer

the bibliography's maxoffset

getSecondFieldAlignback to summary
public SecondFieldAlign getSecondFieldAlign()
Returns:SecondFieldAlign

the bibliography's second-field-align

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
makeStringback to summary
public String makeString()

Converts this bibliography to a String that can be inserted into the text

Returns:String

the String representing the bibliography