PageRange Class

  • java.lang.Object
    • com.azure.storage.blob.models.PageRange

Implements

public final class PageRange
implements XmlSerializable<PageRange>

The PageRange model.

Constructor Summary

Constructor Description
PageRange()

Creates an instance of PageRange class.

Method Summary

Modifier and Type Method and Description
static PageRange fromXml(XmlReader xmlReader)

Reads an instance of PageRange from the XmlReader.

static PageRange fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of PageRange from the XmlReader.

long getEnd()

Get the end property: The End property.

long getStart()

Get the start property: The Start property.

PageRange setEnd(long end)

Set the end property: The End property.

PageRange setStart(long start)

Set the start property: The Start property.

XmlWriter toXml(XmlWriter xmlWriter)
XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Methods inherited from java.lang.Object

Constructor Details

PageRange

public PageRange()

Creates an instance of PageRange class.

Method Details

fromXml

public static PageRange fromXml(XmlReader xmlReader)

Reads an instance of PageRange from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.

Returns:

An instance of PageRange if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.

Throws:

XMLStreamException

- If an error occurs while reading the PageRange.

fromXml

public static PageRange fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of PageRange from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.
rootElementName - Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.

Returns:

An instance of PageRange if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.

Throws:

XMLStreamException

- If an error occurs while reading the PageRange.

getEnd

public long getEnd()

Get the end property: The End property.

Returns:

the end value.

getStart

public long getStart()

Get the start property: The Start property.

Returns:

the start value.

setEnd

public PageRange setEnd(long end)

Set the end property: The End property.

Parameters:

end - the end value to set.

Returns:

the PageRange object itself.

setStart

public PageRange setStart(long start)

Set the start property: The Start property.

Parameters:

start - the start value to set.

Returns:

the PageRange object itself.

toXml

public XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to