| | |
| | | <xsl:call-template name="generate-enumeration" /> |
| | | </xsl:for-each> |
| | | <!-- |
| | | Define application tags if this is the root configuration. |
| | | --> |
| | | <xsl:if test="$this-is-root"> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:value-of select="' // Define managed object tags.
'"/> |
| | | <xsl:value-of select="' static {
'"/> |
| | | <xsl:for-each select="$this/adm:tag-definition"> |
| | | <xsl:sort select="@name" /> |
| | | <xsl:value-of select="concat(' Tag.define("', @name, '");
')"/> |
| | | </xsl:for-each> |
| | | <xsl:value-of select="' }
'"/> |
| | | </xsl:if> |
| | | <!-- |
| | | Generate declarations for properties defined or |
| | | overridden by this managed object. |
| | | --> |
| | |
| | | <xsl:call-template name="generate-relation-constructor" /> |
| | | </xsl:for-each> |
| | | <!-- |
| | | Register any tags associated with this managed object definition. |
| | | --> |
| | | <xsl:if test="$this/adm:tag"> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:value-of select="' // Register the tags associated with this managed object definition.
'"/> |
| | | <xsl:value-of select="' static {
'"/> |
| | | <xsl:for-each select="$this/adm:tag"> |
| | | <xsl:sort select="@name" /> |
| | | <xsl:value-of select="concat(' INSTANCE.registerTag(Tag.valueOf("', @name, '"));
')"/> |
| | | </xsl:for-each> |
| | | <xsl:value-of select="' }
'"/> |
| | | </xsl:if> |
| | | <!-- |
| | | Configuration definition singleton getter. |
| | | --> |
| | | <xsl:text>
</xsl:text> |
| | |
| | | </xsl:message> |
| | | </xsl:if> |
| | | <xsl:choose> |
| | | <xsl:when test="not(adm:default-behavior) or adm:default-behavior/adm:undefined"> |
| | | <xsl:when |
| | | test="not(adm:default-behavior) or adm:default-behavior/adm:undefined"> |
| | | <xsl:value-of |
| | | select="concat(' builder.setDefaultBehaviorProvider(new UndefinedDefaultBehaviorProvider<', $value-type,'>());
')" /> |
| | | </xsl:when> |
| | |
| | | @mandatory='true']"> |
| | | <import>org.opends.server.admin.PropertyOption</import> |
| | | </xsl:if> |
| | | <xsl:if test="$this/adm:tag-definition or $this/adm:tag"> |
| | | <import>org.opends.server.admin.Tag</import> |
| | | </xsl:if> |
| | | <xsl:if |
| | | test="$this-local-properties[adm:default-behavior/adm:undefined or not(adm:default-behavior)]"> |
| | | <import> |