|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xslt.parser.TextContentBuilder
A template visitor used to retrieve the text content of a template.
| Constructor Summary | |
TextContentBuilder()
|
|
| Method Summary | |
void |
applyImports(TemplateRuleList rules,
Variable[] params,
int maxImportPrecedence)
|
void |
applyTemplates(TemplateRuleList rules,
Expression select,
Sort sort,
Variable[] params)
|
void |
attribute(AttributeValue computedName,
AttributeValue computedUri,
NamespaceContext namespaceContext,
String stringValue,
Template templateValue)
|
void |
attribute(String name,
String prefix,
String uri,
AttributeValue value)
|
void |
buildText(Template template)
|
void |
callTemplate(TemplateRule templateRule,
Variable[] params,
int suppliedParamCount,
boolean isTailRecursive)
|
void |
choose(Condition[] when,
Template otherwise)
|
void |
comment(Template content)
|
void |
condition(Expression test,
Template content)
|
void |
copy(AttributeSet[] attributeSets,
Template content)
|
void |
copyOf(Expression select)
|
void |
document(String xslUri,
AttributeValue href,
OutputFormatTemplate format,
Template template)
|
void |
endElement()
|
void |
fallback(Template content)
|
void |
forEach(Expression select,
Sort sort,
Template content)
|
String |
getText()
Return the text content |
Expression |
getTextExpression()
Return the text expression |
boolean |
hasCompleteText()
Return if the Builder has collected the complete text. |
boolean |
hasNonTextContent()
Return if other nodes than text were encountered. |
boolean |
hasTextExpression()
Return if the content only consists of a value-of expression. |
void |
message(Template content,
boolean terminate)
|
void |
number(Numbering numbering)
|
void |
processingInstruction(AttributeValue name,
Template content)
|
void |
startElement(AttributeValue computedName,
AttributeValue computedUri,
NamespaceContext namespaceContext,
AttributeSet[] attributeSets)
|
void |
startElement(NodeName nodeName,
NamespaceContext namespaceContext,
AttributeSet[] attributeSets,
LiteralAttribute attribute)
Start a literal element. |
void |
text(String text,
boolean disableOutputEscaping)
|
void |
tryCatch(Template tryTemplate,
Template catchTemplate)
|
void |
unknown(String name,
Template content)
|
void |
valueOf(Expression expr,
boolean disableOutputEscaping)
|
void |
variableBind(Variable variable)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextContentBuilder()
| Method Detail |
public void buildText(Template template)
public boolean hasCompleteText()
getText()public String getText()
public boolean hasNonTextContent()
public boolean hasTextExpression()
getTextExpression()public Expression getTextExpression()
public void applyImports(TemplateRuleList rules,
Variable[] params,
int maxImportPrecedence)
applyImports in interface TemplateVisitor
public void applyTemplates(TemplateRuleList rules,
Expression select,
Sort sort,
Variable[] params)
applyTemplates in interface TemplateVisitor
public void attribute(String name,
String prefix,
String uri,
AttributeValue value)
attribute in interface TemplateVisitor
public void attribute(AttributeValue computedName,
AttributeValue computedUri,
NamespaceContext namespaceContext,
String stringValue,
Template templateValue)
attribute in interface TemplateVisitor
public void callTemplate(TemplateRule templateRule,
Variable[] params,
int suppliedParamCount,
boolean isTailRecursive)
callTemplate in interface TemplateVisitor
public void choose(Condition[] when,
Template otherwise)
choose in interface TemplateVisitorpublic void comment(Template content)
comment in interface TemplateVisitor
public void condition(Expression test,
Template content)
condition in interface TemplateVisitor
public void copy(AttributeSet[] attributeSets,
Template content)
copy in interface TemplateVisitorpublic void copyOf(Expression select)
copyOf in interface TemplateVisitor
public void document(String xslUri,
AttributeValue href,
OutputFormatTemplate format,
Template template)
document in interface TemplateVisitorpublic void endElement()
endElement in interface TemplateVisitorpublic void fallback(Template content)
fallback in interface TemplateVisitor
public void forEach(Expression select,
Sort sort,
Template content)
forEach in interface TemplateVisitor
public void message(Template content,
boolean terminate)
message in interface TemplateVisitorpublic void number(Numbering numbering)
number in interface TemplateVisitor
public void processingInstruction(AttributeValue name,
Template content)
processingInstruction in interface TemplateVisitor
public void startElement(AttributeValue computedName,
AttributeValue computedUri,
NamespaceContext namespaceContext,
AttributeSet[] attributeSets)
startElement in interface TemplateVisitor
public void startElement(NodeName nodeName,
NamespaceContext namespaceContext,
AttributeSet[] attributeSets,
LiteralAttribute attribute)
startElement in interface TemplateVisitor
public void text(String text,
boolean disableOutputEscaping)
text in interface TemplateVisitor
public void tryCatch(Template tryTemplate,
Template catchTemplate)
tryCatch in interface TemplateVisitor
public void unknown(String name,
Template content)
unknown in interface TemplateVisitor
public void valueOf(Expression expr,
boolean disableOutputEscaping)
valueOf in interface TemplateVisitorpublic void variableBind(Variable variable)
variableBind in interface TemplateVisitor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||