BaseOperatorCollection

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable

public abstract class BaseOperatorCollection implements Iterable<Operator>

Represents base class for operator collection.

Constructors

ConstructorDescription
BaseOperatorCollection()

Methods

MethodDescription
get_Item(int index)Gets operator by its index.
set_Item(int index, Operator value)Sets operator by its index.
iterator()Returns enumerator for collection
toList()Returns opetator list.
size()Gets count of operators in the collection.
isEmpty()Returns TRUE if the collection is empty.
isReadOnly()Returns true if collection is read only.
isFastTextExtractionMode()Indicates whether collection is limited to fast text extraction
suppressUpdate()Suppresses update contents data.
resumeUpdate()Resumes document update.
insert(int index, Operator op)Inserts operator into collection.
add(Operator op)Adds new operator into collection.
remove(Operator item)Removes operator from collection.
contains(Operator item)Check if the item is in collection.
clear()Clears collection.
getUnrestricted(int index)For internal usage only
updateData()internal
deleteUnrestricted(int index)internal
cancelUpdate()Cancels last update.

BaseOperatorCollection()

public BaseOperatorCollection()

get_Item(int index)

public abstract Operator get_Item(int index)

Gets operator by its index.

Parameters:

ParameterTypeDescription
indexintIndex of operator. Numbering is starts from 1.

Returns: Operator - Operator from requested index

set_Item(int index, Operator value)

public abstract void set_Item(int index, Operator value)

Sets operator by its index.

Parameters:

ParameterTypeDescription
indexintIndex of operator. Numbering is starts from 1.
valueOperatorOperator.

iterator()

public abstract Iterator<Operator> iterator()

Returns enumerator for collection

Returns: java.util.Iterator<com.aspose.pdf.Operator> - Collection enumerator

toList()

public abstract System.Collections.Generic.List<Operator> toList()

Returns opetator list.

Returns: com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.Operator> - opetator list.

size()

public abstract int size()

Gets count of operators in the collection.

Returns: int - integer value

isEmpty()

public boolean isEmpty()

Returns TRUE if the collection is empty.

Returns: boolean - boolean value

isReadOnly()

public abstract boolean isReadOnly()

Returns true if collection is read only.

Returns: boolean - boolean value

isFastTextExtractionMode()

public abstract boolean isFastTextExtractionMode()

Indicates whether collection is limited to fast text extraction

Returns: boolean - boolean value

suppressUpdate()

public abstract void suppressUpdate()

Suppresses update contents data. The contents stream is not updated until ResumeUpdate is called.

resumeUpdate()

public abstract void resumeUpdate()

Resumes document update. Updates contents stream in case there are any pending changes.

insert(int index, Operator op)

public abstract void insert(int index, Operator op)

Inserts operator into collection.

Parameters:

ParameterTypeDescription
indexintIndex where new operator must be added
opOperatorOperator which will be insterted

add(Operator op)

public abstract void add(Operator op)

Adds new operator into collection.

Parameters:

ParameterTypeDescription
opOperatorOperator which must be added

remove(Operator item)

public abstract boolean remove(Operator item)

Removes operator from collection.

Parameters:

ParameterTypeDescription
itemOperatorOperator instance item to remove.

Returns: boolean - boolean value True - if item removed; otherwise, false.

contains(Operator item)

public abstract boolean contains(Operator item)

Check if the item is in collection.

Parameters:

ParameterTypeDescription
itemOperatorOperator instance item to find.

Returns: boolean - boolean value True - if item find; otherwise, false.

clear()

public abstract void clear()

Clears collection.

getUnrestricted(int index)

public abstract Operator getUnrestricted(int index)

For internal usage only

Parameters:

ParameterTypeDescription
indexintint value

Returns: Operator - Operator object

updateData()

public abstract void updateData()

internal

deleteUnrestricted(int index)

public abstract void deleteUnrestricted(int index)

internal

Parameters:

ParameterTypeDescription
indexintint value

cancelUpdate()

public abstract void cancelUpdate()

Cancels last update. This method may be called when the change should not raise contents update.