Class PictureFqnUtil


  • public final class PictureFqnUtil
    extends Object
    Utilities to manipulate picture FQNs.
    • Method Detail

      • buildFormPictureBlobFqn

        public static String buildFormPictureBlobFqn​(FormPicture picture)
        Builds a form picture blob FQN.
        Parameters:
        picture - The form picture. May not be null.
        Returns:
        the picture blob FQN. Never null.
      • buildFormPictureBlobFqn

        public static String buildFormPictureBlobFqn​(String formFqn,
                                                     String item,
                                                     String feature)
        Builds a form picture blob FQN.
        Parameters:
        graphicalSchemeFqn - The form FQN. May not be null.
        item - The form item. May not be null.
        feature - The form item feature. May not be null.
        Returns:
        the picture blob FQN. Never null.
      • isFormPictureBlobFqn

        public static boolean isFormPictureBlobFqn​(String fqn)
        Checks if the specified FQN belongs to a form picture blob.
        Parameters:
        fqn - The FQN to check. May not be null.
        Returns:
        true if the FQN belongs to a form picture blob, false otherwise.
      • isFormPictureBlobFqn

        public static boolean isFormPictureBlobFqn​(String fqn,
                                                   String formFqn)
        Checks if the specified FQN belongs to a picture blob in the specified form.
        Parameters:
        fqn - The FQN to check. May not be null.
        formFqn - The form FQN. May not be null.
        Returns:
        true if the specified FQN belongs to a picture blob in the specified form, false otherwise.
      • extractFormPictureBlobFqnParts

        public static PictureFqnParts extractFormPictureBlobFqnParts​(String fqn)
        Extracts parts from an FQN belonging to a form picture blob.
        Parameters:
        fqn - The FQN to extract parts from. May not be null.
        Returns:
        the extracted parts. Never null.