Examples of type()


Examples of org.jboss.managed.api.annotation.ManagementObject.type()

      if (managementObject != null)
      {
         name = managementObject.name();
         if (name.length() == 0 || name.equals(ManagementConstants.GENERATED))
            name = classInfo.getName();
         nameType = managementObject.type();
         if (nameType.length() == 0)
            nameType = null;
         attachmentName = managementObject.attachmentName();
         if (attachmentName.length() == 0)
            attachmentName = classInfo.getName();
View Full Code Here

Examples of org.jboss.managed.api.annotation.ManagementObjectID.type()

               propAnnotations.put(ManagementProperty.class.getName(), managementProperty);
            if (id != null)
            {
               propAnnotations.put(ManagementObjectID.class.getName(), id);
               // This overrides the MO nameType
               nameType = id.type();
            }
            if (ref != null)
               propAnnotations.put(ManagementObjectRef.class.getName(), ref);
            if (runtimeRef != null)
               propAnnotations.put(ManagementRuntimeRef.class.getName(), runtimeRef);
View Full Code Here

Examples of org.jboss.managed.api.annotation.ManagementObjectRef.type()

               // The reference key is the prop value + ref.type()
               log.debug("Property("+prop.getName()+") references: "+ref);
               Object refName = getRefName(prop.getValue());
               if (refName == null)
                  refName = ref.name();
               String targetKey = refName + "/" + ref.type();
               ManagedObject target = moRegistry.get(targetKey);
               if (target != null)
               {
                  log.debug("Resolved property("+prop.getName()+") reference to: "+targetKey);
                  prop.setTargetManagedObject(target);
View Full Code Here

Examples of org.jboss.resteasy.specimpl.LinkBuilderImpl.type()

   public javax.ws.rs.core.Link toJaxrsLink()
   {
      javax.ws.rs.core.Link.Builder builder = new LinkBuilderImpl();
      builder.rel(getRelationship());
      builder.title(getTitle());
      builder.type(getType());
      builder.uri(getHref());
      for (Map.Entry<String, List<String>> entry : getExtensions().entrySet())
      {
         for (String val : entry.getValue())
         {
View Full Code Here

Examples of org.jboss.xb.annotations.JBossXmlAdaptedType.type()

      typeCache.put(typeInfo, typeBinding);

      JBossXmlAdaptedType adaptedType = typeInfo.getUnderlyingAnnotation(JBossXmlAdaptedType.class);
      if(adaptedType != null)
      {
         if(adaptedType.type() != JBossXmlConstants.DEFAULT.class)
            throw new JBossXBRuntimeException("@JBossXmlAdaptedType on a type must not specify type element: " + typeInfo.getName());
         adaptType(typeBinding, adaptedType);
      }

      // Determine any factory method
View Full Code Here

Examples of org.jboss.xb.annotations.JBossXmlAttribute.type()

               JBossXmlAttribute jbossXmlAttribute = property.getUnderlyingAnnotation(JBossXmlAttribute.class);
               // Determine the name
               QName qName = generateXmlName(property.getName(), attributeForm, xmlAttribute.namespace(), xmlAttribute.name());
               // Resolve the type
               TypeInfo attributeTypeInfo = property.getType();
               if (jbossXmlAttribute != null && jbossXmlAttribute.type() != Object.class)
                  attributeTypeInfo = attributeTypeInfo.getTypeInfoFactory().getTypeInfo(jbossXmlAttribute.type());
               TypeBinding attributeType = resolveTypeBinding(attributeTypeInfo);
               // Create the attribute handler
               AttributeHandler attributeHandler = new PropertyHandler(property, attributeTypeInfo);
               // Create the attributre and bind it to the type
View Full Code Here

Examples of org.jboss.xb.annotations.JBossXmlCollection.type()

         JBossXmlCollection xmlCol = property.getUnderlyingAnnotation(JBossXmlCollection.class);
         if (xmlCol != null)
         {
            // this is the type that should be analyzed
            propertyType = propertyType.getTypeInfoFactory().getTypeInfo(xmlCol.type());
         }
      }
      // Is this property bound to a model group
      else if (!property.getType().isPrimitive())
      {
View Full Code Here

Examples of org.jboss.xb.annotations.JBossXmlMapEntry.type()

         }

         // TODO: need to verify correct binding before proceeding
         boundQName = propertyQName;
      }
      else if(entryElement != null && !JBossXmlMapEntry.DEFAULT.class.equals(entryElement.type()))
      {
         if(!JBossXmlConstants.DEFAULT.equals(entryElement.name()))
         {
            String ns = entryElement.namespace();
            if(JBossXmlConstants.DEFAULT.equals(ns))
View Full Code Here

Examples of org.jbpm.designer.repository.impl.AssetBuilder.type()


        } else {
            builder = getAssetBuilder(Asset.AssetType.Text);
        }
        builder.type(asset.getAssetType())
                .name(asset.getName())
                .version(asset.getVersion())
                .location(asset.getAssetLocation())
                .uniqueId(asset.getUniqueId())
                .creationDate(asset.getCreationDate())
View Full Code Here

Examples of org.jclouds.compute.domain.VolumeBuilder.type()

      builder.size(1000f * Float.valueOf(disk.getSize()));
      // "Disk"'s are additional disks; they can't be booted disk(?)
      builder.bootDevice(false);
      builder.durable(true);
      builder.type(Volume.Type.SAN);
      builder.id("type: " + disk.getType() + " usage: " + disk.getUsage());

      return builder.build();
   }
}
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.