Class PictureExtension


  • public final class PictureExtension
    extends Object
    This is an utility class to work with Picture
    • Method Detail

      • getType

        public static String getType​(org.eclipse.emf.ecore.EObject picture)
        Gets picture type.
        Parameters:
        picture - the picture, cannot be null
        Returns:
        the picture type or null if not set.
      • getContents

        public static InputStream getContents​(org.eclipse.emf.ecore.EObject picture)
        Gets picture contents.
        Parameters:
        picture - the picture, cannot be null
        Returns:
        an input stream providing the picture contents or null if not set.
      • setContents

        public static void setContents​(org.eclipse.emf.ecore.EObject picture,
                                       String type,
                                       InputStream contents)
        Sets picture contents.
        Parameters:
        picture - source picture object, cannot be null
        type - the picture type, cannot be null
        contents - an input stream providing the picture contents, cannot be null
      • clearContents

        public static void clearContents​(org.eclipse.emf.ecore.EObject picture)
        Clears contents of the provided picture
        Parameters:
        picture - source picture object, cannot be null