Codota Logo
MetaProperty.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.apache.bval.model.MetaProperty
constructor

Best Java code snippets using org.apache.bval.model.MetaProperty.<init> (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-jsr303

/**
 * Add a {@link MetaProperty} to a {@link MetaBean}.
 * @param parentMetaBean
 * @param access
 * @return the created {@link MetaProperty}
 */
public static MetaProperty addMetaProperty(MetaBean parentMetaBean, AccessStrategy access) {
  final MetaProperty result = new MetaProperty();
  final String name = access.getPropertyName();
  result.setName(name);
  result.setType(access.getJavaType());
  parentMetaBean.putProperty(name, result);
  return result;
}
origin: org.apache.bval/bval-xstream

protected MetaProperty enrichElement(MetaBean meta, XMLMetaElement xmlProp, XMLResult result) throws Exception {
  MetaProperty prop = meta.getProperty(xmlProp.getName());
  if (prop == null) {
    prop = new MetaProperty();
    prop.setName(xmlProp.getName());
    meta.putProperty(xmlProp.getName(), prop);
  }
  xmlProp.mergeInto(prop);
  enrichValidations(prop, xmlProp, result, true);
  return prop;
}
origin: org.apache.bval/bval-core

/**
 * Create a {@link MetaProperty} from the specified {@link PropertyDescriptor}.
 * 
 * @param pd
 * @param existing
 * @return MetaProperty
 */
protected MetaProperty buildMetaProperty(PropertyDescriptor pd, MetaProperty existing) {
  MetaProperty meta = new MetaProperty();
  meta.setName(pd.getName());
  meta.setType(determineGenericPropertyType(pd));
  if (pd.isHidden()) {
    meta.putFeature(HIDDEN, Boolean.TRUE);
  }
  if (pd.isPreferred()) {
    meta.putFeature(PREFERRED, Boolean.TRUE);
  }
  if (pd.isConstrained()) {
    meta.putFeature(READONLY, Boolean.TRUE);
  }
  Enumeration<String> enumeration = pd.attributeNames();
  while (enumeration.hasMoreElements()) {
    String key = enumeration.nextElement();
    Object value = pd.getValue(key);
    meta.putFeature(key, value);
  }
  return meta;
}
org.apache.bval.modelMetaProperty<init>

Javadoc

Create a new MetaProperty instance.

Popular methods of MetaProperty

  • 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
  • setMetaBean
    Set the MetaBean of this MetaProperty.
  • 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

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Join (org.hibernate.mapping)
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