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

Method Description
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:

Parameter Type Description
index int Index of the artifact.

Returns: Artifact - Artifact on the page.

add(Artifact artifact)

public void add(Artifact artifact)

Adds artifacts to the collection.

*

Parameters:

Parameter Type Description
artifact Artifact Artifact 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:

Parameter Type Description
name java.lang.String Name of custom value.
expectedValue java.lang.String Value 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:

Parameter Type Description
artifact Artifact

delete(Artifact artifact)

public void delete(Artifact artifact)

Deletes specified artifact.

Parameters:

Parameter Type Description
artifact Artifact value

update(Artifact artifact)

public void update(Artifact artifact)

Update artifact inside the collection.

Parameters:

Parameter Type Description
artifact Artifact Artifact to be updated.

delete(int index)

public void delete(int index)

Deletes artifact by its index.

Parameters:

Parameter Type Description
index int Index 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:

Parameter Type Description
artifact Artifact Not 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:

Parameter Type Description
artifacts Artifact[] Artifact[] instance
i int int value

removeItem(Artifact artifact)

public boolean removeItem(Artifact artifact)

Not Supported yet.

Parameters:

Parameter Type Description
artifact Artifact Not Supported yet.

Returns: boolean - Not Supported yet.

remove(Artifact item)

public boolean remove(Artifact item)

Deletes specified artifact.

Parameters:

Parameter Type Description
item Artifact Artifact which will be deleted.

Returns: boolean - boolean value