/** Creates a new Tag for the given tag name if it exists */ public Tag createTag(String name, Attributes attributes) throws JellyException { Object value = templates.get(name); if ( value instanceof Script ) { Script template = (Script) value; return new DynamicTag(template); } else if ( value instanceof TagFactory ) { TagFactory factory = (TagFactory) value; return factory.createTag(name, attributes); } else if ( parent != null ) { // delegate to the parent return parent.createTag(name, attributes); } return null; }
/** Creates a new Tag for the given tag name if it exists */ public Tag createTag(String name, Attributes attributes) throws JellyException { Object value = templates.get(name); if ( value instanceof Script ) { Script template = (Script) value; return new DynamicTag(template); } else if ( value instanceof TagFactory ) { TagFactory factory = (TagFactory) value; return factory.createTag(name, attributes); } else if ( parent != null ) { // delegate to the parent return parent.createTag(name, attributes); } return null; }
/** Creates a new Tag for the given tag name if it exists */ public Tag createTag(String name, Attributes attributes) throws JellyException { Object value = templates.get(name); if ( value instanceof Script ) { Script template = (Script) value; return new DynamicTag(template); } else if ( value instanceof TagFactory ) { TagFactory factory = (TagFactory) value; return factory.createTag(name, attributes); } else if ( parent != null ) { // delegate to the parent return parent.createTag(name, attributes); } return null; }
/** Creates a new Tag for the given tag name if it exists */ public Tag createTag(String name, Attributes attributes) throws JellyException { Object value = templates.get(name); if ( value instanceof Script ) { Script template = (Script) value; return new DynamicTag(template); } else if ( value instanceof TagFactory ) { TagFactory factory = (TagFactory) value; return factory.createTag(name, attributes); } else if ( parent != null ) { // delegate to the parent return parent.createTag(name, attributes); } return null; }