diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/codegen/prop-val-enum-interfaces.xsl | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/src/codegen/prop-val-enum-interfaces.xsl b/src/codegen/prop-val-enum-interfaces.xsl index 7109e786a..4832334bc 100644 --- a/src/codegen/prop-val-enum-interfaces.xsl +++ b/src/codegen/prop-val-enum-interfaces.xsl @@ -112,97 +112,4 @@ import org.apache.fop.fo.Constants; </xsl:if> </xsl:template> -<xsl:template name="genSubpropEnum"> - <xsl:param name="prop" select="."/> - <xsl:choose> - <xsl:when test="$prop/compound/subproperty/enumeration"> - <xsl:for-each select="compound/subproperty[enumeration]"> - <xsl:text> - public interface </xsl:text> - <xsl:value-of select="name"/> - <xsl:text> { -</xsl:text> - <xsl:for-each select="enumeration/value"> - <xsl:text> - int </xsl:text> - <xsl:value-of select="@const"/> - <xsl:text> = Constants.</xsl:text> - <xsl:value-of select="@const"/> - <xsl:text>;</xsl:text> - </xsl:for-each> - <xsl:text> - } -</xsl:text> - </xsl:for-each> - </xsl:when> - <xsl:when test="$prop/use-generic"> - <xsl:call-template name="inhspenums"> - <xsl:with-param name="prop" select="key('genericref', $prop/use-generic)"/> - </xsl:call-template> - </xsl:when> - <xsl:when test="$prop/compound/subproperty/use-generic"> - <!-- generate "interface <subprop> extends <gensubprop>.Enums" --> - <xsl:for-each select="$prop/compound/subproperty[use-generic]"> - <xsl:variable name="bSpEnum"> - <xsl:call-template name="hasEnum"> - <xsl:with-param name="prop" - select="key('genericref', use-generic)"/> - </xsl:call-template> - </xsl:variable> - <xsl:if test="$bSpEnum='true'"> - <xsl:text> - public interface </xsl:text> - <xsl:value-of select="name"/> - <xsl:text> extends </xsl:text> - <xsl:value-of select="use-generic"/> - <xsl:text>.Enums { } -</xsl:text> - </xsl:if> - </xsl:for-each> - </xsl:when> - <xsl:otherwise> - <xsl:text> - false</xsl:text> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template name="inhspenums"> - <xsl:param name="prop"/> - <xsl:variable name="generic_name"> - <xsl:choose> - <xsl:when test="$prop/class-name"> - <xsl:value-of select="$prop/class-name"/> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name="makeClassName"> - <xsl:with-param name="propstr" select="$prop/name"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <!-- generate "interface <subprop> extends <genprop>.<subprop>" --> - <xsl:for-each select="$prop/compound/subproperty[enumeration]"> - <xsl:variable name="spname"> - <xsl:call-template name="makeClassName"> - <xsl:with-param name="propstr" select="name"/> - </xsl:call-template> - </xsl:variable> - <xsl:text> - public interface </xsl:text> - <xsl:value-of select="$spname"/> - <xsl:text> extends </xsl:text> - <xsl:value-of select="$generic_name"/> - <xsl:text>.Enums.</xsl:text> - <xsl:value-of select="$spname"/> - <xsl:text> { }</xsl:text> - </xsl:for-each> - - <xsl:if test="$prop/use-generic"> - <xsl:call-template name="inhspenums"> - <xsl:with-param name="prop" select="key('genericref', $prop/use-generic)"/> - </xsl:call-template> - </xsl:if> -</xsl:template> - </xsl:stylesheet> |