Package de.undercouch.citeproc.bibtex
Class PageRange
- java.lang.Object
-
- de.undercouch.citeproc.bibtex.PageRange
-
public class PageRange extends java.lang.ObjectA range of pages- Author:
- Michel Kraemer
-
-
Constructor Summary
Constructors Constructor Description PageRange(java.lang.String literal, java.lang.String pageFirst, java.lang.String pageLast, java.lang.Integer numberOfPages, boolean multiplePages)Constructs a range of pages
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLiteral()java.lang.IntegergetNumberOfPages()java.lang.StringgetPageFirst()java.lang.StringgetPageLast()booleanisMultiplePages()
-
-
-
Constructor Detail
-
PageRange
public PageRange(java.lang.String literal, java.lang.String pageFirst, java.lang.String pageLast, java.lang.Integer numberOfPages, boolean multiplePages)Constructs a range of pages- Parameters:
literal- the string from which this range has been createdpageFirst- the first page in the range (can benull)pageLast- the last page in the range (can benull)numberOfPages- the number of pages in this range (can benull)multiplePages-trueif this object represents multiple pages (may betrueeven if the actualnumberOfPagescould not be determined)
-
-
Method Detail
-
getLiteral
public java.lang.String getLiteral()
- Returns:
- the string from which this range has been created
-
getPageFirst
public java.lang.String getPageFirst()
- Returns:
- the first page in the range (can be
null)
-
getPageLast
public java.lang.String getPageLast()
- Returns:
- the last page in the range (can be
null)
-
getNumberOfPages
public java.lang.Integer getNumberOfPages()
- Returns:
- the number of pages in this range (can be
null)
-
isMultiplePages
public boolean isMultiplePages()
- Returns:
trueif this object represents multiple pages (may betrueeven if the actual number of pages could not be determined, i.e. ifgetNumberOfPages()returnsnull)
-
-