|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jet.core.parser.AbstractTemplateResolver
public abstract class AbstractTemplateResolver
Abstract implementatino of ITemplateResolver. Extenders must only implement
the following methods.
| Constructor Summary | |
|---|---|
protected |
AbstractTemplateResolver(java.net.URI baseLocation)
Create a template resolver taking templates from a single base location. |
protected |
AbstractTemplateResolver(java.net.URI[] baseLocations)
Create a template resolver taking templates from one or more base locations |
| Method Summary | |
|---|---|
protected abstract ITemplateInput |
createTemplateInput(java.net.URI baseLocation,
java.lang.String templatePath)
Create a Template Input from the give base location and templatePath |
java.net.URI[] |
getBaseLocations()
Return the base locations from which the template resolver will load templates |
ITemplateInput |
getIncludedInput(java.lang.String includePath,
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. |
protected abstract boolean |
inputExists(java.net.URI baseLocation,
java.lang.String templatePath)
Test whether the template input exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractTemplateResolver(java.net.URI[] baseLocations)
baseLocations - an array of template URIs.protected AbstractTemplateResolver(java.net.URI baseLocation)
baseLocation - a base location URI| Method Detail |
|---|
public final java.net.URI[] getBaseLocations()
ITemplateResolver
getBaseLocations in interface ITemplateResolver
public final ITemplateInput getIncludedInput(java.lang.String includePath,
ITemplateInput[] activeInputs)
throws RecursiveIncludeException
ITemplateResolver
getIncludedInput in interface ITemplateResolverincludePath - the JET template pathactiveInputs - the input stack.
null
RecursiveIncludeException - if including templatePath would result in a recursive looppublic final ITemplateInput getInput(java.lang.String templatePath)
ITemplateResolver
getInput in interface ITemplateResolvertemplatePath - the JET template path
null
protected abstract boolean inputExists(java.net.URI baseLocation,
java.lang.String templatePath)
baseLocation - the baseLocationtemplatePath - the template path
true if createTemplateInput(URI, String)} will succeed, false otherwise.
protected abstract ITemplateInput createTemplateInput(java.net.URI baseLocation,
java.lang.String templatePath)
baseLocation - a base loctiontemplatePath - a templatePath
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||