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

public Class PageRange

extends Object
Class Inheritance

A range of pages
Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
private final String
private final boolean
private final Integer
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
PageRange(String
the string from which this range has been created
literal
,
String
the first page in the range (can be null)
pageFirst
,
String
the last page in the range (can be null)
pageLast
,
Integer
the number of pages in this range (can be null)
numberOfPages
,
boolean
true if this object represents multiple pages (may be true even if the actual numberOfPages could not be determined)
multiplePages
)

Constructs a range of pages

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the string from which this range has been created
getLiteral
()

public Integer

Returns:

the number of pages in this range (can be null)
getNumberOfPages
()

public String

Returns:

the first page in the range (can be null)
getPageFirst
()

public String

Returns:

the last page in the range (can be null)
getPageLast
()

public boolean

Returns:

true if this object represents multiple pages (may be true even if the actual number of pages could not be determined, i.e. if getNumberOfPages() returns null)
isMultiplePages
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

literalback to summary
private final String literal
multiplePagesback to summary
private final boolean multiplePages
numberOfPagesback to summary
private final Integer numberOfPages
pageFirstback to summary
private final String pageFirst
pageLastback to summary
private final String pageLast

Constructor Detail

PageRangeback to summary
public PageRange(String literal, String pageFirst, String pageLast, Integer numberOfPages, boolean multiplePages)

Constructs a range of pages

Parameters
literal:String

the string from which this range has been created

pageFirst:String

the first page in the range (can be null)

pageLast:String

the last page in the range (can be null)

numberOfPages:Integer

the number of pages in this range (can be null)

multiplePages:boolean

true if this object represents multiple pages (may be true even if the actual numberOfPages could not be determined)

Method Detail

getLiteralback to summary
public String getLiteral()
Returns:String

the string from which this range has been created

getNumberOfPagesback to summary
public Integer getNumberOfPages()
Returns:Integer

the number of pages in this range (can be null)

getPageFirstback to summary
public String getPageFirst()
Returns:String

the first page in the range (can be null)

getPageLastback to summary
public String getPageLast()
Returns:String

the last page in the range (can be null)

isMultiplePagesback to summary
public boolean isMultiplePages()
Returns:boolean

true if this object represents multiple pages (may be true even if the actual number of pages could not be determined, i.e. if getNumberOfPages() returns null)