Examples of AnnotationType


Examples of org.hibernate.validation.xml.AnnotationType

      returnValue = convertStringToReturnType( returnType, value );
    }
    else if ( serializable instanceof JAXBElement && ( ( JAXBElement ) serializable ).getDeclaredType()
        .equals( AnnotationType.class ) ) {
      JAXBElement<?> elem = ( JAXBElement<?> ) serializable;
      AnnotationType annotationType = ( AnnotationType ) elem.getValue();
      try {
        @SuppressWarnings("unchecked")
        Class<Annotation> annotationClass = ( Class<Annotation> ) returnType;
        returnValue = createAnnotation( annotationType, annotationClass );
      }
View Full Code Here

Examples of org.hibernate.validator.ap.util.ConstraintHelper.AnnotationType

   * @return The checks to be performed to validate the given annotation at
   *         the given element.
   */
  public ConstraintChecks getConstraintChecks(Element annotatedElement, AnnotationMirror annotation) {

    AnnotationType annotationType = constraintHelper.getAnnotationType( annotation );

    switch ( annotatedElement.getKind() ) {
      case FIELD:
        return fieldChecks.get( annotationType );
      case METHOD:
View Full Code Here

Examples of org.hibernate.validator.ap.util.ConstraintHelper.AnnotationType

   * @return The checks to be performed to validate the given annotation at
   *         the given element.
   */
  public ConstraintChecks getConstraintChecks(Element annotatedElement, AnnotationMirror annotation) {

    AnnotationType annotationType = constraintHelper.getAnnotationType( annotation );

    switch ( annotatedElement.getKind() ) {
      case FIELD:
        return fieldChecks.get( annotationType );
      case METHOD:
View Full Code Here

Examples of org.hibernate.validator.ap.util.ConstraintHelper.AnnotationType

   * @return The checks to be performed to validate the given annotation at
   *         the given element.
   */
  public ConstraintChecks getConstraintChecks(Element annotatedElement, AnnotationMirror annotation) {

    AnnotationType annotationType = constraintHelper.getAnnotationType( annotation );

    switch ( annotatedElement.getKind() ) {
      case FIELD:
        return fieldChecks.get( annotationType );
      case METHOD:
View Full Code Here

Examples of org.hibernate.validator.ap.util.ConstraintHelper.AnnotationType

   * @return The checks to be performed to validate the given annotation at
   *         the given element.
   */
  public ConstraintChecks getConstraintChecks(Element annotatedElement, AnnotationMirror annotation) {

    AnnotationType annotationType = constraintHelper.getAnnotationType( annotation );

    switch ( annotatedElement.getKind() ) {
      case FIELD:
        return fieldChecks.get( annotationType );
      case METHOD:
View Full Code Here

Examples of org.jboss.as.weld.discovery.AnnotationType

    public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();

        if (deploymentUnit.getParent() == null) {
            //register resource, provider and application as CDI annotation defining types
            deploymentUnit.addToAttachmentList(WeldAttachments.INJECTION_TARGET_DEFINING_ANNOTATIONS, new AnnotationType(JaxrsAnnotations.PROVIDER.getDotName(), false));
            deploymentUnit.addToAttachmentList(WeldAttachments.INJECTION_TARGET_DEFINING_ANNOTATIONS, new AnnotationType(JaxrsAnnotations.PATH.getDotName(), false));
        }

        final CompositeIndex index = deploymentUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX);
        for (final JaxrsAnnotations annotation : JaxrsAnnotations.values()) {
            if (!index.getAnnotations(annotation.getDotName()).isEmpty()) {
View Full Code Here

Examples of org.jboss.as.weld.discovery.AnnotationType

        final CompositeIndex index = deploymentUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX);

        // CDI built-in normal scopes plus @Dependent
        addAnnotations(deploymentUnit, CdiAnnotations.BEAN_DEFINING_ANNOTATIONS);
        // CDI @Model stereotype
        addAnnotation(deploymentUnit, new AnnotationType(CdiAnnotations.MODEL.getDotName(), false));
        // EE7 built-in normal scopes and stereotypes
        addAnnotation(deploymentUnit, new AnnotationType(TransactionScoped.class));
        addAnnotation(deploymentUnit, new AnnotationType(VIEW_SCOPED_NAME, true));
        addAnnotation(deploymentUnit, new AnnotationType(FLOW_SCOPED_NAME, true));

        for (AnnotationType annotationType : CdiAnnotations.BEAN_DEFINING_META_ANNOTATIONS) {
            addAnnotations(deploymentUnit, getAnnotationsAnnotatedWith(index, annotationType.getName()));
        }
    }
View Full Code Here

Examples of org.mitre.medfacts.i2b2.annotation.AnnotationType

    return tempZoneAnnotationList;
  }

  public AnnotationType getAnnotationTypeFromFilename(String currentFilename)
  {
    AnnotationType currentAnnotationType = null;
    if (currentFilename.endsWith(Constants.FILE_EXTENSION_CONCEPT_FILE))
    {
      currentAnnotationType = AnnotationType.CONCEPT;
    } else if (currentFilename.endsWith(Constants.FILE_EXTENSION_ASSERTION_FILE))
    {
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMStoreDaoImpl.AnnotationType

     * @return AnnotationType, maybe null
     */
    private AnnotationType getAnnotationType(final KAMStore kAMStore,
            final Kam kam, final String name) throws KAMStoreException {

        AnnotationType annoType = null;
        List<BelDocumentInfo> belDocs =
                kAMStore.getBelDocumentInfos(kam.getKamInfo());
        //loop through all BEL documents used for this KAM
        for (BelDocumentInfo doc : belDocs) {
            //check annotation type on each document
View Full Code Here

Examples of org.openbel.framework.common.enums.AnnotationType

            } else {
                // defined in-line
                this.description = belAnnotationDefinition.getDescription();
                this.usage = belAnnotationDefinition.getUsage();

                AnnotationType type = belAnnotationDefinition.getType();
                if (type == null) {
                    throw new InvalidArgument("annotation type is null");
                }

                this.annotationType =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.