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

E13403-03

oracle.jdeveloper.template
Class ApplicationTemplate

java.lang.Object
  extended by oracle.javatools.data.HashStructureAdapter
      extended by oracle.jdeveloper.template.AbstractTemplate
          extended by oracle.jdeveloper.template.ApplicationTemplate
All Implemented Interfaces:
java.lang.Comparable, Displayable, Element

public final class ApplicationTemplate
extends AbstractTemplate


Field Summary
 
Fields inherited from class oracle.jdeveloper.template.AbstractTemplate
NAME_COMPARATOR, parent_, WEIGHT_COMPARATOR
 
Fields inherited from class oracle.javatools.data.HashStructureAdapter
_hash
 
Constructor Summary
ApplicationTemplate()
           
ApplicationTemplate(HashStructure hash)
           
 
Method Summary
 void addProjectTemplate(int index, ProjectTemplate template)
           
 void addProjectTemplate(ProjectTemplate template)
           
 java.util.Iterator<Element> getChildren()
          This method is part of the Element interface to provide a convenient way of getting an Iterator over any contained child Elements without having to test the object's type with the instanceof operator or having to downcast to a more specific type.
protected  java.lang.String getChildTemplatesKey()
           
 java.lang.String getContainerNameKey()
           
protected  javax.swing.Icon getDefaultIcon()
           
 java.util.List<ProjectTemplate> getProjectTemplates()
           
 void initializeFromExtensionHook(HashStructure hash, TemplateData lookup)
          Initialize this template from a HashStructure read from the template extension hook.
 void removeAllProjectTemplates()
           
 void removeProjectTemplate(int index)
           
 void removeProjectTemplate(ProjectTemplate template)
           
 void setProjectTemplates(java.util.List<ProjectTemplate> templates)
           
 
Methods inherited from class oracle.jdeveloper.template.AbstractTemplate
compareTo, equals, getAttributes, getContainerName, getData, getDeploymentProfile, getDescription, getGalleryFolder, getIcon, getIconFile, getLongLabel, getName, getPackageName, getShortLabel, getTemplateData, getTemplateId, getTemplateId, getTextFromHook, getToolTipText, getWeight, hashCode, isUnsorted, isValid, mayHaveChildren, setContainerName, setDeploymentProfile, setDescription, setGalleryFolder, setIconFile, setName, setPackageName, setTemplateClass, setTemplateData, setTemplateId, setTemplateId, setToolTipText, setUnsorted, setValid, setWeight, toString, validate
 
Methods inherited from class oracle.javatools.data.HashStructureAdapter
addStructureChangeListener, containsKey, copyTo, copyToImpl, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationTemplate

public ApplicationTemplate()

ApplicationTemplate

public ApplicationTemplate(HashStructure hash)
Method Detail

initializeFromExtensionHook

public void initializeFromExtensionHook(HashStructure hash,
                                        TemplateData lookup)
Description copied from class: AbstractTemplate
Initialize this template from a HashStructure read from the template extension hook. Use lookup to resolve any references to external templates. Only properties that are available in the hash are set, the rest are left untouched.

Overrides:
initializeFromExtensionHook in class AbstractTemplate

getContainerNameKey

public java.lang.String getContainerNameKey()
Specified by:
getContainerNameKey in class AbstractTemplate

getProjectTemplates

public java.util.List<ProjectTemplate> getProjectTemplates()

setProjectTemplates

public void setProjectTemplates(java.util.List<ProjectTemplate> templates)

addProjectTemplate

public void addProjectTemplate(ProjectTemplate template)

addProjectTemplate

public void addProjectTemplate(int index,
                               ProjectTemplate template)

removeProjectTemplate

public void removeProjectTemplate(int index)

removeProjectTemplate

public void removeProjectTemplate(ProjectTemplate template)

removeAllProjectTemplates

public void removeAllProjectTemplates()

getChildTemplatesKey

protected java.lang.String getChildTemplatesKey()
Overrides:
getChildTemplatesKey in class AbstractTemplate

getDefaultIcon

protected javax.swing.Icon getDefaultIcon()
Specified by:
getDefaultIcon in class AbstractTemplate

getChildren

public java.util.Iterator<Element> getChildren()
Description copied from interface: Element
This method is part of the Element interface to provide a convenient way of getting an Iterator over any contained child Elements without having to test the object's type with the instanceof operator or having to downcast to a more specific type.

An implementation of Element that represents a leaf in a tree structure should return null from this method. An implementation of Element that could represent a non-leaf in a tree structure should return either an Iterator over the child Elements or null if there are no children.

Specified by:
getChildren in interface Element
Overrides:
getChildren in class AbstractTemplate
Returns:
an Iterator over any child Elements contained by this Element. If there are no children, null is returned.

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

E13403-03

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