|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.template.TemplateManager
public abstract class TemplateManager
Facade for managing Application and Project Templates. The TemplateManager contains template stores, each represented by a TemplateData object. A default TemplateData store is created by TemplateManager which holds all the templates loaded via the template hook in all the extension manifests.
The default TemplateData store is the parent of other registered TemplateData stores,
so a call to findTemplateById()
on a registered TemplateData will
search that store first, and then the default TemplateData.
TemplateData
,
AbstractTemplate
,
ProjectTemplate
,
ApplicationTemplate
,
DefaultTemplateData
Constructor Summary | |
---|---|
protected |
TemplateManager()
Use TemplateManager.getInstance() to retrieve an instance of a
Template Manager. |
Method Summary | |
---|---|
abstract void |
addTemplateData(TemplateData templateData)
Add a new TemplateData. |
abstract void |
clear()
Purge all registered TemplateData, except the default TemplateData. |
abstract java.util.List<AbstractTemplate> |
findTemplateById(java.lang.String id)
Search and returns a list of templates from all TemplateData stores starting with the default TemplateData that match id. |
abstract java.util.List<TemplateData> |
getAllTemplateData()
List of all templates from all TemplateData objects, starting with the default TemplateData. |
abstract java.util.List<AbstractTemplate> |
getAllTemplates()
Get all templates. |
abstract java.util.List<ApplicationTemplate> |
getApplicationTemplates()
Get a list of all Application templates registered with this TemplateManager. |
abstract DefaultTemplateData |
getDefaultTemplateData()
Get the default TemplateData store. |
static TemplateManager |
getInstance()
Get an instance of the Template Manager. |
abstract java.util.logging.Logger |
getLogger()
A Logger to log template-related messages. |
abstract java.util.List<ProjectTemplate> |
getProjectTemplates()
Get a list of all Project templates registered with this TemplateManager. |
abstract TemplateData |
getTemplateData(java.net.URL url)
Return TemplateData identified by a specific URL. |
abstract void |
load(java.net.URL url)
Load contents from a URL. |
abstract void |
registerTemplate(AbstractTemplate template)
Register a template into the default TemplateData. |
abstract void |
registerTemplate(HashStructure hash)
Register a HashSructure representing a template into the default Template. |
abstract TemplateData |
removeTemplateData(TemplateData templateData)
Remove a TemplateData. |
abstract TemplateData |
removeTemplateData(java.net.URL url)
Remove a template data store identified by a URL. |
abstract void |
save(java.net.URL url)
Save contents of TemplateManager to a URL. |
abstract void |
setDefaultTemplateData(DefaultTemplateData td)
Set the default TemplateData store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TemplateManager()
TemplateManager.getInstance()
to retrieve an instance of a
Template Manager.
Method Detail |
---|
public static TemplateManager getInstance()
public abstract java.util.List<ProjectTemplate> getProjectTemplates()
getAllTemplates()
getAllTemplates()
public abstract java.util.List<ApplicationTemplate> getApplicationTemplates()
getAllTemplates()
public abstract java.util.List<AbstractTemplate> getAllTemplates()
public abstract DefaultTemplateData getDefaultTemplateData()
registerTemplate()
method also get added
to the default TemplateData.
public abstract void setDefaultTemplateData(DefaultTemplateData td)
td
- public abstract void addTemplateData(TemplateData templateData)
templateData
-
java.lang.IllegalArgumentException
- if a TemplateData with null or duplicate URL is passed.public abstract TemplateData removeTemplateData(TemplateData templateData)
templateData
-
public abstract TemplateData removeTemplateData(java.net.URL url)
url
- unique key url. The URL should be an exact literal match.
public abstract java.util.List<AbstractTemplate> findTemplateById(java.lang.String id)
Use template.getParent()
to find out which store each template
belongs to.
id
-
public abstract java.util.List<TemplateData> getAllTemplateData()
public abstract TemplateData getTemplateData(java.net.URL url)
getDefaultTemplateData()
url
-
public abstract void registerTemplate(AbstractTemplate template)
template
- public abstract void registerTemplate(HashStructure hash)
hash
- public abstract void save(java.net.URL url) throws java.io.IOException
url
-
java.io.IOException
public abstract void load(java.net.URL url) throws java.io.IOException
url
-
java.io.IOException
public abstract void clear()
public abstract java.util.logging.Logger getLogger()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |