/** Creates a new script to execute the given tag name and attributes */ public TagScript createTagScript(String name, Attributes attributes) throws JellyException { Object value = tags.get(name); if (value instanceof Class) { Class type = (Class) value; return TagScript.newInstance(type); } else if (value instanceof TagFactory) { return new TagScript( (TagFactory) value ); } return null; }
/** Creates a new script to execute the given tag name and attributes */ public TagScript createTagScript(String name, Attributes attributes) throws JellyException { Object value = tags.get(name); if (value instanceof Class) { Class type = (Class) value; return TagScript.newInstance(type); } else if (value instanceof TagFactory) { return new TagScript( (TagFactory) value ); } return null; }
/** Creates a new script to execute the given tag name and attributes */ public TagScript createTagScript(String name, Attributes attributes) throws JellyException { Object value = tags.get(name); if (value instanceof Class) { Class type = (Class) value; return TagScript.newInstance(type); } else if (value instanceof TagFactory) { return new TagScript( (TagFactory) value ); } return null; }
/** Creates a new script to execute the given tag name and attributes */ public TagScript createTagScript(String name, Attributes attributes) throws JellyException { Object value = tags.get(name); if (value instanceof Class) { Class type = (Class) value; return TagScript.newInstance(type); } else if (value instanceof TagFactory) { return new TagScript( (TagFactory) value ); } return null; }
/** Create a <code>TagScript</code> based upon an element's * name and attributes. * * @param name The name. * @param attrs The attributes. * @return Generated <code>TagScript</code> from an elements * name and attributes. * * @throws JellyException If an error occurs while attempting to * create the script. */ public TagScript createTagScript( String name, Attributes attrs ) throws JellyException { if ( "goal".equals( name ) ) { return TagScript.newInstance( MavenGoalTag.class ); } else if ( "attainGoal".equals( name ) ) { return TagScript.newInstance( MavenAttainGoalTag.class ); } // Otherwise, act like nothing is different. return super.createTagScript( name, attrs ); } }