Package com._1c.g5.v8.dt.core.picture
Class PictureExtension
- java.lang.Object
-
- com._1c.g5.v8.dt.core.picture.PictureExtension
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearContents(org.eclipse.emf.ecore.EObject picture)
Clears contents of the providedpicture
static InputStream
getContents(org.eclipse.emf.ecore.EObject picture)
Gets picture contents.static String
getType(org.eclipse.emf.ecore.EObject picture)
Gets picture type.static void
setContents(org.eclipse.emf.ecore.EObject picture, String type, InputStream contents)
Sets picture contents.
-
-
-
Method Detail
-
getType
public static String getType(org.eclipse.emf.ecore.EObject picture)
Gets picture type.- Parameters:
picture
- the picture, cannot benull
- 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 benull
- Returns:
- an
input stream
providing the picture contents ornull
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 benull
type
- the picture type, cannot benull
contents
- aninput stream
providing the picture contents, cannot benull
-
clearContents
public static void clearContents(org.eclipse.emf.ecore.EObject picture)
Clears contents of the providedpicture
- Parameters:
picture
- source picture object, cannot benull
-
-