Class DefaultProfileID


  • public class DefaultProfileID
    extends java.lang.Object
    This class is provides the IDs of the installed and available default profiles. This profiles are for instance visible in the desktop application or the server. Unlike the listing in the server, this class will ignore the filters set in the global configuration.
    Since:
    i-net PDFC 4.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ID_CONTINUOUS
      The default profile to compare all elements in continuous page mode
      static java.lang.String ID_PAGED
      The default profile to compare all elements page by page
      static java.lang.String ID_PAGED_IDENTICAL
      The default profile to compare all elements page by page with very strict tolerance settings.
      static java.lang.String ID_TEXT_AND_STYLES
      The default profile to compare text and text styles in continuous page mode
      static java.lang.String ID_TEXT_ONLY
      The default profile to compare text only in continuous page mode
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> getAvailableProfileIDs()
      Lists all default profiles which are available in the current environments.
      static boolean isAvailable​(java.lang.String id)
      Checks whether a profile is available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ID_TEXT_ONLY

        public static final java.lang.String ID_TEXT_ONLY
        The default profile to compare text only in continuous page mode
        See Also:
        Constant Field Values
      • ID_TEXT_AND_STYLES

        public static final java.lang.String ID_TEXT_AND_STYLES
        The default profile to compare text and text styles in continuous page mode
        See Also:
        Constant Field Values
      • ID_CONTINUOUS

        public static final java.lang.String ID_CONTINUOUS
        The default profile to compare all elements in continuous page mode
        See Also:
        Constant Field Values
      • ID_PAGED

        public static final java.lang.String ID_PAGED
        The default profile to compare all elements page by page
        See Also:
        Constant Field Values
      • ID_PAGED_IDENTICAL

        public static final java.lang.String ID_PAGED_IDENTICAL
        The default profile to compare all elements page by page with very strict tolerance settings. This will accept only nearly identical documents.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultProfileID

        public DefaultProfileID()
    • Method Detail

      • getAvailableProfileIDs

        @Nonnull
        public static java.util.List<java.lang.String> getAvailableProfileIDs()
        Lists all default profiles which are available in the current environments. Default profiles can vary depending on the installed and activated plugins.
        Returns:
        a list with the IDs of the available default profiles
        Since:
        i-net PDFC 4.0
      • isAvailable

        public static boolean isAvailable​(@Nullable
                                          java.lang.String id)
        Checks whether a profile is available. A profile may be unavailable if it's plugin was removed or deactivated or, if it was a user profile that has been removed.
        Parameters:
        id - the id of the profile to check for
        Returns:
        true, if the Id can be used for PDFComparer.setProfile(String)
        Since:
        i-net PDFC 4.0