|
|||||||||
| Home >> All >> org >> apache >> xalan >> [ templates overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.xalan.templates
Class StylesheetComposed

java.lang.Objectorg.apache.xml.utils.UnImplNode
org.apache.xalan.templates.ElemTemplateElement
org.apache.xalan.templates.Stylesheet
org.apache.xalan.templates.StylesheetComposed
- All Implemented Interfaces:
- org.w3c.dom.Document, org.w3c.dom.Element, org.apache.xpath.ExpressionNode, org.w3c.dom.Node, org.w3c.dom.NodeList, org.apache.xml.utils.PrefixResolver, java.io.Serializable, javax.xml.transform.SourceLocator, org.apache.xpath.WhitespaceStrippingElementMatcher, XSLTVisitable
- Direct Known Subclasses:
- StylesheetRoot
- public class StylesheetComposed
- extends Stylesheet
Represents a stylesheet that has methods that resolve includes and imports. It has methods on it that return "composed" properties, which mean that:
- Properties that are aggregates, like OutputProperties, will be composed of properties declared in this stylsheet and all included stylesheets.
- Properties that aren't found, will be searched for first in the includes, and, if none are located, will be searched for in the imports.
- Properties in that are not atomic on a stylesheet will have the form getXXXComposed. Some properties, like version and id, are not inherited, and so won't have getXXXComposed methods.
In some cases getXXXComposed methods may calculate the composed values dynamically, while in other cases they may store the composed values.
| Field Summary | |
private int |
m_endImportCountComposed
|
private int |
m_importCountComposed
The precedence of this stylesheet in the global import list. |
private int |
m_importNumber
Order in import chain. |
private java.util.Vector |
m_includesComposed
The combined list of includes. |
| Fields inherited from class org.apache.xalan.templates.Stylesheet |
m_DecimalFormatDeclarations, STYLESHEET_EXT |
| Fields inherited from class org.apache.xalan.templates.ElemTemplateElement |
m_docOrderNumber, m_firstChild, m_hasVariableDecl, m_nextSibling, m_parentNode, m_prefixTable |
| Constructor Summary | |
StylesheetComposed(Stylesheet parent)
Uses an XSL stylesheet document. |
|
| Method Summary | |
int |
getEndImportCountComposed()
Get the number of import in this stylesheet's composed list. |
StylesheetComposed |
getImportComposed(int i)
Get a stylesheet from the "import" list. |
int |
getImportCountComposed()
Get the precedence of this stylesheet in the global import list. |
Stylesheet |
getIncludeComposed(int i)
Get an "xsl:include" property. |
int |
getIncludeCountComposed()
Get the number of included stylesheets. |
boolean |
isAggregatedType()
Tell if this can be cast to a StylesheetComposed, meaning, you can ask questions from getXXXComposed functions. |
void |
recompose(java.util.Vector recomposableElements)
Adds all recomposable values for this precedence level into the recomposableElements Vector that was passed in as the first parameter. |
(package private) void |
recomposeImports()
Recalculate the precedence of this stylesheet in the global import list. |
(package private) void |
recomposeIncludes(Stylesheet including)
Recompose the value of the composed include list. |
void |
recomposeTemplates(boolean flushFirst)
For compilation support, we need the option of overwriting (rather than appending to) previous composition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
compareDocumentPosition, getBaseURI, getFeature, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData |
| Methods inherited from interface org.w3c.dom.Element |
getSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from interface org.w3c.dom.Document |
getDocumentURI, getDomConfig, getInputEncoding, getXmlEncoding, getXmlStandalone, getXmlVersion, normalizeDocument, renameNode, setDocumentURI, setXmlStandalone, setXmlVersion |
| Field Detail |
m_importNumber
private int m_importNumber
- Order in import chain.
m_importCountComposed
private int m_importCountComposed
- The precedence of this stylesheet in the global import list.
The lowest precedence stylesheet is 0. A higher
number has a higher precedence.
m_endImportCountComposed
private int m_endImportCountComposed
m_includesComposed
private transient java.util.Vector m_includesComposed
- The combined list of includes.
| Constructor Detail |
StylesheetComposed
public StylesheetComposed(Stylesheet parent)
- Uses an XSL stylesheet document.
| Method Detail |
isAggregatedType
public boolean isAggregatedType()
- Tell if this can be cast to a StylesheetComposed, meaning, you
can ask questions from getXXXComposed functions.
- Overrides:
isAggregatedTypein classStylesheet
recompose
public void recompose(java.util.Vector recomposableElements) throws javax.xml.transform.TransformerException
- Adds all recomposable values for this precedence level into the recomposableElements Vector
that was passed in as the first parameter. All elements added to the
recomposableElements vector should extend ElemTemplateElement.
recomposeImports
void recomposeImports()
- Recalculate the precedence of this stylesheet in the global
import list. The lowest precedence stylesheet is 0. A higher
number has a higher precedence.
getImportComposed
public StylesheetComposed getImportComposed(int i) throws java.lang.ArrayIndexOutOfBoundsException
- Get a stylesheet from the "import" list.
getImportCountComposed
public int getImportCountComposed()
- Get the precedence of this stylesheet in the global import list.
The lowest precedence is 0. A higher number has a higher precedence.
getEndImportCountComposed
public int getEndImportCountComposed()
- Get the number of import in this stylesheet's composed list.
recomposeIncludes
void recomposeIncludes(Stylesheet including)
- Recompose the value of the composed include list. Builds a composite
list of all stylesheets included by this stylesheet to any depth.
getIncludeComposed
public Stylesheet getIncludeComposed(int i) throws java.lang.ArrayIndexOutOfBoundsException
- Get an "xsl:include" property.
getIncludeCountComposed
public int getIncludeCountComposed()
- Get the number of included stylesheets.
recomposeTemplates
public void recomposeTemplates(boolean flushFirst)
throws javax.xml.transform.TransformerException
- For compilation support, we need the option of overwriting
(rather than appending to) previous composition.
We could phase out the old API in favor of this one, but I'm
holding off until we've made up our minds about compilation.
ADDED 9/5/2000 to support compilation experiment.
NOTE: GLP 29-Nov-00 I've left this method in so that CompilingStylesheetHandler will compile. However,
I'm not sure why it's needed or what it does and I've commented out the body.
|
|||||||||
| Home >> All >> org >> apache >> xalan >> [ templates overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC