congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PropertyMetaDataParser.readDescriptor
Code IndexAdd Tabnine to your IDE (free)

How to use
readDescriptor
method
in
de.smartics.properties.spi.core.metadata.PropertyMetaDataParser

Best Java code snippets using de.smartics.properties.spi.core.metadata.PropertyMetaDataParser.readDescriptor (Showing top 4 results out of 315)

origin: de.smartics.properties/smartics-properties-report

private PropertyDescriptor readDescriptor(final PropertyReport report,
  final Class<?> type, final JavaMethod javaMethod,
  final PropertyMetaDataParser metaDataParser)
{
 final String methodName = javaMethod.getName();
 final Method method = getMethod(report, type, methodName);
 final PropertyDescriptor descriptor = metaDataParser.readDescriptor(method);
 return descriptor;
}
origin: de.smartics.properties/smartics-properties-core

/**
 * Reads the property descriptor information from the type.
 *
 * @param propertySetType the type to read the property descriptor.
 * @return the property descriptor provided by the methods of the type.
 * @throws NullPointerException if {@code propertySetType} is
 *           <code>null</code>.
 * @throws IllegalArgumentException if {@code propertySetType} is not
 *           annotated with {@link PropertySet}.
 */
public List<PropertyDescriptor> readDescriptors(final Class<?> propertySetType)
 throws NullPointerException, IllegalArgumentException
{
 Arg.checkNotNull("propertySetType", propertySetType);
 PropertyUtils.checkPropertySetType(propertySetType);
 final Method[] methods = propertySetType.getMethods();
 final List<PropertyDescriptor> descriptors =
   new ArrayList<PropertyDescriptor>(methods.length);
 for (final Method method : methods)
 {
  if (PropertyUtils.isPropertyMethod(method))
  {
   final PropertyDescriptor descriptor = readDescriptor(method);
   descriptors.add(descriptor);
  }
 }
 return descriptors;
}
origin: de.smartics.properties/smartics-properties-core

private void addPropertyDescriptors(final Class<?> propertySetType,
  final List<DuplicatePropertyDeclarationException> exceptions)
{
 final Method[] methods = propertySetType.getMethods();
 final PropertiesContext context =
   configurationRegistry.get(propertySetType);
 if (context == null)
 {
  LOG.warn("No context found for property set '"
       + propertySetType.getName() + "'. Skipped.");
  return;
 }
 final PropertyMetaDataParser propertyMetaDataParser =
   PropertyMetaDataParser.create(context);
 for (final Method method : methods)
 {
  if (PropertyUtils.isPropertyMethod(method))
  {
   final PropertyDescriptor descriptor =
     propertyMetaDataParser.readDescriptor(method);
   addDescriptor(propertySetType, descriptor, exceptions);
  }
 }
}
origin: de.smartics.properties/smartics-properties-config

return parser.readDescriptor(propertyMethod);
de.smartics.properties.spi.core.metadataPropertyMetaDataParserreadDescriptor

Javadoc

Reads the property descriptor information from the method.

Popular methods of PropertyMetaDataParser

  • create
    Convenience constructor to generate property descriptors with access to property comments.
  • readKey
    Reads the property key information from the method.
  • readPropertySetName
  • <init>
    Default constructor to generate property descriptors with comments.
  • addCategories
  • addCategoriesFromAnnotation
  • addComments
  • addConstraints
  • addDocumentProxy
  • addExpression
  • addLifecycle
  • addSecured
  • addLifecycle,
  • addSecured,
  • addUseType,
  • addValueRange,
  • calcElementConstraintMethod,
  • calcElementConstraints,
  • calcElementType,
  • calcElementsConstraintsType,
  • calcPropertyName

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTable (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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