| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xalan.templates.TemplateSubPatternAssociation
class 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_nextNext pattern | 
| private  java.lang.String | m_patternTemplate pattern | 
| (package private)  StepPattern | m_stepPatternStep pattern | 
| private  java.lang.String | m_targetStringTarget string for this match pattern | 
| private  ElemTemplate | m_templateThe template element | 
| private  boolean | m_wildFlag indicating whether this is wild card pattern | 
| (package private) static long | serialVersionUID | 
| Constructor Summary | |
|---|---|
| TemplateSubPatternAssociation(ElemTemplate template,
                                                           StepPattern pattern,
                                                           java.lang.String pat)Construct a match pattern from a pattern and template. | |
| Method Summary | |
|---|---|
|  java.lang.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. | 
|  java.lang.String | getPattern()Get the pattern string for diagnostic purposes. | 
|  StepPattern | getStepPattern()Get associated XSLT StepPattern. | 
|  java.lang.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(java.lang.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 | 
|---|
static final long serialVersionUID
StepPattern m_stepPattern
private java.lang.String m_pattern
private ElemTemplate m_template
private TemplateSubPatternAssociation m_next
private boolean m_wild
private java.lang.String m_targetString
| Constructor Detail | 
|---|
TemplateSubPatternAssociation(ElemTemplate template,
                              StepPattern pattern,
                              java.lang.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 java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic final java.lang.String getTargetString()
public void setTargetString(java.lang.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.TransformerExceptionpublic final boolean isWild()
public final StepPattern getStepPattern()
public final java.lang.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 | |||||||||