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.
-
RegisteredName
- The element type name normally used in XML for this sort of element.
-
SourceTypeName
- The name of the element type in the source to which this element
matches.
-
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.
-
xs_ElementElement()
- Construct an 'element' element with no name.
-
xs_ElementElement(String)
- Construct an 'element' element with a name.
-
calcMatchLevel()
- Calculate this pattern's match level, which includes figuring out the
value of each of the match level's constituents.
-
getSourceTypeName()
- Get the type of source element to which this element applies.
-
isMatch(xg_Element)
- See if this pattern matches the InputSourceElement.
-
verify()
-
Verify that this node is correct (ie.
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.
RegisteredName
public static final String RegisteredName
- The element type name normally used in XML for this sort of element.
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.
xs_ElementElement
public xs_ElementElement()
- Construct an 'element' element with no name.
xs_ElementElement
public xs_ElementElement(String InputNodeName)
- Construct an 'element' element with a name.
- Parameters:
- InputNodeName - The name of the element
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
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
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
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