Tabnine Logo
ValueExpressionValueBindingAdapter
Code IndexAdd Tabnine to your IDE (free)

How to use
ValueExpressionValueBindingAdapter
in
javax.faces.component

Best Java code snippets using javax.faces.component.ValueExpressionValueBindingAdapter (Showing top 20 results out of 315)

origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

/**
 * {@inheritDoc}
 *
 * @throws IllegalArgumentException {@inheritDoc}
 * @throws NullPointerException     {@inheritDoc}
 * @deprecated This has been replaced by {@link #setValueExpression}.
 */
public void setValueBinding(String name, ValueBinding binding) {
  if (name == null) {
    throw new NullPointerException();
  }
  if (binding != null) {
    ValueExpressionValueBindingAdapter adapter =
        new ValueExpressionValueBindingAdapter(binding);
    setValueExpression(name, adapter);
  } else {
    setValueExpression(name, null);
  }
}
origin: com.sun.faces/jsf-api

/**
 * {@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;
}
origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

if (null != className) {
try {
  toRestoreClass = loadClass(className, this);
origin: javax/javaee-web-api

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;
  
}
origin: com.sun.faces/jsf-api

/**
 * {@inheritDoc}
 *
 * @throws IllegalArgumentException {@inheritDoc}
 * @throws NullPointerException     {@inheritDoc}
 * @deprecated This has been replaced by {@link #setValueExpression}.
 */
public void setValueBinding(String name, ValueBinding binding) {
  if (name == null) {
    throw new NullPointerException();
  }
  if (binding != null) {
    ValueExpressionValueBindingAdapter adapter =
        new ValueExpressionValueBindingAdapter(binding);
    setValueExpression(name, adapter);
  } else {
    setValueExpression(name, null);
  }
}
origin: javax/javaee-web-api

if (null != className) {
try {
  toRestoreClass = loadClass(className, this);
origin: javax.faces/com.springsource.javax.faces

/**
 * {@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;
}
origin: javax.faces/com.springsource.javax.faces

/**
 * {@inheritDoc}
 * @throws IllegalArgumentException {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @deprecated This has been replaced by {@link #setValueExpression}.
 */
public void setValueBinding(String name, ValueBinding binding) {
if (name == null) {
  throw new NullPointerException();
}
if (binding != null) {
  ValueExpressionValueBindingAdapter adapter =
  new ValueExpressionValueBindingAdapter(binding);
  setValueExpression(name, adapter);
} else {
  setValueExpression(name, null);
}
}
origin: com.sun.faces/jsf-api

if (null != className) {
try {
  toRestoreClass = loadClass(className, this);
origin: jboss/jboss-javaee-specs

/**
 * {@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;
}
origin: javax/javaee-web-api

/**
 * {@inheritDoc}
 *
 * @throws IllegalArgumentException {@inheritDoc}
 * @throws NullPointerException     {@inheritDoc}
 * @deprecated This has been replaced by {@link #setValueExpression}.
 */
@Override
public void setValueBinding(String name, ValueBinding binding) {
  if (name == null) {
    throw new NullPointerException();
  }
  if (binding != null) {
    ValueExpressionValueBindingAdapter adapter =
        new ValueExpressionValueBindingAdapter(binding);
    setValueExpression(name, adapter);
  } else {
    setValueExpression(name, null);
  }
}
origin: javax.faces/javax.faces-api

if (null != className) {
try {
  toRestoreClass = loadClass(className, this);
origin: javax.faces/javax.faces-api

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;
  
}
origin: javax.faces/com.springsource.javax.faces

ValueBinding binding = getValueBinding(name);
if (null != binding) {
  result = new ValueExpressionValueBindingAdapter(binding);
origin: jboss/jboss-javaee-specs

if (null != className) {
try {
  toRestoreClass = loadClass(className, this);
origin: javax/javaee-web-api

/**
 * {@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;
}
origin: javax.faces/javax.faces-api

/**
 * {@inheritDoc}
 *
 * @throws IllegalArgumentException {@inheritDoc}
 * @throws NullPointerException     {@inheritDoc}
 * @deprecated This has been replaced by {@link #setValueExpression}.
 */
@Override
public void setValueBinding(String name, ValueBinding binding) {
  if (name == null) {
    throw new NullPointerException();
  }
  if (binding != null) {
    ValueExpressionValueBindingAdapter adapter =
        new ValueExpressionValueBindingAdapter(binding);
    setValueExpression(name, adapter);
  } else {
    setValueExpression(name, null);
  }
}
origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

/**
 * {@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;
}
origin: jboss/jboss-javaee-specs

/**
 * {@inheritDoc}
 *
 * @throws IllegalArgumentException {@inheritDoc}
 * @throws NullPointerException     {@inheritDoc}
 * @deprecated This has been replaced by {@link #setValueExpression}.
 */
@Override
public void setValueBinding(String name, ValueBinding binding) {
  if (name == null) {
    throw new NullPointerException();
  }
  if (binding != null) {
    ValueExpressionValueBindingAdapter adapter =
        new ValueExpressionValueBindingAdapter(binding);
    setValueExpression(name, adapter);
  } else {
    setValueExpression(name, null);
  }
}
origin: com.sun.faces/jsf-api

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;
  
}
javax.faces.componentValueExpressionValueBindingAdapter

Javadoc

Wrap a ValueBinding instance and expose it as a ValueExpression.

Most used methods

  • <init>
  • getWrapped
  • loadClass

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • putExtra (Intent)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now