/** * Adds a configuration default for the given namespace to the tag-descriptions. If the namespace URI given here is * null, this defines the global default for all namespaces. * * @param namespaceUri the namespace URI for which a default should be configured. * @param hasCData the default value. */ public void setNamespaceHandler( final String namespaceUri, final Class<? extends T> hasCData ) { final TagDefinitionKey key = new TagDefinitionKey( namespaceUri, null ); setValueIfNotDefinedAsLegacy( key, hasCData ); }
/** * Adds a configuration entry for the given namespace and tag-name to the tag-descriptions. * * @param tagName the tagname for which the entry should be added. * @param hasCData the default value. */ public void setElementHandler( final String tagName, final Class<? extends T> hasCData ) { if ( tagName == null ) { throw new NullPointerException(); } final TagDefinitionKey key = new TagDefinitionKey( defaultNamespace, tagName ); setValueIfNotDefinedAsLegacy( key, hasCData ); }
/** * Adds a configuration entry for the given namespace and tag-name to the tag-descriptions. * * @param namespaceUri the namespace URI for which a default should be configured. * @param tagName the tagname for which the entry should be added. * @param hasCData the default value. */ public void setElementHandler( final String namespaceUri, final String tagName, final Class<? extends T> hasCData ) { if ( namespaceUri == null ) { throw new NullPointerException(); } if ( tagName == null ) { throw new NullPointerException(); } final TagDefinitionKey key = new TagDefinitionKey( namespaceUri, tagName ); setValueIfNotDefinedAsLegacy( key, hasCData ); }