|
||||||||||
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.ElemUse org.apache.xalan.templates.ElemElement
public class ElemElement
Implement xsl:element
Field Summary | |
---|---|
protected AVT |
m_name_avt
The name attribute is interpreted as an attribute value template. |
protected AVT |
m_namespace_avt
If the namespace attribute is present, then it also is interpreted as an attribute value template. |
(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 | |
---|---|
ElemElement()
|
Method Summary | |
---|---|
protected void |
callChildVisitors(XSLTVisitor visitor,
boolean callAttrs)
Call the children visitors. |
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. |
(package private) void |
constructNode(java.lang.String nodeName,
java.lang.String prefix,
java.lang.String nodeNamespace,
TransformerImpl transformer)
Construct a node in the result tree. |
void |
execute(TransformerImpl transformer)
Create an element in the result tree. |
AVT |
getName()
Get the "name" attribute. |
AVT |
getNamespace()
Get the "namespace" attribute. |
java.lang.String |
getNodeName()
Return the node name. |
int |
getXSLToken()
Get an int constant identifying the type of element. |
protected java.lang.String |
resolvePrefix(SerializationHandler rhandler,
java.lang.String prefix,
java.lang.String nodeNamespace)
Resolve the namespace into a prefix. |
void |
setName(AVT v)
Set the "name" attribute. |
void |
setNamespace(AVT v)
Set the "namespace" attribute. |
Methods inherited from class org.apache.xalan.templates.ElemUse |
---|
applyAttrSets, getUseAttributeSets, setUseAttributeSets, setUseAttributeSets |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
protected AVT m_name_avt
protected AVT m_namespace_avt
Constructor Detail |
---|
public ElemElement()
Method Detail |
---|
public void setName(AVT v)
v
- Name attribute to set for this elementpublic AVT getName()
public void setNamespace(AVT v)
v
- NameSpace attribute to set for this elementpublic AVT getNamespace()
public void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose
in class ElemTemplateElement
javax.xml.transform.TransformerException
public int getXSLToken()
getXSLToken
in class ElemTemplateElement
Constants
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemTemplateElement
protected java.lang.String resolvePrefix(SerializationHandler rhandler, java.lang.String prefix, java.lang.String nodeNamespace) throws javax.xml.transform.TransformerException
rhandler
- The current result tree handler.prefix
- The probable prefix if already known.nodeNamespace
- The namespace.
javax.xml.transform.TransformerException
public void execute(TransformerImpl transformer) throws javax.xml.transform.TransformerException
execute
in class ElemUse
transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
void constructNode(java.lang.String nodeName, java.lang.String prefix, java.lang.String nodeNamespace, TransformerImpl transformer) throws javax.xml.transform.TransformerException
nodeName
- The name of the node, which may be null
. If null
,
only the non-attribute children of this node will be processed.prefix
- The prefix for the namespace, which may be null
.
If not null
, this prefix will be mapped and unmapped.nodeNamespace
- The namespace of the node, which may be not be null
.transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)
callChildVisitors
in class ElemTemplateElement
visitor
- The visitor whose appropriate method will be called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |