|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.utils.UnImplNode | +--org.apache.xalan.templates.ElemTemplateElement | +--org.apache.xalan.templates.Stylesheet
Represents a stylesheet element.
All properties in this class have a fixed form of bean-style property accessors for all properties that represent XSL attributes or elements. These properties have setter method names accessed generically by the processor, and so these names must be fixed according to the system defined in the getSetterMethodName function.
Field Summary | |
static java.lang.String |
STYLESHEET_EXT
Extension to be used when serializing to disk. |
Constructor Summary | |
Stylesheet(Stylesheet parent)
Constructor for a Stylesheet. |
Method Summary | |
boolean |
containsExcludeResultPrefix(java.lang.String prefix,
java.lang.String uri)
Get whether or not the passed prefix is contained flagged by the "exclude-result-prefixes" property. |
boolean |
containsExtensionElementURI(java.lang.String uri)
Find out if this contains a given "extension-element-prefix" property. |
ElemAttributeSet |
getAttributeSet(int i)
Get an "xsl:attribute-set" property. |
int |
getAttributeSetCount()
Get the number of "xsl:attribute-set" properties. |
DecimalFormatProperties |
getDecimalFormat(int i)
Get an "xsl:decimal-format" property. |
DecimalFormatProperties |
getDecimalFormat(QName name)
Get an "xsl:decimal-format" property. |
int |
getDecimalFormatCount()
Get the number of xsl:decimal-format declarations. |
java.lang.String |
getExcludeResultPrefix(int i)
Get an "exclude-result-prefix" property. |
int |
getExcludeResultPrefixCount()
Get the number of "exclude-result-prefixes" Strings. |
java.lang.String |
getExtensionElementPrefix(int i)
Get and "extension-element-prefix" property. |
int |
getExtensionElementPrefixCount()
Get the number of "extension-element-prefixes" Strings. |
java.lang.String |
getHref()
Get the base identifier with which this stylesheet is associated. |
java.lang.String |
getId()
Get the "id" property. |
StylesheetComposed |
getImport(int i)
Get a stylesheet from the "import" list. |
int |
getImportCount()
Get the number of imported stylesheets. |
Stylesheet |
getInclude(int i)
Get the stylesheet at the given in index in "include" list |
int |
getIncludeCount()
Get the number of included stylesheets. |
KeyDeclaration |
getKey(int i)
Get an "xsl:key" property. |
int |
getKeyCount()
Get the number of "xsl:key" properties. |
NamespaceAlias |
getNamespaceAlias(int i)
Get an "xsl:namespace-alias" property. |
int |
getNamespaceAliasCount()
Get the number of "xsl:namespace-alias" properties. |
java.lang.String |
getNodeName()
Return the node name. |
short |
getNodeType()
Get the type of the node. |
java.lang.Object |
getNonXslTopLevel(QName name)
Get a non-xslt element. |
OutputProperties |
getOutput(int i)
Get an "xsl:output" property. |
int |
getOutputCount()
Get the number of "xsl:output" properties. |
ElemParam |
getParam(QName qname)
Get an "xsl:param" property. |
WhiteSpaceInfo |
getPreserveSpace(int i)
Get a "xsl:preserve-space" property. |
int |
getPreserveSpaceCount()
Get the number of "xsl:preserve-space" properties. |
WhiteSpaceInfo |
getStripSpace(int i)
Get an "xsl:strip-space" property. |
int |
getStripSpaceCount()
Get the number of "xsl:strip-space" properties. |
Stylesheet |
getStylesheet()
Get the owning stylesheet. |
StylesheetComposed |
getStylesheetComposed()
Get the owning aggregated stylesheet, or this stylesheet if it is aggregated. |
Stylesheet |
getStylesheetParent()
Get the parent of the stylesheet. |
StylesheetRoot |
getStylesheetRoot()
Get the root of the stylesheet, where all the tables common to all stylesheets are kept. |
ElemTemplate |
getTemplate(int i)
Get an "xsl:template" property. |
int |
getTemplateCount()
Get the number of "xsl:template" properties. |
ElemVariable |
getVariable(QName qname)
Get an "xsl:variable" property. |
ElemVariable |
getVariableOrParam(int i)
Get an "xsl:variable" property. |
ElemVariable |
getVariableOrParam(QName qname)
Get an "xsl:variable" or "xsl:param" property. |
int |
getVariableOrParamCount()
Get the number of "xsl:variable" properties. |
java.lang.String |
getVersion()
Get the "version" property. |
java.lang.String |
getXmlnsXsl()
Get the "xmlns:xsl" property. |
int |
getXSLToken()
Get an integer representation of the element type. |
boolean |
isAggregatedType()
Tell if this can be cast to a StylesheetComposed, meaning, you can ask questions from getXXXComposed functions. |
boolean |
isRoot()
Tell if this is the root of the stylesheet tree. |
void |
replaceTemplate(ElemTemplate v,
int i)
Replace an "xsl:template" property. |
void |
setAttributeSet(ElemAttributeSet attrSet)
Set the "xsl:attribute-set" property. |
void |
setDecimalFormat(DecimalFormatProperties edf)
Process the xsl:decimal-format element. |
void |
setExcludeResultPrefixes(StringVector v)
Set the "exclude-result-prefixes" property. |
void |
setExtensionElementPrefixes(StringVector v)
Set the "extension-element-prefixes" property. |
void |
setHref(java.lang.String baseIdent)
Set the base identifier with which this stylesheet is associated. |
void |
setId(java.lang.String v)
Set the "id" property. |
void |
setImport(StylesheetComposed v)
Add a stylesheet to the "import" list. |
void |
setInclude(Stylesheet v)
Add a stylesheet to the "include" list. |
void |
setKey(KeyDeclaration v)
Set the "xsl:key" property. |
void |
setLocaterInfo(SourceLocator locator)
Set the location information for this element. |
void |
setNamespaceAlias(NamespaceAlias na)
Set the "xsl:namespace-alias" property. |
void |
setNonXslTopLevel(QName name,
java.lang.Object obj)
Set found a non-xslt element. |
void |
setOutput(OutputProperties v)
Set the "xsl:output" property. |
void |
setParam(ElemParam v)
Set an "xsl:param" property. |
void |
setPreserveSpaces(WhiteSpaceInfo wsi)
Set the "xsl:preserve-space" property. |
void |
setStripSpaces(WhiteSpaceInfo wsi)
Set the "xsl:strip-space" properties. |
void |
setStylesheetParent(Stylesheet v)
Set the parent of the stylesheet. |
void |
setStylesheetRoot(StylesheetRoot v)
Set the root of the stylesheet, where all the tables common to all stylesheets are kept. |
void |
setTemplate(ElemTemplate v)
Set an "xsl:template" property. |
void |
setVariable(ElemVariable v)
Set the "xsl:variable" property. |
void |
setVersion(java.lang.String v)
Set the "version" property. |
void |
setXmlnsXsl(java.lang.String v)
Set the "xmlns:xsl" property. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String STYLESHEET_EXT
Constructor Detail |
public Stylesheet(Stylesheet parent)
parent
- The including or importing stylesheet.Method Detail |
public Stylesheet getStylesheet()
public boolean isAggregatedType()
public boolean isRoot()
public void setXmlnsXsl(java.lang.String v)
v
- The value to be set for the "xmlns:xsl" property.public java.lang.String getXmlnsXsl()
public void setExtensionElementPrefixes(StringVector v)
v
- The value to be set for the "extension-element-prefixes"
property: a vector of extension element URIs.public java.lang.String getExtensionElementPrefix(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of extension element URI in listpublic int getExtensionElementPrefixCount()
public boolean containsExtensionElementURI(java.lang.String uri)
uri
- URI of extension element to look forpublic void setExcludeResultPrefixes(StringVector v)
v
- A StringVector of prefixes to excludepublic java.lang.String getExcludeResultPrefix(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of prefix to get in listpublic int getExcludeResultPrefixCount()
public boolean containsExcludeResultPrefix(java.lang.String prefix, java.lang.String uri)
prefix
- non-null reference to prefix that might be excluded.uri
- reference to namespace that prefix maps topublic void setId(java.lang.String v)
v
- Value for the "id" property.public java.lang.String getId()
public void setVersion(java.lang.String v)
v
- Value for the "version" property.public java.lang.String getVersion()
public void setImport(StylesheetComposed v)
v
- Stylesheet to add to the import listpublic StylesheetComposed getImport(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of the stylesheet to getpublic int getImportCount()
public void setInclude(Stylesheet v)
v
- Stylesheet to add to the "include" listpublic Stylesheet getInclude(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of stylesheet to getpublic int getIncludeCount()
public void setDecimalFormat(DecimalFormatProperties edf)
edf
- Decimal-format element to push into stackpublic DecimalFormatProperties getDecimalFormat(QName name)
name
- The qualified name of the decimal format property.DecimalFormatProperties
,
format-number in XSLT Specificationpublic DecimalFormatProperties getDecimalFormat(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of decimal-format property in stackDecimalFormatProperties
public int getDecimalFormatCount()
DecimalFormatProperties
public void setStripSpaces(WhiteSpaceInfo wsi)
wsi
- WhiteSpaceInfo element to add to listpublic WhiteSpaceInfo getStripSpace(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of WhiteSpaceInfo to getpublic int getStripSpaceCount()
public void setPreserveSpaces(WhiteSpaceInfo wsi)
wsi
- WhiteSpaceInfo element to add to listpublic WhiteSpaceInfo getPreserveSpace(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of WhiteSpaceInfo to getpublic int getPreserveSpaceCount()
public void setOutput(OutputProperties v)
v
- non-null reference to the OutputProperties object to be
added to the collection.public OutputProperties getOutput(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of OutputFormatExtended to getpublic int getOutputCount()
public void setKey(KeyDeclaration v)
v
- KeyDeclaration element to add to the list of key declarationspublic KeyDeclaration getKey(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of KeyDeclaration element to getpublic int getKeyCount()
public void setAttributeSet(ElemAttributeSet attrSet)
attrSet
- ElemAttributeSet to add to the list of attribute setspublic ElemAttributeSet getAttributeSet(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of ElemAttributeSet to get in listpublic int getAttributeSetCount()
public void setVariable(ElemVariable v)
v
- ElemVariable object to add to list of top level variablespublic ElemVariable getVariableOrParam(QName qname)
qname
- non-null reference to the qualified name of the variable.public ElemVariable getVariable(QName qname)
qname
- Qualified name of the xsl:variable to getpublic ElemVariable getVariableOrParam(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of variable to get in the listpublic int getVariableOrParamCount()
public void setParam(ElemParam v)
v
- A non-null ElemParam reference.public ElemParam getParam(QName qname)
qname
- non-null reference to qualified name of the parameter.public void setTemplate(ElemTemplate v)
v
- ElemTemplate to add to list of templatespublic ElemTemplate getTemplate(int i) throws TransformerException
i
- Index of ElemTemplate in the list to getpublic int getTemplateCount()
public void setNamespaceAlias(NamespaceAlias na)
na
- NamespaceAlias elemeent to add to the listpublic NamespaceAlias getNamespaceAlias(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of NamespaceAlias element to get from the listpublic int getNamespaceAliasCount()
public void setNonXslTopLevel(QName name, java.lang.Object obj)
name
- Qualified name of the elementobj
- The element objectpublic java.lang.Object getNonXslTopLevel(QName name)
name
- Qualified name of the element to getpublic java.lang.String getHref()
public void setHref(java.lang.String baseIdent)
baseIdent
- the base identifier with which this stylesheet is associated.public void setLocaterInfo(SourceLocator locator)
locator
- SourceLocator object with location informationpublic StylesheetRoot getStylesheetRoot()
public void setStylesheetRoot(StylesheetRoot v)
v
- the root of the stylesheetpublic Stylesheet getStylesheetParent()
public void setStylesheetParent(Stylesheet v)
v
- the parent of the stylesheet.public StylesheetComposed getStylesheetComposed()
public short getNodeType()
public int getXSLToken()
Constants
public java.lang.String getNodeName()
public void replaceTemplate(ElemTemplate v, int i) throws TransformerException
v
- Compiled template to replace withi
- Index of template to be replaced
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |