public boolean equals(Object other) { if (other == this) { return true; } if (other instanceof ValueExpressionValueBindingAdapter) { ValueBinding vb = ((ValueExpressionValueBindingAdapter) other).getWrapped(); return (binding.equals(vb)); } else if (other instanceof ValueExpression) { FacesContext context = FacesContext.getCurrentInstance(); ValueExpression otherVE = (ValueExpression) other; Class type = binding.getType(context); if (type != null) { return type.equals(otherVE.getType(context.getELContext())); } } return false; }
/** * {@inheritDoc} * * @throws NullPointerException {@inheritDoc} * @deprecated This has been replaced by {@link #getValueExpression}. */ public ValueBinding getValueBinding(String name) { if (name == null) { throw new NullPointerException(); } ValueBinding result = null; ValueExpression ve; if (null != (ve = getValueExpression(name))) { // if the ValueExpression is an instance of our private // wrapper class. if (ve.getClass().equals(ValueExpressionValueBindingAdapter.class)) { result = ((ValueExpressionValueBindingAdapter) ve).getWrapped(); } else { // otherwise, this is a real ValueExpression. Wrap it // in a ValueBinding. result = new ValueBindingValueExpressionAdapter(ve); } } return result; }
public boolean equals(Object other) { if (other == this) { return true; } if (other instanceof ValueExpressionValueBindingAdapter) { ValueBinding vb = ((ValueExpressionValueBindingAdapter) other).getWrapped(); return (binding.equals(vb)); } else if (other instanceof ValueExpression) { FacesContext context = FacesContext.getCurrentInstance(); ValueExpression otherVE = (ValueExpression) other; Class type = binding.getType(context); if (type != null) { return type.equals(otherVE.getType(context.getELContext())); } } return false; }
/** * {@inheritDoc} * @throws NullPointerException {@inheritDoc} * @deprecated This has been replaced by {@link #getValueExpression}. */ public ValueBinding getValueBinding(String name) { if (name == null) { throw new NullPointerException(); } ValueBinding result = null; ValueExpression ve; if (null != (ve = getValueExpression(name))) { // if the ValueExpression is an instance of our private // wrapper class. if (ve.getClass().equals(ValueExpressionValueBindingAdapter.class)) { result = ((ValueExpressionValueBindingAdapter)ve).getWrapped(); } else { // otherwise, this is a real ValueExpression. Wrap it // in a ValueBinding. result = new ValueBindingValueExpressionAdapter(ve); } } return result; }
/** * {@inheritDoc} * * @throws NullPointerException {@inheritDoc} * @deprecated This has been replaced by {@link #getValueExpression}. */ @Override public ValueBinding getValueBinding(String name) { if (name == null) { throw new NullPointerException(); } ValueBinding result = null; ValueExpression ve; if (null != (ve = getValueExpression(name))) { // if the ValueExpression is an instance of our private // wrapper class. if (ve.getClass().equals(ValueExpressionValueBindingAdapter.class)) { result = ((ValueExpressionValueBindingAdapter) ve).getWrapped(); } else { // otherwise, this is a real ValueExpression. Wrap it // in a ValueBinding. result = new ValueBindingValueExpressionAdapter(ve); } } return result; }
/** * {@inheritDoc} * * @throws NullPointerException {@inheritDoc} * @deprecated This has been replaced by {@link #getValueExpression}. */ @Override public ValueBinding getValueBinding(String name) { if (name == null) { throw new NullPointerException(); } ValueBinding result = null; ValueExpression ve; if (null != (ve = getValueExpression(name))) { // if the ValueExpression is an instance of our private // wrapper class. if (ve.getClass().equals(ValueExpressionValueBindingAdapter.class)) { result = ((ValueExpressionValueBindingAdapter) ve).getWrapped(); } else { // otherwise, this is a real ValueExpression. Wrap it // in a ValueBinding. result = new ValueBindingValueExpressionAdapter(ve); } } return result; }
/** * {@inheritDoc} * * @throws NullPointerException {@inheritDoc} * @deprecated This has been replaced by {@link #getValueExpression}. */ public ValueBinding getValueBinding(String name) { if (name == null) { throw new NullPointerException(); } ValueBinding result = null; ValueExpression ve; if (null != (ve = getValueExpression(name))) { // if the ValueExpression is an instance of our private // wrapper class. if (ve.getClass().equals(ValueExpressionValueBindingAdapter.class)) { result = ((ValueExpressionValueBindingAdapter) ve).getWrapped(); } else { // otherwise, this is a real ValueExpression. Wrap it // in a ValueBinding. result = new ValueBindingValueExpressionAdapter(ve); } } return result; }
public boolean equals(Object other) { if (other == this) { return true; } if (other instanceof ValueExpressionValueBindingAdapter) { ValueBinding vb = ((ValueExpressionValueBindingAdapter) other).getWrapped(); return (binding.equals(vb)); } else if (other instanceof ValueExpression) { FacesContext context = FacesContext.getCurrentInstance(); ValueExpression otherVE = (ValueExpression) other; Class type = binding.getType(context); if (type != null) { return type.equals(otherVE.getType(context.getELContext())); } } return false; }
/** * {@inheritDoc} * * @throws NullPointerException {@inheritDoc} * @deprecated This has been replaced by {@link #getValueExpression}. */ @Override public ValueBinding getValueBinding(String name) { if (name == null) { throw new NullPointerException(); } ValueBinding result = null; ValueExpression ve; if (null != (ve = getValueExpression(name))) { // if the ValueExpression is an instance of our private // wrapper class. if (ve.getClass().equals(ValueExpressionValueBindingAdapter.class)) { result = ((ValueExpressionValueBindingAdapter) ve).getWrapped(); } else { // otherwise, this is a real ValueExpression. Wrap it // in a ValueBinding. result = new ValueBindingValueExpressionAdapter(ve); } } return result; }
public boolean equals(Object other) { if (other == this) { return true; } if (other instanceof ValueExpressionValueBindingAdapter) { ValueBinding vb = ((ValueExpressionValueBindingAdapter) other).getWrapped(); return (binding.equals(vb)); } else if (other instanceof ValueExpression) { FacesContext context = FacesContext.getCurrentInstance(); ValueExpression otherVE = (ValueExpression) other; Class type = binding.getType(context); if (type != null) { return type.equals(otherVE.getType(context.getELContext())); } } return false; }
public boolean equals(Object other) { if (other == this) { return true; } if (other instanceof ValueExpressionValueBindingAdapter) { ValueBinding vb = ((ValueExpressionValueBindingAdapter) other).getWrapped(); return (binding.equals(vb)); } else if (other instanceof ValueExpression) { FacesContext context = FacesContext.getCurrentInstance(); ValueExpression otherVE = (ValueExpression) other; Class type = binding.getType(context); if (type != null) { return type.equals(otherVE.getType(context.getELContext())); } } return false; }