coras.representations
Class RepresentationFactory
java.lang.Object
coras.representations.RepresentationFactory
- public class RepresentationFactory
- extends java.lang.Object
- Author:
- fvr
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
Method Summary |
static BitmapImage |
createBitmapImage(java.lang.String name,
byte[] bytes)
|
static DiagramRepresentation |
createDiagram(java.io.File diagramFile)
|
static DiagramRepresentation |
createDiagram(java.io.File diagramFile,
java.lang.String filename)
|
static DocumentRepresentation |
createDocument(java.io.File documentFile)
|
static DocumentRepresentation |
createDocument(java.io.File documentFile,
java.lang.String filename)
|
static DocumentRepresentation |
createDocument(java.lang.String name,
byte[] bytes)
|
static FaultTreeModel |
createFaultTreeModel(java.io.File faultTreeModelFile)
|
static FaultTreeModel |
createFaultTreeModel(java.io.File faultTreeModelFile,
java.lang.String filename)
|
static CorasRepresentation |
createRepresentation(no.sintef.assetrepository.Representation representation)
|
static CorasRepresentation |
createRepresentation(coras.representations.RepresentationTypeEnum type,
java.io.File f)
|
static CorasRepresentation |
createRepresentation(coras.representations.RepresentationTypeEnum type,
java.io.File f,
java.lang.String filename)
|
static SVGImage |
createSVGImage(java.lang.String name,
org.w3c.dom.Document doc)
|
static TableRepresentation |
createTable(org.w3c.dom.Node content,
java.lang.String name)
|
static TableRepresentation |
createTable(coras.types.SubtypeEnum subtype)
|
static UMLModelRepresentation |
createUMLModel(java.io.File umlFile)
|
static UMLModelRepresentation |
createUMLModel(java.io.File umlFile,
java.lang.String filename)
|
static XmiLightRepresentation |
createXmiLight(IUMLModel umlModel)
|
static UMLModelRepresentation |
createXmiOrDgmModel(java.lang.String name,
org.w3c.dom.Document doc)
|
static UMLModelRepresentation |
createZumlZargoModel(java.lang.String name,
byte[] content)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepresentationFactory
public RepresentationFactory()
createRepresentation
public static CorasRepresentation createRepresentation(no.sintef.assetrepository.Representation representation)
- Returns:
createRepresentation
public static CorasRepresentation createRepresentation(coras.representations.RepresentationTypeEnum type,
java.io.File f)
throws java.io.IOException,
no.sintef.xml.XmlException
- Parameters:
type
- f
-
- Returns:
-
- Throws:
no.sintef.xml.XmlException
java.io.IOException
createRepresentation
public static CorasRepresentation createRepresentation(coras.representations.RepresentationTypeEnum type,
java.io.File f,
java.lang.String filename)
throws java.io.IOException,
no.sintef.xml.XmlException
- Parameters:
type
- f
- filename
-
- Returns:
-
- Throws:
java.io.IOException
no.sintef.xml.XmlException
createDocument
public static DocumentRepresentation createDocument(java.io.File documentFile)
throws java.io.IOException
- Throws:
java.io.IOException
createDocument
public static DocumentRepresentation createDocument(java.io.File documentFile,
java.lang.String filename)
throws java.io.IOException
- Parameters:
documentFile
-
- Returns:
-
- Throws:
java.io.IOException
createDocument
public static DocumentRepresentation createDocument(java.lang.String name,
byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
createUMLModel
public static UMLModelRepresentation createUMLModel(java.io.File umlFile)
throws java.io.IOException,
no.sintef.xml.XmlException
- Throws:
java.io.IOException
no.sintef.xml.XmlException
createUMLModel
public static UMLModelRepresentation createUMLModel(java.io.File umlFile,
java.lang.String filename)
throws java.io.IOException,
no.sintef.xml.XmlException
- Throws:
java.io.IOException
no.sintef.xml.XmlException
createZumlZargoModel
public static UMLModelRepresentation createZumlZargoModel(java.lang.String name,
byte[] content)
createXmiOrDgmModel
public static UMLModelRepresentation createXmiOrDgmModel(java.lang.String name,
org.w3c.dom.Document doc)
createXmiLight
public static XmiLightRepresentation createXmiLight(IUMLModel umlModel)
createFaultTreeModel
public static FaultTreeModel createFaultTreeModel(java.io.File faultTreeModelFile)
throws java.io.IOException,
no.sintef.xml.XmlException
- Throws:
java.io.IOException
no.sintef.xml.XmlException
createFaultTreeModel
public static FaultTreeModel createFaultTreeModel(java.io.File faultTreeModelFile,
java.lang.String filename)
throws java.io.IOException,
no.sintef.xml.XmlException
- Throws:
java.io.IOException
no.sintef.xml.XmlException
createDiagram
public static DiagramRepresentation createDiagram(java.io.File diagramFile)
throws java.io.IOException
- Throws:
java.io.IOException
createDiagram
public static DiagramRepresentation createDiagram(java.io.File diagramFile,
java.lang.String filename)
throws java.io.IOException
- Parameters:
diagramFile
-
- Returns:
-
- Throws:
java.io.IOException
createSVGImage
public static SVGImage createSVGImage(java.lang.String name,
org.w3c.dom.Document doc)
createBitmapImage
public static BitmapImage createBitmapImage(java.lang.String name,
byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
createTable
public static TableRepresentation createTable(coras.types.SubtypeEnum subtype)
throws no.sintef.xml.XmlException,
java.io.FileNotFoundException
- Throws:
no.sintef.xml.XmlException
java.io.FileNotFoundException
createTable
public static TableRepresentation createTable(org.w3c.dom.Node content,
java.lang.String name)
Copyright © 2003-2005 SINTEF. All Rights Reserved.