|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.UnImplNode org.apache.xalan.templates.ElemTemplateElement org.apache.xalan.templates.KeyDeclaration
public class KeyDeclaration
Holds the attribute declarations for the xsl:keys element. A stylesheet declares a set of keys for each document using the xsl:key element. When this set of keys contains a member with node x, name y and value z, we say that node x has a key with name y and value z.
Field Summary | |
---|---|
private XPath |
m_matchPattern
The "match" attribute. |
private QName |
m_name
The "name" property. |
private XPath |
m_use
The "use" attribute. |
(package private) static long |
serialVersionUID
|
Fields inherited from class org.apache.xalan.templates.ElemTemplateElement |
---|
m_docOrderNumber, m_firstChild, m_hasVariableDecl, m_nextSibling, m_parentNode |
Fields inherited from class org.apache.xml.utils.UnImplNode |
---|
actualEncoding, fDocumentURI |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
KeyDeclaration(Stylesheet parentNode,
int docOrderNumber)
Constructs a new element representing the xsl:key. |
Method Summary | |
---|---|
void |
compose(StylesheetRoot sroot)
This function is called after everything else has been recomposed, and allows the template to set remaining values that may be based on some other property that depends on recomposition. |
XPath |
getMatch()
Get the "match" attribute. |
QName |
getName()
Get the "name" attribute. |
java.lang.String |
getNodeName()
Return the node name. |
XPath |
getUse()
Get the "use" attribute. |
int |
getXSLToken()
Get an int constant identifying the type of element. |
void |
recompose(StylesheetRoot root)
This function is called during recomposition to control how this element is composed. |
void |
setMatch(XPath v)
Set the "match" attribute. |
void |
setName(QName name)
Set the "name" attribute. |
void |
setUse(XPath v)
Set the "use" attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
private QName m_name
private XPath m_matchPattern
private XPath m_use
Constructor Detail |
---|
public KeyDeclaration(Stylesheet parentNode, int docOrderNumber)
Method Detail |
---|
public void setName(QName name)
name
- Value to set for the "name" attribute.public QName getName()
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemTemplateElement
public void setMatch(XPath v)
v
- Value to set for the "match" attribute.public XPath getMatch()
public void setUse(XPath v)
v
- Value to set for the "use" attribute.public XPath getUse()
public int getXSLToken()
getXSLToken
in class ElemTemplateElement
Constants
public void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose
in class ElemTemplateElement
javax.xml.transform.TransformerException
public void recompose(StylesheetRoot root)
recompose
in class ElemTemplateElement
root
- The root stylesheet for this transformation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |