Class TemplateDescriptor
- java.lang.Object
-
- org.eclipse.cdt.core.templateengine.TemplateDescriptor
-
public class TemplateDescriptor extends java.lang.ObjectThis class contains methods to get first process block element, next process block element and checks for next process block element.
-
-
Constructor Summary
Constructors Constructor Description TemplateDescriptor(java.net.URL descriptorURL, java.lang.String pluginId)Constructor which construct the Document based the URL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getPersistTrueIDs()return the list of IDs whose Persist attribute is true.java.lang.StringgetPluginId()java.util.List<org.w3c.dom.Element>getPropertyGroupList()This method is to get the list of property-group elements from template descriptor root element.org.w3c.dom.ElementgetRootElement()added to return root of this document.org.w3c.dom.ElementgetRootPropertyGroup(org.w3c.dom.Element element)This method is to get the complex property-group from template descriptor root element.java.util.Map<java.lang.String,java.lang.String>getTemplateDefaults(org.w3c.dom.Element element)This method is to get the default key value pair (HashMap) form template descriptor root element.
-
-
-
Field Detail
-
PROPERTY_GROUP
public static final java.lang.String PROPERTY_GROUP
- See Also:
- Constant Field Values
-
PROCESS
public static final java.lang.String PROCESS
- See Also:
- Constant Field Values
-
IF
public static final java.lang.String IF
- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
DEFAULT
public static final java.lang.String DEFAULT
- See Also:
- Constant Field Values
-
PERSIST
public static final java.lang.String PERSIST
- See Also:
- Constant Field Values
-
BOOL_TRUE
public static final java.lang.String BOOL_TRUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TemplateDescriptor
public TemplateDescriptor(java.net.URL descriptorURL, java.lang.String pluginId) throws TemplateInitializationExceptionConstructor which construct the Document based the URL- Parameters:
descriptorURL-- Throws:
TemplateInitializationException
-
-
Method Detail
-
getTemplateDefaults
public java.util.Map<java.lang.String,java.lang.String> getTemplateDefaults(org.w3c.dom.Element element)
This method is to get the default key value pair (HashMap) form template descriptor root element.- Returns:
- default values with keys
-
getPropertyGroupList
public java.util.List<org.w3c.dom.Element> getPropertyGroupList()
This method is to get the list of property-group elements from template descriptor root element.- Returns:
- list of property-group elements
-
getRootPropertyGroup
public org.w3c.dom.Element getRootPropertyGroup(org.w3c.dom.Element element)
This method is to get the complex property-group from template descriptor root element. complex means a property-group contains other property-group(s)- Parameters:
element- root element of type JDOM Element- Returns:
- property-group root element of type JDOM Element
-
getRootElement
public org.w3c.dom.Element getRootElement()
added to return root of this document.
-
getPersistTrueIDs
public java.util.List<java.lang.String> getPersistTrueIDs()
return the list of IDs whose Persist attribute is true.- Returns:
- Vector.
-
getPluginId
public java.lang.String getPluginId()
-
-