/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
JspTag parent = null; if( from instanceof SimpleTag ) { parent = ((SimpleTag)from).getParent();
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
JspTag parent = null; if( from instanceof SimpleTag ) { parent = ((SimpleTag)from).getParent();
/** * Delegates to wrapped tag. */ public JspTag getParent() { return tag.getParent(); }
/** * Returns the parent tag. */ public Tag getParent() { JspTag parent = _adaptee.getParent(); if (parent == null) return null; else if (parent instanceof Tag) return (Tag) parent; else return new TagAdapter((SimpleTag) parent); }
public Tag getParent() { if (!_parentDetermined) { JspTag simpleTagParent = _simpleTag.getParent(); if (simpleTagParent != null) { if (simpleTagParent instanceof Tag) { _parent = (Tag) simpleTagParent; } else { _parent = new SimpleTagWrapper((SimpleTag) simpleTagParent); } } _parentDetermined = true; } return _parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always getAdaptee().getParent(). * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ @Override public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always getAdaptee().getParent(). * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ @Override public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }
/** * Returns the parent of this tag, which is always * getAdaptee().getParent(). * * This will either be the enclosing Tag (if getAdaptee().getParent() * implements Tag), or an adapter to the enclosing Tag (if * getAdaptee().getParent() does not implement Tag). * * @return The parent of the tag being adapted. */ public Tag getParent() { if (!parentDetermined) { JspTag adapteeParent = simpleTagAdaptee.getParent(); if (adapteeParent != null) { if (adapteeParent instanceof Tag) { this.parent = (Tag) adapteeParent; } else { // Must be SimpleTag - no other types defined. this.parent = new TagAdapter((SimpleTag) adapteeParent); } } parentDetermined = true; } return this.parent; }