Interface IResource

    • Method Detail

      • copy

        static void copy​(IResource from,
                         IResource to)
        Copy all IWithProperties and IWithAnnotations Unless destination already has the property or annotation. Properties are cloned before copying. Annotations are not cloned but this should be fixed in future versions of IAnnotation
        Parameters:
        from - source of IResource
        to - destination of IResource
      • getId

        String getId()
        Gets the identifier of the resource. This identifier is unique per extracted document and by type of resource. This value is filter-specific. It and may be different from one extraction of the same document to the next. It can a sequential number or not, incremental or not, and it can be not a number. It has no correspondence in the source document ("IDs" coming from the source document are "names" and not available for all resources).
        Returns:
        the identifier of this resource.
      • setId

        void setId​(String id)
        Sets the identifier of this resource.
        Parameters:
        id - the new identifier value.
        See Also:
        getId()