oracle.jdeveloper.template
Class ProjectTemplate
java.lang.Object
oracle.javatools.data.HashStructureAdapter
oracle.jdeveloper.template.AbstractTemplate
oracle.jdeveloper.template.ProjectTemplate
- All Implemented Interfaces:
- java.lang.Comparable, Displayable, Element
public class ProjectTemplate
- extends AbstractTemplate
Methods inherited from class oracle.jdeveloper.template.AbstractTemplate |
compareTo, equals, getAttributes, getChildTemplatesKey, 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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ProjectTemplate
public ProjectTemplate()
ProjectTemplate
public ProjectTemplate(HashStructure hash)
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
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 Element
s 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 Element
s or
null
if there are no children.
- Specified by:
getChildren
in interface Element
- Overrides:
getChildren
in class AbstractTemplate
- Returns:
- an
Iterator
over any child Element
s
contained by this Element
. If there are no children,
null
is returned.
getTechnologyScope
public TechnologyScope getTechnologyScope()
- Get the TechnologyScope defined for this template.
- Returns:
- the TechnologyScope, guaranteed not null.
getTechnologyKeys
protected java.util.List getTechnologyKeys()
setTechnologyScope
public void setTechnologyScope(TechnologyScope scope)
validate
protected boolean validate()
- Overrides:
validate
in class AbstractTemplate
Copyright © 1997, 2013, Oracle. All rights reserved.