All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xs.xs_ElementElement

java.lang.Object
   |
   +----com.sun.java.swing.tree.DefaultMutableTreeNode
           |
           +----xg.xg_Node
                   |
                   +----xg.xg_Element
                           |
                           +----xs.xs_PatternElement
                                   |
                                   +----xs.xs_ElementElement

public class xs_ElementElement
extends xs_PatternElement
An 'element' element in an XSL pattern within an XSL rule, which plays an essentially passive role as an ancestor or descendant of a 'target-element' element.


Variable Index

 o RegisteredName
The element type name normally used in XML for this sort of element.
 o SourceTypeName
The name of the element type in the source to which this element matches.
 o TypeAttName
The name of the attribute which (if present) is used to identify the type of the element in the source document with which this pattern must match.

Constructor Index

 o xs_ElementElement()
Construct an 'element' element with no name.
 o xs_ElementElement(String)
Construct an 'element' element with a name.

Method Index

 o calcMatchLevel()
Calculate this pattern's match level, which includes figuring out the value of each of the match level's constituents.
 o getSourceTypeName()
Get the type of source element to which this element applies.
 o isMatch(xg_Element)
See if this pattern matches the InputSourceElement.
 o verify()

Verify that this node is correct (ie.

Variables

 o SourceTypeName
 protected String SourceTypeName
The name of the element type in the source to which this element matches. It may be null, in which case it will match *any* type of source element.

 o RegisteredName
 public static final String RegisteredName
The element type name normally used in XML for this sort of element.

 o TypeAttName
 public static final String TypeAttName
The name of the attribute which (if present) is used to identify the type of the element in the source document with which this pattern must match.

Constructors

 o xs_ElementElement
 public xs_ElementElement()
Construct an 'element' element with no name.

 o xs_ElementElement
 public xs_ElementElement(String InputNodeName)
Construct an 'element' element with a name.

Parameters:
InputNodeName - The name of the element

Methods

 o verify
 public void verify() throws xg_VerificationException

Verify that this node is correct (ie. internally correct and/or consistent with other nodes - such as its parent). The node is OK iff it has no more than one child which is an instance of xs_ElementElement.

Throws: xg_VerificationException
Description of verification problem
Overrides:
verify in class xg_Node
 o isMatch
 public boolean isMatch(xg_Element InputSourceElement) throws xs_StyleException
See if this pattern matches the InputSourceElement. If so, return true.

Parameters:
InputSourceElement - The source node to match
Returns:
The best pattern after checking this one: it will either be InputBestPattern or this
Throws: xs_StyleException
An error occurred
Overrides:
isMatch in class xs_PatternElement
 o calcMatchLevel
 public void calcMatchLevel()
Calculate this pattern's match level, which includes figuring out the value of each of the match level's constituents.

Overrides:
calcMatchLevel in class xs_PatternElement
 o getSourceTypeName
 public String getSourceTypeName()
Get the type of source element to which this element applies.

Returns:
the type of source element to which this element applies, which may be null

All Packages  Class Hierarchy  This Package  Previous  Next  Index