org.netbeans.modules.bpel.model.impl
Class MyCatalogModel

java.lang.Object
  extended by org.netbeans.modules.bpel.model.impl.MyCatalogModel
All Implemented Interfaces:
CatalogModel, org.w3c.dom.ls.LSResourceResolver, org.xml.sax.EntityResolver

public class MyCatalogModel
extends java.lang.Object
implements CatalogModel

This class helps Bpel project to obtain the Bpel model given a BPEL File URI

Author:
Sreenivasan Genipudi

Field Summary
(package private) static java.io.File projectCatalogFileLocation
           
(package private) static MyCatalogModel singletonCatMod
           
 
Constructor Summary
MyCatalogModel()
          Constructor
 
Method Summary
 ModelSource createModelSource(java.io.File file, boolean readOnly)
          Implementation of CatalogModel
 BpelModel getBPELModel(java.net.URI locationURI)
          Creates BPEL Model from BPEL URI
static MyCatalogModel getDefault()
          Gets the instance of this class internal API
protected  javax.swing.text.Document getDocument(java.io.File file)
          Implementation of CatalogModel
 ModelSource getModelSource(java.net.URI locationURI)
          Gets the Model source for BPEL URI
 ModelSource getModelSource(java.net.URI locationURI, ModelSource modelSourceOfSourceDocument)
          Implementation of CatalogModel
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
           
 org.w3c.dom.ls.LSInput resolveResource(java.lang.String type, java.lang.String namespaceURI, java.lang.String publicId, java.lang.String systemId, java.lang.String baseURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singletonCatMod

static MyCatalogModel singletonCatMod

projectCatalogFileLocation

static java.io.File projectCatalogFileLocation
Constructor Detail

MyCatalogModel

public MyCatalogModel()
Constructor

Method Detail

getDefault

public static MyCatalogModel getDefault()
Gets the instance of this class internal API

Returns:
current class instance

getModelSource

public ModelSource getModelSource(java.net.URI locationURI)
                           throws CatalogModelException
Gets the Model source for BPEL URI

Specified by:
getModelSource in interface CatalogModel
Parameters:
locationURI - URI location of the BPEL File
Returns:
ModelSource return ModelSource
Throws:
CatalogModelException

getModelSource

public ModelSource getModelSource(java.net.URI locationURI,
                                  ModelSource modelSourceOfSourceDocument)
                           throws CatalogModelException
Implementation of CatalogModel

Specified by:
getModelSource in interface CatalogModel
Parameters:
locationURI -
modelSourceOfSourceDocument -
Returns:
Throws:
CatalogModelException

getDocument

protected javax.swing.text.Document getDocument(java.io.File file)
                                         throws CatalogModelException
Implementation of CatalogModel

Parameters:
file -
Returns:
Throws:
CatalogModelException

createModelSource

public ModelSource createModelSource(java.io.File file,
                                     boolean readOnly)
                              throws CatalogModelException
Implementation of CatalogModel

Parameters:
file -
readOnly -
Returns:
Throws:
CatalogModelException

getBPELModel

public BpelModel getBPELModel(java.net.URI locationURI)
                       throws java.lang.Exception
Creates BPEL Model from BPEL URI

Parameters:
locationURI -
Returns:
Throws:
java.lang.Exception

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Throws:
org.xml.sax.SAXException
java.io.IOException

resolveResource

public org.w3c.dom.ls.LSInput resolveResource(java.lang.String type,
                                              java.lang.String namespaceURI,
                                              java.lang.String publicId,
                                              java.lang.String systemId,
                                              java.lang.String baseURI)
Specified by:
resolveResource in interface org.w3c.dom.ls.LSResourceResolver