congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
de.smartics.properties.spi.core.metadata
Code IndexAdd Tabnine to your IDE (free)

How to use de.smartics.properties.spi.core.metadata

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

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

private void addDocumentProxy(final Builder builder, final Method method,
  final PropertyKey key)
{
 final DocumentMetaDataProxy proxy =
   new MetaInfDocumentMetaDataProxy(key, context, method);
 builder.with(proxy);
}
origin: de.smartics.properties/smartics-properties-core

private static void addSecured(final Builder builder, final Method method)
{
 final boolean secured = readSecured(method);
 builder.setSecured(secured);
}
origin: de.smartics.properties/smartics-properties-core

private void addComments(final Builder builder)
{
 final PropertyCommentProxy commentProxy = new PropertyCommentProxy(context);
 builder.with(commentProxy);
}
origin: de.smartics.properties/smartics-properties-core

/**
 * Default constructor using the declaring and method type.
 *
 * @param type the type to extract default values for title, name and space.
 * @param propertyMethod the method to check for a property set annotation
 *          that overrides the one of the type.
 * @throws NullPointerException if {@code type} is <code>null</code>.
 */
public PropertyMetaDataDefaults(final Class<?> type,
  final Method propertyMethod) throws NullPointerException
{
 this.space = createSpace(type);
 this.title = determineTitle(type, propertyMethod);
 this.name = determineName(type, propertyMethod);
}
origin: de.smartics.properties/smartics-properties-core

@SuppressWarnings({ RAWTYPES, UNCHECKED })
private static void addValueRange(final Builder builder, final Method method)
{
 final PropertyValueRange<?> valueRange = calculateValueRange(method);
 if (valueRange != null)
 {
  builder.with(valueRange);
  final PropertyRangeConstraint<?> constraint =
    new PropertyRangeConstraint(valueRange);
  builder.add(constraint);
 }
}
origin: de.smartics.properties/smartics-properties-core

/**
 * Default constructor using the method and adding the name of the method.
 *
 * @param propertyMethod the method to derive default values.
 */
public PropertyMetaDataDefaults(final Method propertyMethod)
{
 final Class<?> type = propertyMethod.getDeclaringClass();
 this.space = createSpace(type);
 this.title = determinePropertyTitle(type, propertyMethod);
 this.name = determinePropertyName(type, propertyMethod);
}
origin: de.smartics.properties/smartics-properties-core

/**
 * Reads the property key information from the method.
 *
 * @param method the method to read the property key.
 * @return the property key provided by this method.
 */
public PropertyKey readKey(final Method method)
{
 final String set = readPropertySetName(method);
 final String name = readPropertyKeyName(method);
 return PropertyKey.create(set, name);
}
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

private void addCategories(final Builder builder, final Method method)
{
 final List<Class<?>> categories = readCategories(method);
 if (!categories.isEmpty())
 {
  final PropertyCategories.Builder catBuilder =
    new PropertyCategories.Builder();
  for (final Class<?> category : categories)
  {
   catBuilder.with(category);
  }
  final PropertyCategories propertyCategories = catBuilder.build();
  builder.with(propertyCategories);
 }
}
origin: de.smartics.properties/smartics-properties-core

/**
 * Convenience constructor to generate property descriptors without comments.
 *
 * @return the created parser instance.
 */
public static PropertyMetaDataParser createWithoutContextAccess()
{
 return new PropertyMetaDataParser(null);
}
origin: de.smartics.properties/smartics-properties-core

@Override
public PropertyComment getComment(final Locale locale)
{
 return commentProxy.getComment(this, locale);
}
origin: de.smartics.properties/smartics-properties-core

@Override
public DocumentName getDocumentName()
{
 return documentMetaDataProxy.getDocumentName();
}
origin: de.smartics.properties/smartics-properties-core

@Override
public PropertyProjectdoc getDocumentMetaData(final Locale locale)
{
 return documentMetaDataProxy.getProjectdocProperty(this, locale);
}
origin: de.smartics.properties/smartics-properties-core

@Override
public PropertySetProjectdoc getDocumentMetaDataProjectSet(final Locale locale)
{
 return documentMetaDataProxy.getProjectdocPropertySet(this, locale);
}
origin: de.smartics.properties/smartics-properties-core

@Override
public PropertyProjectdoc getDocumentMetaData()
{
 return getDocumentMetaData(null);
}
origin: de.smartics.properties/smartics-properties-core

@Override
public PropertySetProjectdoc getDocumentMetaDataProjectSet()
{
 return getDocumentMetaDataProjectSet(null);
}
origin: de.smartics.properties/smartics-properties-core

@Override
public PropertyComment getComment()
{
 return getComment(null);
}
origin: de.smartics.properties/smartics-properties-core

private static PropertyType readType(final Method method)
{
 final Class<?> type = method.getReturnType();
 final Class<?> subType = determineSubType(method);
 return new PropertyType(type, subType);
}
origin: de.smartics.properties/smartics-properties-core

/**
 * Default constructor using the declaring type. The default lack the method
 * name specifics.
 *
 * @param type the type to extract default values for title, name and space.
 * @throws NullPointerException if {@code type} is <code>null</code>.
 */
public PropertyMetaDataDefaults(final Class<?> type)
 throws NullPointerException
{
 this.space = createSpace(type);
 final PropertySet annotation = type.getAnnotation(PropertySet.class);
 this.title = annotation != null ? annotation.value() : type.getSimpleName();
 this.name = this.title;
}
origin: de.smartics.properties/smartics-properties-core

/**
 * Convenience constructor to generate property descriptors with access to
 * property comments.
 *
 * @param context the context to access comment information for properties.
 * @return the created parser instance.
 * @throws NullPointerException if {@code context} is <code>null</code>.
 */
public static PropertyMetaDataParser create(final PropertiesContext context)
 throws NullPointerException
{
 Arg.checkNotNull("context", context);
 return new PropertyMetaDataParser(context);
}
de.smartics.properties.spi.core.metadata

Most used classes

  • PropertyMetaDataParser
    Parses runtime annotations to create property metadata.
  • PropertyMetaDataDefaults
    Implementation to provide defaults from the project set annotation.
  • ProjectdocAnnotationCollector
    Collects annotation information on QDox structures.
  • DocumentMetaDataProxy
    Allows to lazy load annotation information.
  • MetaInfDocumentMetaDataProxy
    Allows to lazy load annotation information.
  • PropertyCommentProxy,
  • PropertyMetaData$Builder,
  • PropertyMetaData,
  • CommentException,
  • PropertyCommentParser,
  • AbstractAnnotationCollector,
  • AnnotationHelper,
  • MetaDataException,
  • ProjectdocAnnotationCollector$Defaults,
  • ProjectdocMetaDataParser$ParserContext,
  • ProjectdocMetaDataParser,
  • PropertyProjectdocParser,
  • PropertySetProjectdocParser
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