Tabnine Logo
JXPathIntrospector.getBeanInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
getBeanInfo
method
in
org.apache.commons.jxpath.JXPathIntrospector

Best Java code snippets using org.apache.commons.jxpath.JXPathIntrospector.getBeanInfo (Showing top 20 results out of 315)

origin: commons-jxpath/commons-jxpath

public NodePointer createNodePointer(QName name, Object bean, Locale locale) {
  JXPathBeanInfo bi = JXPathIntrospector.getBeanInfo(bean.getClass());
  return new BeanPointer(name, bean, bi, locale);
}
origin: jp.terasoluna.fw/terasoluna-commons

/**
 * ノードポインタを生成する。
 * @param name QName
 * @param bean ターゲットとなるBean
 * @param locale ロケール
 * @return Beanポインタ
 */
@Override
public NodePointer createNodePointer(
  QName name, Object bean, Locale locale) {
  JXPathBeanInfo bi = JXPathIntrospector.getBeanInfo(bean.getClass());
  return new BeanPointerEx(name, bean, bi, locale);
}
origin: commons-jxpath/commons-jxpath

public boolean isLeaf() {
  Object value = getNode();
  return value == null || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: org.eclipse.platform/org.eclipse.e4.emf.xpath

@Override
public boolean isLeaf() {
  Object value = getNode();
  return value == null
    || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.e4.emf.xpath

@Override
public boolean isLeaf() {
  Object value = getNode();
  return value == null || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.e4.emf.xpath

@Override
public boolean isLeaf() {
  Object value = getNode();
  return value == null || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: org.eclipse.platform/org.eclipse.e4.emf.xpath

@Override
public boolean isLeaf() {
  Object value = getNode();
  return value == null || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: commons-jxpath/commons-jxpath

public boolean isLeaf() {
  Object value = getNode();
  return value == null
    || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: commons-jxpath/commons-jxpath

public boolean isLeaf() {
  Object value = getNode();
  return value == null || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: commons-jxpath/commons-jxpath

  public NodePointer createNodePointer(NodePointer parent, QName name,
      Object bean) {
    if (bean == null) {
      return new NullPointer(parent, name);
    }

    JXPathBeanInfo bi = JXPathIntrospector.getBeanInfo(bean.getClass());
    return new BeanPointer(parent, name, bean, bi);
  }
}
origin: org.apache.cocoon/cocoon-sitemap-impl

  public static Iterator getAttributeNames(JXPathHelperConfiguration setup, Object contextObj)
  throws ConfigurationException {

    if (contextObj == null) {
      return null;
    }

    try {
      JXPathBeanInfo info = JXPathIntrospector.getBeanInfo(contextObj.getClass());
      java.beans.PropertyDescriptor[] properties = info.getPropertyDescriptors();

      List names = new LinkedList();
      for (int i = 0; i < properties.length; i++) {
        names.add(properties[i].getName());
      }

      return names.listIterator();
    } catch (Exception e) {
      throw new ConfigurationException("Error retrieving attribute names for class: " + contextObj.getClass(), e);
    }
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.e4.emf.xpath

@Override
public boolean isLeaf() {
  Object value = getNode();
  return value == null
    || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: org.eclipse.platform/org.eclipse.e4.emf.xpath

@Override
public boolean isLeaf() {
  Object value = getNode();
  return value == null || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: commons-jxpath/commons-jxpath

public boolean isLeaf() {
  Object value = getNode();
  return value == null || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: commons-jxpath/commons-jxpath

public boolean isLeaf() {
  Object value = getNode();
  return value == null || JXPathIntrospector.getBeanInfo(value.getClass()).isAtomic();
}
origin: jp.terasoluna.fw/terasoluna-commons

  /**
   * ノードポインタを生成する。
   * @param parent 親のポインタ
   * @param name QName
   * @param bean ターゲットとなるBean
   * @return Beanポインタ
   */
  @Override
  public NodePointer createNodePointer(
    NodePointer parent, QName name, Object bean) {
    if (bean == null) {
      return new NullPointer(parent, name);
    }
    JXPathBeanInfo bi = JXPathIntrospector.getBeanInfo(bean.getClass());
    return new BeanPointerEx(parent, name, bean, bi);
  }
}
origin: commons-jxpath/commons-jxpath

public NodePointer createNodePointer(
  QName name,
  Object bean,
  Locale locale) {
  JXPathBeanInfo bi = JXPathIntrospector.getBeanInfo(bean.getClass());
  if (bi.isDynamic()) {
    DynamicPropertyHandler handler =
      ValueUtils.getDynamicPropertyHandler(
        bi.getDynamicPropertyHandlerClass());
    return new DynamicPointer(name, bean, handler, locale);
  }
  return null;
}
origin: jp.terasoluna.fw/terasoluna-commons

/**
 * ノードポインタを生成する。
 * @param name QName
 * @param bean ターゲットのMap
 * @param locale ロケール
 * @return Map用ポインタ
 */
@Override
public NodePointer createNodePointer(
  QName name, Object bean, Locale locale) {
  JXPathBeanInfo bi = JXPathIntrospector.getBeanInfo(bean.getClass());
  if (bi.isDynamic()) {
    DynamicPropertyHandler handler =
      ValueUtils.getDynamicPropertyHandler(
          bi.getDynamicPropertyHandlerClass());
    return new DynamicPointerEx(name, bean, handler, locale);
  }
  return null;
}
origin: commons-jxpath/commons-jxpath

  public NodePointer createNodePointer(
    NodePointer parent,
    QName name,
    Object bean) {
    if (bean == null) {
      return new NullPointer(parent, name);
    }

    JXPathBeanInfo bi = JXPathIntrospector.getBeanInfo(bean.getClass());
    if (bi.isDynamic()) {
      DynamicPropertyHandler handler =
        ValueUtils.getDynamicPropertyHandler(
          bi.getDynamicPropertyHandlerClass());
      return new DynamicPointer(parent, name, bean, handler);
    }
    return null;
  }
}
origin: jp.terasoluna.fw/terasoluna-commons

  /**
   * ノードポインタを生成する。
   * @param parent 親Mapポインタ
   * @param name QName
   * @param bean ターゲットのMap
   * @return Map用ポインタ
   */
  @Override
  public NodePointer createNodePointer(
    NodePointer parent, QName name, Object bean) {
    if (bean == null) {
      return new NullPointer(parent, name);
    }

    JXPathBeanInfo bi = JXPathIntrospector.getBeanInfo(bean.getClass());
    if (bi.isDynamic()) {
      DynamicPropertyHandler handler =
        ValueUtils.getDynamicPropertyHandler(
            bi.getDynamicPropertyHandlerClass());
      return new DynamicPointerEx(parent, name, bean, handler);
    }
    return null;
  }
}
org.apache.commons.jxpathJXPathIntrospectorgetBeanInfo

Javadoc

Creates and registers a JXPathBeanInfo object for the supplied class. If the class has already been registered, returns the registered JXPathBeanInfo object.

The process of creation of JXPathBeanInfo is as follows:

  • If class named <beanClass>XBeanInfo exists, an instance of that class is allocated.
  • Otherwise, an instance of JXPathBasicBeanInfo is allocated.

Popular methods of JXPathIntrospector

  • registerDynamicClass
    Automatically creates and registers a JXPathBeanInfo object for the specified class. That object ret
  • findDynamicBeanInfo
    Find a dynamic bean info if available for any superclasses or interfaces.
  • findInformant
    find a JXPathBeanInfo instance for the specified class. Similar to javax.beans property handler disc
  • instantiate
    Try to create an instance of a named class. First try the classloader of "sibling", then try the sys

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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