/** * Searches up the parent hierarchy for a Tag of one of the given types. * @return the tag of the given type or null if it could not be found */ protected Tag findAncestorWithClass(Collection parentClasses) { return findAncestorWithClass(getParent(),parentClasses); }
/** * Searches up the parent hierarchy for a Tag of one of the given types. * @return the tag of the given type or null if it could not be found * @see #findAncestorWithClass(Collection) */ protected Tag findAncestorWithClass(Class[] parentClasses) { return findAncestorWithClass(getParent(),parentClasses); }
/** * Searches up the parent hierarchy for a Tag of one of the given types. * @return the tag of the given type or null if it could not be found */ protected Tag findAncestorWithClass(Collection parentClasses) { return findAncestorWithClass(getParent(),parentClasses); }
/** * Searches up the parent hierarchy for a Tag of the given type. * @return the tag of the given type or null if it could not be found */ protected Tag findAncestorWithClass(Class parentClass) { return findAncestorWithClass(getParent(), parentClass); }
/** * Searches up the parent hierarchy for a Tag of one of the given types. * @return the tag of the given type or null if it could not be found * @see #findAncestorWithClass(Collection) */ protected Tag findAncestorWithClass(Class[] parentClasses) { return findAncestorWithClass(getParent(),parentClasses); }
/** * Searches up the parent hierarchy for a Tag of the given type. * @return the tag of the given type or null if it could not be found */ protected Tag findAncestorWithClass(Class parentClass) { return findAncestorWithClass(getParent(), parentClass); }
/** * Searches up the parent hierarchy for a Tag of the given type. * @return the tag of the given type or null if it could not be found */ protected Tag findAncestorWithClass(Class parentClass) { return findAncestorWithClass(getParent(), parentClass); }
/** * Searches up the parent hierarchy for a Tag of one of the given types. * @return the tag of the given type or null if it could not be found * @see #findAncestorWithClass(Collection) */ protected Tag findAncestorWithClass(Class[] parentClasses) { return findAncestorWithClass(getParent(),parentClasses); }
/** * Searches up the parent hierarchy for a Tag of one of the given types. * @return the tag of the given type or null if it could not be found */ protected Tag findAncestorWithClass(Collection parentClasses) { return findAncestorWithClass(getParent(),parentClasses); }
/** * Searches up the parent hierarchy for a Tag of the given type. * @return the tag of the given type or null if it could not be found */ protected Tag findAncestorWithClass(Class parentClass) { return findAncestorWithClass(getParent(), parentClass); }
/** * Searches up the parent hierarchy for a Tag of one of the given types. * @return the tag of the given type or null if it could not be found * @see #findAncestorWithClass(Collection) */ protected Tag findAncestorWithClass(Class[] parentClasses) { return findAncestorWithClass(getParent(),parentClasses); }
/** * Searches up the parent hierarchy for a Tag of one of the given types. * @return the tag of the given type or null if it could not be found */ protected Tag findAncestorWithClass(Collection parentClasses) { return findAncestorWithClass(getParent(),parentClasses); }
public boolean isTrim() { if ( this.shouldTrim == null ) { Tag parent = getParent(); if ( parent == null ) { return true; } else { if ( parent instanceof TagSupport ) { TagSupport parentSupport = (TagSupport) parent; this.shouldTrim = ( parentSupport.isTrim() ? Boolean.TRUE : Boolean.FALSE ); } else { this.shouldTrim = Boolean.TRUE; } } } return this.shouldTrim.booleanValue(); }
public boolean isTrim() { if ( this.shouldTrim == null ) { Tag parent = getParent(); if ( parent == null ) { return true; } else { if ( parent instanceof TagSupport ) { TagSupport parentSupport = (TagSupport) parent; this.shouldTrim = ( parentSupport.isTrim() ? Boolean.TRUE : Boolean.FALSE ); } else { this.shouldTrim = Boolean.TRUE; } } } return this.shouldTrim.booleanValue(); }