|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.templates.TemplateSubPatternAssociation
A class to contain a match pattern and it's corresponding template. This class also defines a node in a match pattern linked list.
Field Summary | |
private TemplateSubPatternAssociation |
m_next
Next pattern |
private String |
m_pattern
Template pattern |
(package private) StepPattern |
m_stepPattern
Step pattern |
private String |
m_targetString
Target string for this match pattern |
private ElemTemplate |
m_template
The template element |
private boolean |
m_wild
Flag indicating whether this is wild card pattern |
Constructor Summary | |
(package private) |
TemplateSubPatternAssociation(ElemTemplate template,
StepPattern pattern,
String pat)
Construct a match pattern from a pattern and template. |
Method Summary | |
Object |
clone()
Clone this object. |
int |
getDocOrderPos()
Return the position of the template in document order in the stylesheet. |
int |
getImportLevel()
Return the import level associated with the stylesheet into which this template is composed. |
TemplateSubPatternAssociation |
getNext()
Get the next association. |
String |
getPattern()
Get the pattern string for diagnostic purposes. |
StepPattern |
getStepPattern()
Get associated XSLT StepPattern. |
String |
getTargetString()
Get the target string of the pattern. |
ElemTemplate |
getTemplate()
Get the assocated xsl:template. |
boolean |
isWild()
Tell if the pattern for this association is a wildcard. |
boolean |
matches(XPathContext xctxt,
int targetNode,
QName mode)
Return the mode associated with the template. |
(package private) boolean |
matchMode(QName m1)
Tell if two modes match according to the rules of XSLT. |
private boolean |
matchModes(QName m1,
QName m2)
Tell if two modes match according to the rules of XSLT. |
void |
setNext(TemplateSubPatternAssociation mp)
Set the next element on this association list, which should be equal or less in priority to this association, and, if equal priority, should occur before this template in document order. |
void |
setTargetString(String key)
Set Target String for this template pattern |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
StepPattern m_stepPattern
private String m_pattern
private ElemTemplate m_template
private TemplateSubPatternAssociation m_next
private boolean m_wild
private String m_targetString
Constructor Detail |
TemplateSubPatternAssociation(ElemTemplate template, StepPattern pattern, String pat)
template
- The node that contains the template for this pattern.pattern
- An executable XSLT StepPattern.pat
- For now a Nodelist that contains old-style element patterns.Method Detail |
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Cloneable
public final String getTargetString()
public void setTargetString(String key)
key
- Target string to setboolean matchMode(QName m1)
m1
- mode to match
private boolean matchModes(QName m1, QName m2)
m1
- First mode to matchm2
- Second mode to match
public boolean matches(XPathContext xctxt, int targetNode, QName mode) throws javax.xml.transform.TransformerException
xctxt
- XPath context to use with this templatetargetNode
- Target nodemode
- reference, which may be null, to the current mode.
javax.xml.transform.TransformerException
public final boolean isWild()
public final StepPattern getStepPattern()
public final String getPattern()
public int getDocOrderPos()
public final int getImportLevel()
public final ElemTemplate getTemplate()
public final TemplateSubPatternAssociation getNext()
public void setNext(TemplateSubPatternAssociation mp)
mp
- The next association to score if this one fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |