public class ElemLiteralResult extends ElemUse
| Modifier and Type | Class and Description |
|---|---|
class |
ElemLiteralResult.Attribute |
class |
ElemLiteralResult.LiteralElementAttributes |
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 and Description |
|---|
ElemLiteralResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLiteralResultAttribute(AVT avt)
Set a literal result attribute (AVTs only).
|
void |
addLiteralResultAttribute(java.lang.String att)
Set a literal result attribute (used for xsl attributes).
|
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.
|
boolean |
containsExcludeResultPrefix(java.lang.String prefix,
java.lang.String uri)
Get whether or not the passed URL is flagged by
the "extension-element-prefixes" or "exclude-result-prefixes"
properties.
|
boolean |
containsExtensionElementURI(java.lang.String uri)
Find out if the given "extension-element-prefix" property is defined.
|
java.util.Iterator |
enumerateLiteralResultAttributes()
Compiling templates requires that we be able to list the AVTs
ADDED 9/5/2000 to support compilation experiment
|
void |
execute(TransformerImpl transformer)
Copy a Literal Result Element into the Result tree, copy the
non-excluded namespace attributes, copy the attributes not
of the XSLT namespace, and execute the children of the LRE.
|
java.lang.String |
getAttribute(java.lang.String rawName)
Return the raw value of the attribute.
|
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Return the raw value of the attribute.
|
NamedNodeMap |
getAttributes()
Unimplemented.
|
java.lang.String |
getExtensionElementPrefix(int i)
Get an "extension-element-prefix" property.
|
int |
getExtensionElementPrefixCount()
Get the number of "extension-element-prefixes" Strings.
|
boolean |
getIsLiteralResultAsStylesheet()
Return whether this element represents a root element
that is also the stylesheet element.
|
AVT |
getLiteralResultAttribute(java.lang.String name)
Get a literal result attribute by name.
|
AVT |
getLiteralResultAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Get a literal result attribute by name.
|
java.lang.String |
getLocalName()
Get the local name of the Literal Result Element.
|
java.lang.String |
getNamespace()
Get the original namespace of the Literal Result Element.
|
java.lang.String |
getNodeName()
Return the node name.
|
java.lang.String |
getPrefix()
Get the prefix part of the raw name of the Literal Result Element.
|
java.lang.String |
getRawName()
Get the raw name of the Literal Result Element.
|
java.lang.String |
getVersion()
Get the "version" property.
|
int |
getXSLToken()
Get an int constant identifying the type of element.
|
void |
resolvePrefixTables()
Augment resolvePrefixTables, resolving the namespace aliases once
the superclass has resolved the tables.
|
void |
setExcludeResultPrefixes(StringVector v)
Set the "exclude-result-prefixes" property.
|
void |
setExtensionElementPrefixes(StringVector v)
Set the "extension-element-prefixes" property.
|
void |
setIsLiteralResultAsStylesheet(boolean b)
Set whether this element represents a root element
that is also the stylesheet element.
|
void |
setLocalName(java.lang.String localName)
Set the local name of the LRE.
|
void |
setNamespace(java.lang.String ns)
Set the namespace URI of the result element to be created.
|
void |
setRawName(java.lang.String rawName)
Set the raw name of the LRE.
|
void |
setVersion(java.lang.String v)
Set the "version" property.
|
void |
setXmlSpace(AVT avt)
Set the "xml:space" attribute.
|
void |
throwDOMException(short code,
java.lang.String msg)
Throw a DOMException
|
applyAttrSets, getUseAttributeSets, setUseAttributeSets, setUseAttributeSetsappendChild, appendChild, callVisitors, canAcceptVariables, canStripWhiteSpace, compareTo, endCompose, error, error, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getEndColumnNumber, getEndLineNumber, getFirstChild, getFirstChildElem, getLastChild, getLastChildElem, getLength, getLineNumber, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeType, getOwnerDocument, getOwnerXSLTemplate, getParentElem, getParentNode, getParentNodeElem, getPreviousSibling, getPreviousSiblingElem, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getTagName, getUid, getXmlSpace, handlesNullPrefixes, hasChildNodes, hasTextLitOnly, hasVariableDecl, insertBefore, isCompiledTemplate, item, recompose, removeChild, replaceChild, replaceChild, runtimeInit, setDOMBackPointer, setEndLocaterInfo, setLocaterInfo, setParentElem, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpaceadoptNode, appendData, cloneNode, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, getActualEncoding, getAttributeNode, getAttributeNodeNS, getBaseURI, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getImplementation, getInputEncoding, getNamespaceURI, getNodeValue, getOwnerElement, getSchemaTypeInfo, getSpecified, getStrictErrorChecking, getTextContent, getUserData, getWholeText, getXmlEncoding, getXmlStandalone, getXmlVersion, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertData, isDefaultNamespace, isEqualNode, isId, isSameNode, isSupported, isWhitespaceInElementContent, lookupNamespaceURI, lookupPrefix, normalize, normalizeDocument, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, renameNode, replaceData, replaceWholeText, setActualEncoding, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setDocumentURI, setIdAttribute, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInputEncoding, setNodeValue, setPrefix, setStrictErrorChecking, setTextContent, setUserData, setValue, setXmlEncoding, setXmlStandalone, setXmlVersion, splitText, substringDatapublic void setIsLiteralResultAsStylesheet(boolean b)
b - boolean flag indicating whether this element
represents a root element that is also the stylesheet element.public boolean getIsLiteralResultAsStylesheet()
public void compose(StylesheetRoot sroot) throws TransformerException
compose in class ElemTemplateElementTransformerExceptionpublic void addLiteralResultAttribute(AVT avt)
avt - literal result attribute to add (AVT only)public void addLiteralResultAttribute(java.lang.String att)
att - literal result attribute to addpublic void setXmlSpace(AVT avt)
avt - Enumerated value, either Constants.ATTRVAL_PRESERVE
or Constants.ATTRVAL_STRIP.public AVT getLiteralResultAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
namespaceURI - Namespace URI of attribute node to getlocalName - Local part of qualified name of attribute node to getpublic java.lang.String getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
getAttributeNS in interface ElementgetAttributeNS in class UnImplNodenamespaceURI - Namespace URI of attribute node to getlocalName - Local part of qualified name of attribute node to getpublic AVT getLiteralResultAttribute(java.lang.String name)
name - Name of literal result attribute to getpublic java.lang.String getAttribute(java.lang.String rawName)
getAttribute in interface ElementgetAttribute in class UnImplNodenamespaceURI:localName - or localName if the namespaceURI is null of
the attribute to getpublic boolean containsExcludeResultPrefix(java.lang.String prefix,
java.lang.String uri)
containsExcludeResultPrefix in class ElemTemplateElementprefix - non-null reference to prefix that might be excluded.(not currently used)uri - reference to namespace that prefix maps topublic void resolvePrefixTables()
throws TransformerException
resolvePrefixTables in class ElemTemplateElementTransformerExceptionpublic void setNamespace(java.lang.String ns)
ns - The Namespace URI, or the empty string if the
element has no Namespace URI.public java.lang.String getNamespace()
public void setLocalName(java.lang.String localName)
localName - The local name (without prefix) of the result element
to be created.public java.lang.String getLocalName()
getLocalName in interface NodegetLocalName in class ElemTemplateElementpublic void setRawName(java.lang.String rawName)
rawName - The qualified name (with prefix), or the
empty string if qualified names are not available.public java.lang.String getRawName()
public java.lang.String getPrefix()
getPrefix in interface NodegetPrefix in class UnImplNodepublic void setExtensionElementPrefixes(StringVector v)
v - Vector of URIs (not prefixes) to set as the "extension-element-prefixes" propertypublic NamedNodeMap getAttributes()
UnImplNodegetAttributes in interface NodegetAttributes in class UnImplNodeNodepublic java.lang.String getExtensionElementPrefix(int i)
throws java.lang.ArrayIndexOutOfBoundsException
i - Index of URI ("extension-element-prefix" property) to getjava.lang.ArrayIndexOutOfBoundsExceptionpublic int getExtensionElementPrefixCount()
public boolean containsExtensionElementURI(java.lang.String uri)
uri - The URI to findpublic int getXSLToken()
getXSLToken in class ElemTemplateElementConstantspublic java.lang.String getNodeName()
getNodeName in interface NodegetNodeName in class ElemTemplateElementpublic void setVersion(java.lang.String v)
v - Version property value to setpublic java.lang.String getVersion()
public void setExcludeResultPrefixes(StringVector v)
v - vector of prefixes that are resolvable to strings.public void execute(TransformerImpl transformer) throws TransformerException
execute in class ElemUsetransformer - non-null reference to the the current transform-time state.TransformerExceptionpublic java.util.Iterator enumerateLiteralResultAttributes()
public void throwDOMException(short code,
java.lang.String msg)
msg - key of the error that occured.Copyright © 2014 Apache XML Project. All Rights Reserved.