Tabnine Logo
Property.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.springframework.core.convert.Property

Best Java code snippets using org.springframework.core.convert.Property.getName (Showing top 5 results out of 315)

origin: spring-projects/spring-framework

@Nullable
private Field getField() {
  String name = getName();
  if (!StringUtils.hasLength(name)) {
    return null;
  }
  Field field = null;
  Class<?> declaringClass = declaringClass();
  if (declaringClass != null) {
    field = ReflectionUtils.findField(declaringClass, name);
    if (field == null) {
      // Same lenient fallback checking as in CachedIntrospectionResults...
      field = ReflectionUtils.findField(declaringClass, StringUtils.uncapitalize(name));
      if (field == null) {
        field = ReflectionUtils.findField(declaringClass, StringUtils.capitalize(name));
      }
    }
  }
  return field;
}
origin: org.springframework/spring-core

@Nullable
private Field getField() {
  String name = getName();
  if (!StringUtils.hasLength(name)) {
    return null;
  }
  Field field = null;
  Class<?> declaringClass = declaringClass();
  if (declaringClass != null) {
    field = ReflectionUtils.findField(declaringClass, name);
    if (field == null) {
      // Same lenient fallback checking as in CachedIntrospectionResults...
      field = ReflectionUtils.findField(declaringClass, StringUtils.uncapitalize(name));
      if (field == null) {
        field = ReflectionUtils.findField(declaringClass, StringUtils.capitalize(name));
      }
    }
  }
  return field;
}
origin: camunda/camunda-bpm-platform

private Field getField() {
  String name = getName();
  if (!StringUtils.hasLength(name)) {
    return null;
  }
  Class<?> declaringClass = declaringClass();
  Field field = ReflectionUtils.findField(declaringClass, name);
  if (field == null) {
    // Same lenient fallback checking as in CachedIntrospectionResults...
    field = ReflectionUtils.findField(declaringClass,
        name.substring(0, 1).toLowerCase() + name.substring(1));
    if (field == null) {
      field = ReflectionUtils.findField(declaringClass,
          name.substring(0, 1).toUpperCase() + name.substring(1));
    }
  }
  return field;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

@Nullable
private Field getField() {
  String name = getName();
  if (!StringUtils.hasLength(name)) {
    return null;
  }
  Field field = null;
  Class<?> declaringClass = declaringClass();
  if (declaringClass != null) {
    field = ReflectionUtils.findField(declaringClass, name);
    if (field == null) {
      // Same lenient fallback checking as in CachedIntrospectionResults...
      field = ReflectionUtils.findField(declaringClass, StringUtils.uncapitalize(name));
      if (field == null) {
        field = ReflectionUtils.findField(declaringClass, StringUtils.capitalize(name));
      }
    }
  }
  return field;
}
origin: philwebb/springfaces

public boolean isRequired(UIComponent component) {
  ELContext elContext = DefaultComponentInfo.this.context.getELContext();
  ValueExpression expression = component.getValueExpression("value");
  Property property = ELUtils.getProperty(expression, elContext);
  if (property == null) {
    return false;
  }
  BeanDescriptor beanConstraints = this.validator.getConstraintsForClass(property.getObjectType());
  PropertyDescriptor propertyConstraints = beanConstraints.getConstraintsForProperty(property.getName());
  return isRequired(propertyConstraints.getConstraintDescriptors());
}
org.springframework.core.convertPropertygetName

Javadoc

The name of the property: e.g. 'foo'

Popular methods of Property

  • <init>
  • getObjectType
    The object declaring this property, either directly or in a superclass the object extends.
  • declaringClass
  • getAnnotations
  • getField
  • getMethodParameter
  • getReadMethod
    The property getter method: e.g. getFoo()
  • getType
    The property type: e.g. java.lang.String
  • getWriteMethod
    The property setter method: e.g. setFoo(String)
  • resolveAnnotations
  • resolveMethodParameter
  • resolveName
  • resolveMethodParameter,
  • resolveName,
  • resolveParameterType,
  • resolveReadMethodParameter,
  • resolveWriteMethodParameter,
  • addAnnotationsToMap

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top plugins for WebStorm
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