Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


oracle.jdeveloper.template
Class DefaultTemplateData

java.lang.Object
  extended by oracle.javatools.data.HashStructureAdapter
      extended by oracle.jdeveloper.template.DefaultTemplateData

All Implemented Interfaces:
TemplateData

public class DefaultTemplateData
extends HashStructureAdapter
implements TemplateData

Field Summary

 

Fields inherited from class oracle.javatools.data.HashStructureAdapter
_hash

 

Constructor Summary
DefaultTemplateData(HashStructure hash)
          Creates a template store from an existing hash.
DefaultTemplateData(java.net.URL url)
          Creates a Template store and associates it with a URL.

 

Method Summary
 void addTemplate(AbstractTemplate template)
           
 java.lang.Object copyTo(java.lang.Object o)
          Copy support.
 AbstractTemplate findTemplateById(java.lang.String id)
          Search for template in this TemplateData store, and all its parents.
 java.util.List<AbstractTemplate> getAllTemplates()
           
 HashStructure getHashStructure()
          Returns the HashStructure this adapter is adapting.
 TemplateData getParent()
          The parent which should be used to resolve templateId queries, if they are not found in this TemplateData.
<T> java.util.List<T>
getTemplateByClass(java.lang.Class<T> clazz)
          Get a list of templates matching the type specified.
 AbstractTemplate getTemplateById(java.lang.String id)
          Get a template from this TemplateData store.
 java.net.URL getURL()
          A URL location indicating from where this TemplateData was loaded.
 boolean isDirty()
           
static DefaultTemplateData load(java.net.URL url)
           
 void removeTemplate(AbstractTemplate template)
           
static void save(DefaultTemplateData templateData, java.net.URL url)
           
 void setParent(TemplateData parent)
           
 void setURL(java.net.URL url)
           

 

Methods inherited from class oracle.javatools.data.HashStructureAdapter
addStructureChangeListener, containsKey, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, removeStructureChangeListener, useObjectEquals

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DefaultTemplateData

public DefaultTemplateData(HashStructure hash)
Creates a template store from an existing hash.
Parameters:
hash -

DefaultTemplateData

public DefaultTemplateData(java.net.URL url)
Creates a Template store and associates it with a URL.
Parameters:
url - a unique location associated with this store

Method Detail

load

public static DefaultTemplateData load(java.net.URL url)
                                throws java.io.IOException
Throws:
java.io.IOException

save

public static void save(DefaultTemplateData templateData,
                        java.net.URL url)
                 throws java.io.IOException
Throws:
java.io.IOException

getHashStructure

public HashStructure getHashStructure()
Description copied from class: HashStructureAdapter
Returns the HashStructure this adapter is adapting.
Overrides:
getHashStructure in class HashStructureAdapter
Returns:
the HashStructure this adapter is adapting.

addTemplate

public void addTemplate(AbstractTemplate template)

removeTemplate

public void removeTemplate(AbstractTemplate template)

getTemplateById

public AbstractTemplate getTemplateById(java.lang.String id)
Description copied from interface: TemplateData
Get a template from this TemplateData store. To continue searching parent TemplateData stores, use findTemplateById().
Specified by:
getTemplateById in interface TemplateData
Returns:

setParent

public void setParent(TemplateData parent)

findTemplateById

public AbstractTemplate findTemplateById(java.lang.String id)
Description copied from interface: TemplateData
Search for template in this TemplateData store, and all its parents.
Specified by:
findTemplateById in interface TemplateData
Returns:

getParent

public TemplateData getParent()
Description copied from interface: TemplateData
The parent which should be used to resolve templateId queries, if they are not found in this TemplateData.
Specified by:
getParent in interface TemplateData
Returns:

getAllTemplates

public java.util.List<AbstractTemplate> getAllTemplates()
Specified by:
getAllTemplates in interface TemplateData

getTemplateByClass

public <T> java.util.List<T> getTemplateByClass(java.lang.Class<T> clazz)
Description copied from interface: TemplateData
Get a list of templates matching the type specified.
Specified by:
getTemplateByClass in interface TemplateData

isDirty

public boolean isDirty()

getURL

public java.net.URL getURL()
Description copied from interface: TemplateData
A URL location indicating from where this TemplateData was loaded.
Specified by:
getURL in interface TemplateData
Returns:

setURL

public void setURL(java.net.URL url)

copyTo

public java.lang.Object copyTo(java.lang.Object o)
Description copied from class: HashStructureAdapter
Copy support. The specified target must not be null and must be the exact same type as this instance.
Overrides:
copyTo in class HashStructureAdapter

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.