Codota Logo
MetaProperty.setMetaBean
Code IndexAdd Codota to your IDE (free)

How to use
setMetaBean
method
in
org.apache.bval.model.MetaProperty

Best Java code snippets using org.apache.bval.model.MetaProperty.setMetaBean (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.apache.bval/bval-xstream

protected void computeRelationships(MetaBean beanInfo, Map<String, MetaBean> cached) {
  for (MetaProperty prop : beanInfo.getProperties()) {
    String beanRef = (String) prop.getFeature(REF_BEAN_ID);
    if (beanRef != null) {
      prop.setMetaBean(cached.get(beanRef));
    }
  }
}
origin: org.apache.bval/bval-xstream

  @Override
  protected void computeRelatedMetaBean(MetaProperty prop, String beanRef) {
    if (beanRef != null) {
      prop.setMetaBean(findForId(beanRef));
    } else {
      super.computeRelatedMetaBean(prop, beanRef);
    }
  }
}
origin: org.apache.bval/bval-core

/**
 * Compute a single related {@link MetaBean}.
 * 
 * @param prop meta property
 * @param beanRef bean reference
 */
protected void computeRelatedMetaBean(MetaProperty prop, String beanRef) {
  Class<?> beanType = prop.getFeature(REF_BEAN_TYPE);
  if (beanType == null) {
    if (prop.getFeature(REF_CASCADE) != null) { // dynamic type resolution:
      prop.setMetaBean(new DynamicMetaBean(this));
    }
  } else {
    prop.setMetaBean(findForClass(beanType));
  }
}
org.apache.bval.modelMetaPropertysetMetaBean

Javadoc

Set the MetaBean of this MetaProperty.

Popular methods of MetaProperty

  • <init>
    Create a new MetaProperty instance.
  • getFeature
  • putFeature
  • setName
    Set the name of this property.
  • setType
    Set the type of this property.
  • getMetaBean
    Get the metabean of the target bean (mainly for relationships).
  • getName
    Get the name of this property.
  • getParentMetaBean
  • getValidations
  • copy
  • getType
    Get the type of this property.
  • getTypeClass
    Resolve the type of this property to a class.
  • getType,
  • getTypeClass,
  • isMandatory,
  • isRelationship,
  • setParentMetaBean

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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