/** * Test component. * @param comp The component. * @return The result of this test. */ public boolean testComponent(Component comp) { return componentName.equalsIgnoreCase(comp.getName()); }
/** * Returns the first component of specified name. * @param aName name of component to return * @return a component or null if no matching component found */ public final T getComponent(final String aName) { for (final T c : this) { if (c.getName().equals(aName)) { return c; } } return null; }
/** * Test component. * @param comp The component. * @return The result of this test. */ public boolean testComponent(Component comp) { return componentName.equalsIgnoreCase(comp.getName()); }
/** * Returns the first component of specified name. * @param aName name of component to return * @return a component or null if no matching component found */ public final T getComponent(final String aName) { for (final T c : this) { if (c.getName().equals(aName)) { return c; } } return null; }
/** * Returns the first component of specified name. * @param aName name of component to return * @return a component or null if no matching component found */ public final T getComponent(final String aName) { for (final T c : this) { if (c.getName().equals(aName)) { return c; } } return null; }
/** * Gets sub component filter. * @param subcomp The component. * @return The output filter. */ public OutputFilter getSubComponentFilter(Component subcomp) { if (subComponents == null) { return null; } return (OutputFilter) subComponents.get(subcomp.getName().toUpperCase(CosmoConstants.LANGUAGE_LOCALE)); }
/** * Gets sub component filter. * @param subcomp The component. * @return The output filter. */ public OutputFilter getSubComponentFilter(Component subcomp) { if (subComponents == null) { return null; } return (OutputFilter) subComponents.get(subcomp.getName().toUpperCase(CosmoConstants.LANGUAGE_LOCALE)); }
/** * {@inheritDoc} */ public int hashCode() { return new HashCodeBuilder().append(getName()).append(getProperties()) .toHashCode(); }
/** * {@inheritDoc} */ public int hashCode() { return new HashCodeBuilder().append(getName()).append(getProperties()) .toHashCode(); }
/** * {@inheritDoc} */ public int hashCode() { return new HashCodeBuilder().append(getName()).append(getProperties()) .toHashCode(); }
/** * {@inheritDoc} */ public int hashCode() { return new HashCodeBuilder().append(getName()).append(getProperties()) .toHashCode(); }
/** * {@inheritDoc} */ public int hashCode() { return new HashCodeBuilder().append(getName()).append(getProperties()) .toHashCode(); }