rs.sol.soloist.server.builtindomains.builtindatatypes
Class Picture

java.lang.Object
  extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
      extended by rs.sol.soloist.server.uml.commonimplementation.runtime._DataTypeInstance
          extended by rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance
              extended by rs.sol.soloist.server.builtindomains.builtindatatypes.InstanceOfDataType
                  extended by rs.sol.soloist.server.builtindomains.builtindatatypes.InstanceOfPrimitiveType
                      extended by rs.sol.soloist.server.builtindomains.builtindatatypes.File
                          extended by rs.sol.soloist.server.builtindomains.builtindatatypes.Picture
All Implemented Interfaces:
rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IDataTypeInstance, IPrimitiveTypeInstance, IRTElement

public class Picture
extends File


Nested Class Summary
 
Nested classes/interfaces inherited from class rs.sol.soloist.server.builtindomains.builtindatatypes.File
File.AsBlob, File.PathAsString, File.RelativePathAsString
 
Field Summary
static IPrimitiveType CLASSIFIER
           
static java.lang.String FQ_TYPE_NAME
           
 
Constructor Summary
Picture()
           
Picture(java.lang.String path)
           
Picture(java.lang.String pathOrExtension, boolean extension)
           
 
Method Summary
static Picture fromBufferedImage(java.awt.image.BufferedImage image)
           
static Picture fromBufferedImageAsJPEG(java.awt.image.BufferedImage image, float compressionQuality, int dotsPerInch)
           
static Picture fromBufferedImageAsPNG(java.awt.image.BufferedImage image)
           
static Picture fromContent(java.io.InputStream contentStream)
           
static Picture fromSerializable(java.io.Serializable ser)
           
static Picture fromString(java.lang.String path)
           
static Picture fromURL(java.net.URL url)
           
 java.lang.Object getValue()
           
 IClassifierInstance makeClone()
          Clones this Classifier Instance.
 java.awt.image.BufferedImage toBufferedImage()
           
 
Methods inherited from class rs.sol.soloist.server.builtindomains.builtindatatypes.File
createFileInRepository, equals, filePathRelativeToBase, fromContent, fromContent, fromContent, fromContent, getDigest, getFileSize, getInputStream, getSQLString, hashCode, isEqualTo, stringPathRelativeToBase, toFile, toString, write, write
 
Methods inherited from class rs.sol.soloist.server.builtindomains.builtindatatypes.InstanceOfPrimitiveType
accept, accept, toSerializable
 
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance
addAttributeValue, getAttributeValue, getDataType, getMyID, getSlot, getSlots, setDataType, setMyID
 
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._DataTypeInstance
getClassifier, hasIdentity, isClassInstance, isDataTypeInstance, isMarkedAsDeleted, markAsDeleted
 
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
conformsTo, constructor, copySlots, copySlots, destroy, destructor, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValues, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMElement, getSlot, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isKindOf, isModelElement, isRTElement
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IDataTypeInstance
getDataType
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IClassifierInstance
conformsTo, constructor, copySlots, copySlots, destroy, destructor, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValues, getClassifier, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMyID, getSlot, getSlot, getSlot, getSlot, getSlots, isClassInstance, isDataTypeInstance, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isMarkedAsDeleted, markAsDeleted
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IRTElement
getMElement, hasIdentity
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement
isKindOf, isModelElement, isRTElement
 

Field Detail

FQ_TYPE_NAME

public static final java.lang.String FQ_TYPE_NAME
See Also:
Constant Field Values

CLASSIFIER

public static final IPrimitiveType CLASSIFIER
Constructor Detail

Picture

public Picture()

Picture

public Picture(java.lang.String pathOrExtension,
               boolean extension)
        throws java.io.IOException
Throws:
java.io.IOException

Picture

public Picture(java.lang.String path)
Method Detail

fromString

public static Picture fromString(java.lang.String path)

fromURL

public static Picture fromURL(java.net.URL url)
                       throws java.io.IOException
Throws:
java.io.IOException

fromContent

public static Picture fromContent(java.io.InputStream contentStream)
                           throws java.io.IOException
Throws:
java.io.IOException

fromBufferedImage

public static Picture fromBufferedImage(java.awt.image.BufferedImage image)
                                 throws java.io.IOException
Throws:
java.io.IOException

fromBufferedImageAsPNG

public static Picture fromBufferedImageAsPNG(java.awt.image.BufferedImage image)
                                      throws java.io.IOException
Throws:
java.io.IOException

fromBufferedImageAsJPEG

public static Picture fromBufferedImageAsJPEG(java.awt.image.BufferedImage image,
                                              float compressionQuality,
                                              int dotsPerInch)
                                       throws java.io.IOException
Throws:
java.io.IOException

toBufferedImage

public java.awt.image.BufferedImage toBufferedImage()
                                             throws java.io.IOException
Throws:
java.io.IOException

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface IPrimitiveTypeInstance
Overrides:
getValue in class File

fromSerializable

public static Picture fromSerializable(java.io.Serializable ser)

makeClone

public IClassifierInstance makeClone()
                              throws rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Description copied from interface: IClassifierInstance
Clones this Classifier Instance.

Specified by:
makeClone in interface IClassifierInstance
Overrides:
makeClone in class File
Throws:
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException