Package org.apache.geronimo.xbeans.javaee6

Examples of org.apache.geronimo.xbeans.javaee6.PropertyType


                        resScope.setStringValue(annotation.shareable() ? "Shareable" : "Unshareable");

                        // mappedName
                        String mappdedNameAnnotation = annotation.mappedName();
                        if (!mappdedNameAnnotation.equals("")) {
                            XsdStringType mappedName = resourceRef.addNewMappedName();
                            mappedName.setStringValue(mappdedNameAnnotation);
                        }

                        // lookup
                        String lookup = annotation.lookup();
                        if (!lookup.equals("")) {
                            XsdStringType lookupName = resourceRef.addNewLookupName();
                            lookupName.setStringValue(lookup);
                        }
                    }
                    catch (Exception anyException) {
                        log.debug("ResourceRefBuilder: Exception caught while processing <resource-ref>");
                    }
View Full Code Here


            }

            // mappedName
            String mappdedNameAnnotation = annotation.mappedName();
            if (!mappdedNameAnnotation.equals("")) {
                XsdStringType mappedName = resourceEnvRef.addNewMappedName();
                mappedName.setStringValue(mappdedNameAnnotation);
            }
           
            // lookup
            String lookup = annotation.lookup();
            if (!lookup.equals("")) {
                XsdStringType lookupName = resourceEnvRef.addNewLookupName();
                lookupName.setStringValue(lookup);
            }
        }
View Full Code Here

            }

            // mappedName
            String mappdedNameAnnotation = annotation.mappedName();
            if (!mappdedNameAnnotation.equals("")) {
                XsdStringType mappedName = messageDestinationRef.addNewMappedName();
                mappedName.setStringValue(mappdedNameAnnotation);
            }
           
            // lookup
            String lookup = annotation.lookup();
            if (!lookup.equals("")) {
                XsdStringType lookupName = messageDestinationRef.addNewLookupName();
                lookupName.setStringValue(lookup);
            }
        }
View Full Code Here

        // persistence-context-properties
        PersistenceProperty[] properties = annotation.properties();
        for (PersistenceProperty property : properties) {
            PropertyType propertyType = persistenceContextRef.addNewPersistenceProperty();
            XsdStringType propertyName = propertyType.addNewName();
            propertyName.setStringValue(property.name());
            XsdStringType propertyValue = propertyType.addNewValue();
            propertyValue.setStringValue(property.value());
        }

        // injection targets
        if (method != null || field != null) {
            configureInjectionTarget(persistenceContextRef.addNewInjectionTarget(), method, field);
View Full Code Here

                        //------------------------------------------------------------------------------
                       
                        // mappedName
                        String mappdedNameAnnotation = annotation.mappedName();
                        if (!mappdedNameAnnotation.equals("")) {
                            XsdStringType mappedName = envEntry.addNewMappedName();
                            mappedName.setStringValue(mappdedNameAnnotation);
                        }

                        // description
                        String descriptionAnnotation = annotation.description();
                        if (!descriptionAnnotation.equals("")) {
                            DescriptionType description = envEntry.addNewDescription();
                            description.setStringValue(descriptionAnnotation);
                        }

                        // lookup
                        String lookup = annotation.lookup();
                        if (!lookup.equals("")) {
                            XsdStringType lookupName = envEntry.addNewLookupName();
                            lookupName.setStringValue(lookup);
                        }
                    }
                    catch (Exception anyException) {
                        log.debug("ResourceAnnotationHelper: Exception caught while processing <env-entry>");
                    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setProperty(PropertyType newProperty) {
    PropertyType oldProperty = property;
    property = newProperty == null ? PROPERTY_EDEFAULT : newProperty;
    boolean oldPropertyESet = propertyESet;
    propertyESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, _40Package.VALUE_TYPE__PROPERTY, oldProperty, property, !oldPropertyESet));
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void unsetProperty() {
    PropertyType oldProperty = property;
    boolean oldPropertyESet = propertyESet;
    property = PROPERTY_EDEFAULT;
    propertyESet = false;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.UNSET, _40Package.VALUE_TYPE__PROPERTY, oldProperty, PROPERTY_EDEFAULT, oldPropertyESet));
View Full Code Here

        }
        m_schemaType = schemaType;
        SchemaProperty[] elemTypes = m_schemaType.getElementProperties()[0].getType().getElementProperties();
        for ( int i = 0; i < elemTypes.length; i++ )
        {
            PropertyType propDesc = getPropertyDesc( metaDataDesc, elemTypes[i].getName() );
            m_propMetaDatas.put( elemTypes[i].getName(),
                    new XmlBeansResourcePropertyMetaData( elemTypes[i], propDesc ) );
        }
    }
View Full Code Here

      m_schemaType = schemaType;
      SchemaProperty[] elemTypes = m_schemaType.getElementProperties(  )[0].getType(  ).getElementProperties(  );
      for ( int i = 0; i < elemTypes.length; i++ )
      {
         PropertyType propDesc = getPropertyDesc( metaDataDesc,
                                                  elemTypes[i].getName(  ) );
         m_propMetaDatas.put( elemTypes[i].getName(  ),
                              new XmlBeansResourcePropertyMetaData( elemTypes[i], propDesc ) );
      }
   }
View Full Code Here

      m_schemaType = schemaType;
      SchemaProperty[] elemTypes = m_schemaType.getElementProperties(  )[0].getType(  ).getElementProperties(  );
      for ( int i = 0; i < elemTypes.length; i++ )
      {
         PropertyType propDesc = getPropertyDesc( metaDataDesc,
                                                  elemTypes[i].getName(  ) );
         m_propMetaDatas.put( elemTypes[i].getName(  ),
                              new XmlBeansResourcePropertyMetaData( elemTypes[i], propDesc ) );
      }
   }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.xbeans.javaee6.PropertyType

Copyright © 2018 www.massapicom. 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.