ArtifactCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericCollection

public class ArtifactCollection implements System.Collections.Generic.IGenericCollection<Artifact>

Class represents artifact collection.

Methods

MethodDescription
isSynchronized()Is this object synchronized.
size()Gets count of artifacts in collection.
getSyncRoot()Gets synchronization object of the collection.
iterator_Rename_Namesake()For Internal usage only.
iterator()Gets enumerator for the collection.
get_Item(int index)Gets artifact by index.
add(Artifact artifact)Adds artifacts to the collection.
findByValue(String name, String expectedValue)Finds artifacts by custom value.
isReadOnly()Gets if collection is readonly.
addItem(Artifact artifact)
delete(Artifact artifact)Deletes specified artifact.
update(Artifact artifact)Update artifact inside the collection.
delete(int index)Deletes artifact by its index.
clear()Not Supported yet.
containsItem(Artifact artifact)Not Supported yet.
copyToTArray(Artifact[] artifacts, int i)C copy artifacts into array.
removeItem(Artifact artifact)Not Supported yet.
remove(Artifact item)Deletes specified artifact.

isSynchronized()

public boolean isSynchronized()

Is this object synchronized.

Returns: boolean - boolean value

size()

public int size()

Gets count of artifacts in collection.

Returns: int - int value

getSyncRoot()

public Object getSyncRoot()

Gets synchronization object of the collection.

Returns: java.lang.Object - Object for synchronization

iterator_Rename_Namesake()

public System.Collections.IEnumerator iterator_Rename_Namesake()

For Internal usage only.

Gets enumerator for the collection.

Returns: com.aspose.ms.System.Collections.IEnumerator - Enumerator object.

iterator()

public System.Collections.Generic.IGenericEnumerator<Artifact> iterator()

Gets enumerator for the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.pdf.Artifact> - Enumerator object.

get_Item(int index)

public Artifact get_Item(int index)

Gets artifact by index. Index is started from 1.

Parameters:

ParameterTypeDescription
indexintIndex of the artifact.

Returns: Artifact - Artifact on the page.

add(Artifact artifact)

public void add(Artifact artifact)

Adds artifacts to the collection.

*

Parameters:

ParameterTypeDescription
artifactArtifactArtifact which should be added to collection.

findByValue(String name, String expectedValue)

public List<Artifact> findByValue(String name, String expectedValue)

Finds artifacts by custom value.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of custom value.
expectedValuejava.lang.StringValue to find.

Returns: java.util.List<com.aspose.pdf.Artifact> - List of found artifacts.

isReadOnly()

public boolean isReadOnly()

Gets if collection is readonly. Always returns false.

Returns: boolean

addItem(Artifact artifact)

public void addItem(Artifact artifact)

Parameters:

ParameterTypeDescription
artifactArtifact

delete(Artifact artifact)

public void delete(Artifact artifact)

Deletes specified artifact.

Parameters:

ParameterTypeDescription
artifactArtifactvalue

update(Artifact artifact)

public void update(Artifact artifact)

Update artifact inside the collection.

Parameters:

ParameterTypeDescription
artifactArtifactArtifact to be updated.

delete(int index)

public void delete(int index)

Deletes artifact by its index.

Parameters:

ParameterTypeDescription
indexintIndex of artifact to delete.

clear()

public void clear()

Not Supported yet.

Clears collection. Method is not supported.

containsItem(Artifact artifact)

public boolean containsItem(Artifact artifact)

Not Supported yet.

Parameters:

ParameterTypeDescription
artifactArtifactNot Supported yet.

Returns: boolean - Not Supported yet.

copyToTArray(Artifact[] artifacts, int i)

public void copyToTArray(Artifact[] artifacts, int i)

C copy artifacts into array.

Parameters:

ParameterTypeDescription
artifactsArtifact[]Artifact[] instance
iintint value

removeItem(Artifact artifact)

public boolean removeItem(Artifact artifact)

Not Supported yet.

Parameters:

ParameterTypeDescription
artifactArtifactNot Supported yet.

Returns: boolean - Not Supported yet.

remove(Artifact item)

public boolean remove(Artifact item)

Deletes specified artifact.

Parameters:

ParameterTypeDescription
itemArtifactArtifact which will be deleted.

Returns: boolean - boolean value