private void relativizeLinkItemPaths( final LinkItem item, final String baseUrl ) { item.setHref( relativizeLink( item.getHref(), baseUrl ) ); }
private void rebaseLinkItemPaths( final LinkItem item, final URLRebaser urlContainer ) { item.setHref( urlContainer.rebaseLink( item.getHref() ) ); }
buf.append( "\n" ); buf.append( "href = '" ); buf.append( getHref() ); buf.append( "'" ); buf.append( "\n" );
/** * Method equals. * * @param other * @return boolean */ public boolean equals( Object other ) { if ( this == other ) { return true; } if ( !( other instanceof LinkItem ) ) { return false; } LinkItem that = (LinkItem) other; boolean result = true; result = result && ( getName() == null ? that.getName() == null : getName().equals( that.getName() ) ); result = result && ( getHref() == null ? that.getHref() == null : getHref().equals( that.getHref() ) ); result = result && ( getImg() == null ? that.getImg() == null : getImg().equals( that.getImg() ) ); result = result && ( getPosition() == null ? that.getPosition() == null : getPosition().equals( that.getPosition() ) ); result = result && ( getAlt() == null ? that.getAlt() == null : getAlt().equals( that.getAlt() ) ); result = result && ( getBorder() == null ? that.getBorder() == null : getBorder().equals( that.getBorder() ) ); result = result && ( getWidth() == null ? that.getWidth() == null : getWidth().equals( that.getWidth() ) ); result = result && ( getHeight() == null ? that.getHeight() == null : getHeight().equals( that.getHeight() ) ); result = result && ( getTarget() == null ? that.getTarget() == null : getTarget().equals( that.getTarget() ) ); result = result && ( getTitle() == null ? that.getTitle() == null : getTitle().equals( that.getTitle() ) ); return result; } //-- boolean equals( Object )