Package org.jboss.ws.metadata.wsdl.xmlschema

Examples of org.jboss.ws.metadata.wsdl.xmlschema.JBossXSSimpleTypeDefinition


         xt = ct;
      }
      else
      {
         XSSimpleTypeDefinition xstype = (new SchemaDVFactoryImpl()).getBuiltInType(localpart);
         xt = new JBossXSSimpleTypeDefinition(xstype);

      }
      return xt;
   }
View Full Code Here


   }

   private JBossXSTypeDefinition handleJAXRPCEnumeration(String name, String namespace, Class<?> javaType, Class<?> valueType)
   {
      JBossXSTypeDefinition enumType = generateType(null, valueType);
      JBossXSSimpleTypeDefinition simpleType = new JBossXSSimpleTypeDefinition();
      simpleType.setBaseType(enumType);
      simpleType.setName(name);
      simpleType.setNamespace(namespace);
      try
      {
         Method getValue = javaType.getMethod("getValue");
         for (Field field : javaType.getFields())
         {
            if (Modifier.isStatic(field.getModifiers()) && field.getType().equals(javaType))
            {
               Object ret = getValue.invoke(field.get(null));
               String item = SimpleTypeBindings.marshal(enumType.getName(), ret, new NamespaceRegistry());
               simpleType.addLexicalEnumeration(item);
            }
         }
      }
      catch (Exception e)
      {
View Full Code Here

         xt = ct;
      }
      else
      {
         XSSimpleTypeDefinition xstype = (new SchemaDVFactoryImpl()).getBuiltInType(localpart);
         xt = new JBossXSSimpleTypeDefinition(xstype);

      }
      return xt;
   }
View Full Code Here

   }

   private JBossXSTypeDefinition handleJAXRPCEnumeration(String name, String namespace, Class<?> javaType, Class<?> valueType)
   {
      JBossXSTypeDefinition enumType = generateType(null, valueType);
      JBossXSSimpleTypeDefinition simpleType = new JBossXSSimpleTypeDefinition();
      simpleType.setBaseType(enumType);
      simpleType.setName(name);
      simpleType.setNamespace(namespace);
      try
      {
         Method getValue = javaType.getMethod("getValue");
         for (Field field : javaType.getFields())
         {
            if (Modifier.isStatic(field.getModifiers()) && field.getType().equals(javaType))
            {
               Object ret = getValue.invoke(field.get(null));
               String item = SimpleTypeBindings.marshal(enumType.getName(), ret, new NamespaceRegistry());
               simpleType.addLexicalEnumeration(item);
            }
         }
      }
      catch (Exception e)
      {
View Full Code Here

         xt = ct;
      }
      else
      {
         XSSimpleTypeDefinition xstype = (new SchemaDVFactoryImpl()).getBuiltInType(localpart);
         xt = new JBossXSSimpleTypeDefinition(xstype);

      }
      return xt;
   }
View Full Code Here

         xt = ct;
      }
      else
      {
         XSSimpleTypeDefinition xstype = (new SchemaDVFactoryImpl()).getBuiltInType(localpart);
         xt = new JBossXSSimpleTypeDefinition(xstype);

      }
      return xt;
   }
View Full Code Here

   }

   private JBossXSTypeDefinition handleJAXRPCEnumeration(String name, String namespace, Class<?> javaType, Class<?> valueType)
   {
      JBossXSTypeDefinition enumType = generateType(null, valueType);
      JBossXSSimpleTypeDefinition simpleType = new JBossXSSimpleTypeDefinition();
      simpleType.setBaseType(enumType);
      simpleType.setName(name);
      simpleType.setNamespace(namespace);
      try
      {
         Method getValue = javaType.getMethod("getValue");
         for (Field field : javaType.getFields())
         {
            if (Modifier.isStatic(field.getModifiers()) && field.getType().equals(javaType))
            {
               Object ret = getValue.invoke(field.get(null));
               String item = SimpleTypeBindings.marshal(enumType.getName(), ret, new NamespaceRegistry());
               simpleType.addLexicalEnumeration(item);
            }
         }
      }
      catch (Exception e)
      {
View Full Code Here

   }

   private JBossXSTypeDefinition handleJAXRPCEnumeration(String name, String namespace, Class<?> javaType, Class<?> valueType)
   {
      JBossXSTypeDefinition enumType = generateType(null, valueType);
      JBossXSSimpleTypeDefinition simpleType = new JBossXSSimpleTypeDefinition();
      simpleType.setBaseType(enumType);
      simpleType.setName(name);
      simpleType.setNamespace(namespace);
      try
      {
         Method getValue = javaType.getMethod("getValue");
         for (Field field : javaType.getFields())
         {
            if (Modifier.isStatic(field.getModifiers()) && field.getType().equals(javaType))
            {
               Object ret = getValue.invoke(field.get(null));
               String item = SimpleTypeBindings.marshal(enumType.getName(), ret, new NamespaceRegistry());
               simpleType.addLexicalEnumeration(item);
            }
         }
      }
      catch (Exception e)
      {
View Full Code Here

/* 365 */       xt = ct;
/*     */     }
/*     */     else
/*     */     {
/* 369 */       XSSimpleTypeDefinition xstype = new SchemaDVFactoryImpl().getBuiltInType(localpart);
/* 370 */       xt = new JBossXSSimpleTypeDefinition(xstype);
/*     */     }
/*     */
/* 373 */     return xt;
/*     */   }
View Full Code Here

         xt = ct;
      }
      else
      {
         XSSimpleTypeDefinition xstype = (new SchemaDVFactoryImpl()).getBuiltInType(localpart);
         xt = new JBossXSSimpleTypeDefinition(xstype);

      }
      return xt;
   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.metadata.wsdl.xmlschema.JBossXSSimpleTypeDefinition

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.