|
 |
|
|
Uses of Class org.eclipse.jet.taglib.JET2TagException
Methods in
org.eclipse.jet that throw
JET2TagException
|
java.lang.Object
|
XPathContextExtender.
addElement
(java.lang.Object parent,
java.lang.String name)
|
java.lang.Object
|
XPathContextExtender.
addTextElement
(java.lang.Object parentElement,
java.lang.String name,
java.lang.String bodyContent)
Create a new text (simple) element whose content is set to bodyContent . |
java.lang.Object
|
XPathContextExtender.
addTextElement
(java.lang.Object parentElement,
java.lang.String name,
java.lang.String bodyContent,
boolean asCData)
Create a new text (simple) element whose content is set to bodyContent . |
java.lang.Object
|
XPathContextExtender.
copyElement
(java.lang.Object srcElement,
java.lang.Object tgtParent,
java.lang.String name,
boolean recursive)
Copy srcElement as a new element with the specified name under tgtParent . |
java.util.Map
|
JET2Context.
extractVariables
(java.lang.String variableNames)
Extract a list of variables from the context |
void
|
IWriterListener.
finalizeContent
(
JET2Writer writer,
java.lang.Object file)
Perform any finalization of the content in the writer. |
void
|
IWriterListenerExtension.
finalizeContent
(
JET2Writer writer,
java.lang.Object fileObject,
java.lang.String existingContent)
Perform any finalization of the content in the writer. |
java.lang.Object
|
XPathContextExtender.
getAttributeValue
(java.lang.Object element,
java.lang.String attributeName)
Return the value of the named attribute on the passed element. |
java.lang.String
|
XPathContextExtender.
getContent
(java.lang.Object object)
Return the string value of the passed object. |
java.lang.Object
|
JET2Context.
getVariable
(java.lang.String var)
Return the value of a context variable |
void
|
IWriterListener.
postCommitContent
(
JET2Writer writer,
java.lang.Object file)
Perform any post processing on the committed file based on content written. |
void
|
XPathContextExtender.
removeAttribute
(java.lang.Object element,
java.lang.String attributeName)
Remove the named attribute from the specified element. |
void
|
XPathContextExtender.
removeElement
(java.lang.Object element)
|
void
|
JET2Context.
removeVariable
(java.lang.String var)
Remove a variable |
java.lang.Object[]
|
XPathContextExtender.
resolve
(java.lang.Object xpathContextObject,
java.lang.String selectXPath)
Resolve an XPath expression into an array of Objects. |
java.lang.Object[]
|
XPathContextExtender.
resolve
(java.lang.String selectXPath)
Resolve an XPath expression into an array of Objects. |
java.lang.Object
|
XPathContextExtender.
resolveAsObject
(java.lang.Object contextObject,
java.lang.String selectXPath)
Resolve the XPath expression, returning an object. |
java.lang.Object
|
XPathContextExtender.
resolveAsObject
(java.lang.String selectXPath)
Resolve the XPath expression, returning an object. |
java.lang.String
|
XPathContextExtender.
resolveAsString
(java.lang.Object xpathContextObject,
java.lang.String selectXPath)
Resolve the given XPath expression as a string value. |
java.lang.String
|
XPathContextExtender.
resolveAsString
(java.lang.String selectXPath)
Resolve the given XPath expression as a string value. |
java.lang.String
|
XPathContextExtender.
resolveDynamic
(java.lang.String value)
Resolve dynamic XPath expressions {...} within the pass value |
static java.lang.String
|
XPathContextExtender.
resolveDynamic
(java.lang.String value,
JET2Context context)
|
java.lang.Object
|
XPathContextExtender.
resolveSingle
(java.lang.Object xpathContextObject,
java.lang.String selectXPath)
Resolve an XPath expression to a single object. |
java.lang.Object
|
XPathContextExtender.
resolveSingle
(java.lang.String selectXPath)
Resolve an XPath expression to a single object. |
boolean
|
XPathContextExtender.
resolveTest
(java.lang.Object xpathContext,
java.lang.String testXPath)
Resolve an xpath expression as a boolean result according to the
XPath rules. |
boolean
|
XPathContextExtender.
resolveTest
(java.lang.String textXPath)
Resolve an xpath expression as a boolean result according to the
XPath rules. |
void
|
JET2Context.
restoreVariables
(java.util.Map savedVariableValues)
Restore variables in the passed map to the context. |
boolean
|
XPathContextExtender.
setAttribute
(java.lang.Object element,
java.lang.String name,
java.lang.String bodyContent)
|
void
|
JET2Context.
setVariable
(java.lang.String var,
java.lang.Object value)
Assigne or create a variable, and set its value. |
void
|
JET2Context.
setVariables
(java.util.Map variablesToPass)
Set the context variables to only the variables in variablesToPass |
Methods in
org.eclipse.jet.taglib that throw
JET2TagException
|
void
|
EmptyTag.
doAction
(
TagInfo td,
JET2Context context,
JET2Writer out)
Perform the action for the empty tag. |
void
|
AbstractContainerTag.
doAction
(
TagInfo td,
JET2Context context,
JET2Writer out)
Default implementation of
EmptyTag.doAction(TagInfo, JET2Context, JET2Writer) that simply
calls
ContainerTag.doBeforeBody(TagInfo, JET2Context, JET2Writer) and then
ContainerTag.doAfterBody(TagInfo, JET2Context, JET2Writer) . |
void
|
ContainerTag.
doAfterBody
(
TagInfo td,
JET2Context context,
JET2Writer out)
Perform processing after the tag body is processed. |
void
|
AbstractIteratingTag.
doAfterBody
(
TagInfo td,
JET2Context context,
JET2Writer out)
Default implementation of
ContainerTag.doAfterBody(TagInfo, JET2Context, JET2Writer) that does nothing. |
void
|
AbstractConditionalTag.
doAfterBody
(
TagInfo td,
JET2Context context,
JET2Writer out)
Default version of {#link
ContainerTag.doAfterBody(TagInfo, JET2Context, JET2Writer) that does nothing. |
void
|
ContainerTag.
doBeforeBody
(
TagInfo td,
JET2Context context,
JET2Writer out)
Perform processing before the tags body is processed. |
void
|
AbstractIteratingTag.
doBeforeBody
(
TagInfo td,
JET2Context context,
JET2Writer out)
Default implementation of
ContainerTag.doBeforeBody(TagInfo, JET2Context, JET2Writer)
that writes a delimiter if set. |
void
|
AbstractConditionalTag.
doBeforeBody
(
TagInfo td,
JET2Context context,
JET2Writer out)
Default version of
ContainerTag.doBeforeBody(TagInfo, JET2Context, JET2Writer) that does nothing. |
void
|
OtherTag.
doEnd
(
TagInfo tc,
JET2Context context,
JET2Writer out)
Perform actions required after the tag body has been evaluted. |
boolean
|
ConditionalTag.
doEvalCondition
(
TagInfo td,
JET2Context context)
Evalutate the condition that determines whether the tag's body is to be written to the tags
output writer. |
boolean
|
IteratingTag.
doEvalLoopCondition
(
TagInfo td,
JET2Context context)
Determine whether the tag should do another iteration, and, if so,
setup any data for the iteration. |
java.lang.String
|
FunctionTag.
doFunction
(
TagInfo td,
JET2Context context,
java.lang.String bodyContent)
Calculate the re-written tag content. |
void
|
IteratingTag.
doInitializeLoop
(
TagInfo td,
JET2Context context)
Initialize any data required to determine how many times the
tag should iterate. |
void
|
OtherTag.
doStart
(
TagInfo tc,
JET2Context context,
JET2Writer out)
Perform actions required prior to the tag body evaluation. |
void
|
MarkerHelper.
finalizeContent
(
JET2Writer writer,
java.lang.Object file)
|
void
|
UserRegionHelper.
finalizeContent
(
JET2Writer writer,
java.lang.Object fileObject,
java.lang.String existingContent)
|
java.lang.String
|
CustomTag.
getAttribute
(java.lang.String name)
Return the processed value of the tag attribute (with dynamic XPath expressions
already resolved. |
java.lang.String
|
AbstractCustomTag.
getAttribute
(java.lang.String name)
|
void
|
OtherTag.
handleBodyContent
(
TagInfo tc,
JET2Context context,
JET2Writer out,
JET2Writer bodyContent)
Re-write the tag body. |
boolean
|
OtherTag.
okToProcessBody
(
TagInfo tc,
JET2Context context)
Test whether the tags body should be processed. |
void
|
MarkerHelper.
postCommitContent
(
JET2Writer writer,
java.lang.Object file)
|
Methods in
org.eclipse.jet.taglib.workspace that throw
JET2TagException
|
static void
|
ActionsUtil.
createProject
(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create a new project. |
static boolean
|
ActionsUtil.
createProject
(org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IProjectDescription description,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create a new project. |
static boolean
|
ActionsUtil.
ensureFolderExists
(org.eclipse.core.resources.IFolder folder,
org.eclipse.core.runtime.IProgressMonitor monitor)
Ensure that a folder exists by creating it and any of its parents if necessary. |
org.eclipse.core.resources.IContainer
|
WorkspaceContextExtender.
getContainer
()
Get the top most container from the default containers stack without doing a pop. |
org.eclipse.core.resources.IResource
|
IWorkspaceAction.
getResource
()
Returns the workspace resource with which the action is associated. |
void
|
IWorkspaceAction.
performAction
(org.eclipse.core.runtime.IProgressMonitor monitor)
Perform the workspace action |
void
|
AbstractWorkspaceAction2.
performAction
(org.eclipse.core.runtime.IProgressMonitor monitor)
|
boolean
|
IWorkspaceAction2.
performActionIfRequired
(org.eclipse.core.runtime.IProgressMonitor monitor)
Perform the workspace action if required. |
void
|
WorkspaceContextExtender.
popContainer
()
Remove the top-most container on the default containers stack. |
static byte[]
|
ActionsUtil.
readBinaryFile
(java.net.URL url)
Read a binary file from the given URL. |
static java.lang.String
|
ActionsUtil.
readTextFile
(java.net.URL url,
java.lang.String encoding)
Return the contents of the text file at the specified URL. |
boolean
|
IWorkspaceAction.
requiresValidateEdit
()
Tests whether the action resource must participate in an Eclipse Team
validateEdit operation prior to the action being performed. |
static boolean
|
ActionsUtil.
writeBinaryFile
(org.eclipse.core.resources.IFile file,
boolean replace,
byte[] contents,
org.eclipse.core.runtime.IProgressMonitor monitor)
Write a binary file from a byte buffer. |
static boolean
|
ActionsUtil.
writeTextFile
(org.eclipse.core.resources.IFile file,
boolean replace,
java.lang.String encoding,
boolean derived,
java.lang.String contents,
org.eclipse.core.runtime.IProgressMonitor monitor)
Write the specified text file from a string. |
static boolean
|
ActionsUtil.
writeTextFileFromWriter
(org.eclipse.core.resources.IFile file,
boolean replace,
java.lang.String encoding,
boolean derived,
JET2Writer writer,
org.eclipse.core.runtime.IProgressMonitor monitor)
Write the file with the specified options from a JET writer. |
Methods in
org.eclipse.jet.transform that throw
JET2TagException
|
void
|
TransformContextListener.
commit
(
JET2Context context,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
void
|
TransformContextExtender.
execute
(java.lang.String templatePath,
boolean useSuper,
JET2Writer writer)
Execute the named template, writing all template output to the passed writer. |
void
|
TransformContextExtender.
execute
(java.lang.String templatePath,
JET2Writer writer)
Execute the named template, writing all template output to the passed writer. |
java.net.URL
|
TransformContextExtender.
getBaseURL
(java.lang.String urlContext)
Return the base URL to use given an urlContext constant. |
void
|
TransformContextExtender.
runSubTransform
(java.lang.String id)
Invoke another JET transformation |
void
|
TransformContextExtender.
runSubTransform
(java.lang.String id,
BodyContentWriter writer)
Invoke another JET transformation, recording the main template results in the specified writer |
void
|
TransformContextExtender.
setOverride
(java.lang.String id,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
|
|
|