public TemplateModel create(Object object, ObjectWrapper wrapper) { return new EnumerationModel((Enumeration<?>) object, (BeansWrapper) wrapper); } };
/** * Returns {@link Enumeration#hasMoreElements()}. Therefore, an * enumeration that has no more element evaluates to false, and an * enumeration that has further elements evaluates to true. */ public boolean getAsBoolean() { return hasNext(); } }
/** * Calls underlying {@link Enumeration#nextElement()} and wraps the result. */ public TemplateModel next() throws TemplateModelException { try { return wrap(((Enumeration) object).nextElement()); } catch (NoSuchElementException e) { throw new TemplateModelException( "No more elements in the enumeration."); } }
/** * Returns {@link Enumeration#hasMoreElements()}. Therefore, an * enumeration that has no more element evaluates to false, and an * enumeration that has further elements evaluates to true. */ public boolean getAsBoolean() { return hasNext(); } }
/** * Calls underlying {@link Enumeration#nextElement()} and wraps the result. */ public TemplateModel next() throws TemplateModelException { try { return wrap(((Enumeration) object).nextElement()); } catch (NoSuchElementException e) { throw new TemplateModelException( "No more elements in the enumeration."); } }
public TemplateModel create(Object object, ObjectWrapper wrapper) { return new EnumerationModel((Enumeration<?>) object, (BeansWrapper) wrapper); } };
/** * Returns {@link Enumeration#hasMoreElements()}. Therefore, an * enumeration that has no more element evaluates to false, and an * enumeration that has further elements evaluates to true. */ public boolean getAsBoolean() { return hasNext(); } }
/** * Calls underlying {@link Enumeration#nextElement()} and wraps the result. */ public TemplateModel next() throws TemplateModelException { try { return wrap(((Enumeration) object).nextElement()); } catch (NoSuchElementException e) { throw new TemplateModelException( "No more elements in the enumeration."); } }
public TemplateModel create(Object object, ObjectWrapper wrapper) { return new EnumerationModel((Enumeration)object, (BeansWrapper)wrapper); } };
/** * Returns {@link Enumeration#hasMoreElements()}. Therefore, an * enumeration that has no more element evaluates to false, and an * enumeration that has further elements evaluates to true. */ public boolean getAsBoolean() { return hasNext(); } }
/** * Calls underlying {@link Enumeration#nextElement()} and wraps the result. */ public TemplateModel next() throws TemplateModelException { try { return wrap(((Enumeration)object).nextElement()); } catch(NoSuchElementException e) { throw new TemplateModelException( "No more elements in the enumeration."); } }
public TemplateModel create(Object object, ObjectWrapper wrapper) { return new EnumerationModel((Enumeration<?>) object, (BeansWrapper) wrapper); } };