com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class ArtifactCollection

  • All Implemented Interfaces:
    Iterable


    public class ArtifactCollection
    extends Object
    implements Iterable
    Class represents artifact collection.
    • Method Detail

      • isSynchronized

        public boolean isSynchronized()

        Is this object synchronized.

        Returns:
        boolean value
      • size

        public int size()

        Gets count of artifacts in collection.

        Returns:
        int value
      • getSyncRoot

        public Object getSyncRoot()

        Gets synchronization object of the collection.

        Returns:
        Object for synchronization
      • iterator

        public com.aspose.ms.System.Collections.IEnumerator iterator()

        Gets enumerator for the collection.

        Specified by:
        iterator in interface Iterable
        Returns:
        Enumerator object.
      • get_Item

        public Artifact get_Item(int index)

        Gets artifact by index. Index is started from 1.

        Parameters:
        index - Index of the artifact.
        Returns:
        Artifact on the page.
      • add

        public void add(Artifact artifact)

        Adds artifacts to the collection.

        *
        Parameters:
        artifact - Artifact which sould be added to collection.
      • findByValue

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

        Finds artifacts by custom value.

        Parameters:
        name - Name of custom value.
        expectedValue - Value to find.
        Returns:
        List of found artifacts.
      • delete

        public void delete(Artifact artifact)

        Deletes specified artifact.

        Parameters:
        artifact - value
      • update

        public void update(Artifact artifact)

        Update artifact inside the collection.

        Parameters:
        artifact - Artifact to be updated.
      • delete

        public void delete(int index)

        Deletes artifact by its index.

        Parameters:
        index - Index of artifact to delete.