Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


org.eclipse.jet.core.parser
Interface ITemplateResolver

All Known Implementing Classes:
AbstractTemplateResolver, DefaultTemplateResolver

public interface ITemplateResolver

Protocol for resolving JET template paths into actual input - used by the JET parser and compiler.


Method Summary
 java.net.URI[] getBaseLocations ()
          Return the base locations from which the template resolver will load templates
  ITemplateInput getIncludedInput (java.lang.String templatePath, ITemplateInput[] activeInputs)
          Return the appropriate template input, given a template path, and the current stack of template inputs.
  ITemplateInput getInput (java.lang.String templatePath)
          Return the template input given a template path.
 

Method Detail

getInput

ITemplateInput getInput(java.lang.String templatePath)
Return the template input given a template path.

Parameters:
templatePath - the JET template path
Returns:
the template input, or null

getIncludedInput

ITemplateInput getIncludedInput(java.lang.String templatePath,
                                
ITemplateInput[] activeInputs)
                                throws 
RecursiveIncludeException
Return the appropriate template input, given a template path, and the current stack of template inputs. The activeInputs argument is order from initial input to most recently included input.

Parameters:
templatePath - the JET template path
activeInputs - the input stack.
Returns:
the template input, or null
Throws:
RecursiveIncludeException - if including templatePath would result in a recursive loop
java.lang.NullPointerException - if either argument is null
java.lang.IllegalArgumentException - if inputStack does not contain at least one element.

getBaseLocations

java.net.URI[] getBaseLocations()
Return the base locations from which the template resolver will load templates

Returns:
a non-empty array of base location URIs.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire