public class ASPDotNETTransformer extends AbstractTransformer
Transformer
implementation for ASP .NET.Modifier and Type | Field and Description |
---|---|
protected static String |
END_CODE_BLOCK |
protected static String |
START_CODE_BLOCK |
Constructor and Description |
---|
ASPDotNETTransformer() |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
assembleContent(StringBuffer body,
TransformContext context)
Assembles all of the transformed content, and turns it into a page, by adding the first line and header and
footer
to the body.
|
StringBuffer |
getContentsFromTag(TCDLTag currentTag,
String inputItem,
TransformContext context)
This is a recursive function which reads the contents of a particular tag, then recurses any child tags this
tag has,
calling the necessary transformer to deal with the contents of the tag.
|
String |
transformBinaryLink(TCDLTag tag,
TransformContext context)
Transform the Link element tag into the target output language for a Binary Link.
|
StringBuffer |
transformFooter(StringBuffer footer)
Generate the final output of a footer for a TransformContext.
|
StringBuffer |
transformHeader(StringBuffer header)
Generate the final output of a Header for a TransformContext.
|
String |
transformTag(TCDLTag tag,
TransformContext context)
This is the method which will transforms the attributes and contents of the tag into the configured target
output
language.
|
getFullContentsFromTag, startProcessingItem
protected static final String END_CODE_BLOCK
protected static final String START_CODE_BLOCK
public StringBuffer assembleContent(StringBuffer body, TransformContext context)
body
- The transformed contents of the input file.context
- The TransformContext containing the Context associated with this input file.public String transformBinaryLink(TCDLTag tag, TransformContext context)
tag
- The tag you want to transformcontext
- The TransformContext to update.public String transformTag(TCDLTag tag, TransformContext context)
AbstractTransformer
class from the TransformProcessor,
and then calls the appropriate
transformer method for the tag, based on the name
field. The attributes
field is
passed to the
appropriate transformer method, together with the tagContents
field. The
AbstractTransformer
class
then returns a formatted string.transformTag
in interface Transformer
transformTag
in class AbstractTransformer
public StringBuffer getContentsFromTag(TCDLTag currentTag, String inputItem, TransformContext context)
getContentsFromTag
in interface Transformer
getContentsFromTag
in class AbstractTransformer
currentTag
- A TCDLTag which you want to transform.inputItem
- A string from which to copy the non-transformable parts from.public StringBuffer transformHeader(StringBuffer header)
transformHeader
in interface Transformer
transformHeader
in class AbstractTransformer
header
- The contents of the header.public StringBuffer transformFooter(StringBuffer footer)
transformFooter
in interface Transformer
transformFooter
in class AbstractTransformer
footer
- The contents of the footer.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries