Codota Logo
AnnotationDescr.getValues
Code IndexAdd Codota to your IDE (free)

How to use
getValues
method
in
org.drools.lang.descr.AnnotationDescr

Best Java code snippets using org.drools.lang.descr.AnnotationDescr.getValues (Showing top 4 results out of 315)

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

protected void processMetadataAnnotations(Pattern pattern, Map<String, AnnotationDescr> annotationMap) {
  for ( String key : annotationMap.keySet() ) {
    if ( ! Pattern.ATTR_LISTENED_PROPS.equals( key ) ) {
      AnnotationDescr ann = annotationMap.get( key );
      AnnotationDefinition def = new AnnotationDefinition( key );
      for ( String propKey : ann.getValues().keySet() ) {
        def.getValues().put( propKey, new AnnotationDefinition.AnnotationPropertyVal( propKey, null, ann.getValue( propKey ), null ) );
      }
      pattern.getAnnotations().put( key, def );
    }
  }        
}
origin: org.drools/droolsjbpm-ide-common

AnnotationDescr annotation = typeDeclarationDescr.getAnnotation( annotationName );
annotations.put( annotationName,
         annotation.getValues() );
origin: org.chtijbug.drools/droolsjbpm-ide-common

AnnotationDescr annotation = typeDeclarationDescr.getAnnotation( annotationName );
annotations.put( annotationName,
         annotation.getValues() );
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void buildMetaAttributes(final RuleBuildContext context ) {
  Rule rule = context.getRule();
  for ( String metaAttr : context.getRuleDescr().getAnnotationNames() ) {
    AnnotationDescr ad = context.getRuleDescr().getAnnotation( metaAttr );
    if ( ad.hasValue() ) {
      if ( ad.getValues().size() == 1 ) {
        rule.addMetaAttribute( metaAttr,
                    resolveValue( ad.getSingleValue() ) );
      } else {
        rule.addMetaAttribute( metaAttr,
                    ad.getValueMap() );
      }
    } else {
      rule.addMetaAttribute( metaAttr,
                  null );
    }
  }
}
org.drools.lang.descrAnnotationDescrgetValues

Popular methods of AnnotationDescr

  • <init>
  • getName
  • getSingleValue
  • getSingleValueStripped
  • getValue
  • getValueMap
  • hasValue
  • setKeyValue
  • setValue
  • unquote

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • 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