Codota Logo
ValueExpressionValueBindingAdapter
Code IndexAdd Codota 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)

  • Common ways to obtain ValueExpressionValueBindingAdapter
private void myMethod () {
ValueExpressionValueBindingAdapter v =
  • Codota IconValueBinding binding;new ValueExpressionValueBindingAdapter(binding)
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Path (java.nio.file)
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now