Examples of SimpleType


Examples of com.codereligion.hammock.compiler.model.simple.SimpleType

        final LoadingCache<TypeElement, Type> cache = CacheBuilder.newBuilder().build(new CacheLoader<TypeElement, Type>() {

            @Override
            public Type load(TypeElement typeElement) throws Exception {
                return new SimpleType(new StringName(typeElement.getQualifiedName() + "_"));
            }

        });

        for (TypeElement annotation : annotations) {
View Full Code Here

Examples of com.eviware.soapui.impl.wadl.inference.schema.types.SimpleType

    public static Type parse( TypeConfig xml, Schema schema )
    {
      if( xml instanceof TypeReferenceConfig )
        return new TypeReferenceType( ( TypeReferenceConfig )xml, schema );
      if( xml instanceof SimpleTypeConfig )
        return new SimpleType( ( SimpleTypeConfig )xml, schema );
      if( xml instanceof EmptyTypeConfig )
        return new EmptyType( ( EmptyTypeConfig )xml, schema );
      if( xml instanceof CustomTypeConfig )
        return new CustomType( ( CustomTypeConfig )xml, schema );
      return null;
View Full Code Here

Examples of com.mysema.codegen.model.SimpleType

                String entityName = ((OneToMany)collection.getElement()).getReferencedEntityName();
                if (entityName != null) {
                    if (collection.isMap()) {
                        Type keyType = typeFactory.get(Class.forName(propertyType.getParameters().get(0).getFullName()));
                        Type valueType = typeFactory.get(Class.forName(entityName));
                        propertyType = new SimpleType(propertyType,
                                normalize(propertyType.getParameters().get(0), keyType),
                                normalize(propertyType.getParameters().get(1), valueType));
                    } else {
                        Type componentType = typeFactory.get(Class.forName(entityName));
                        propertyType = new SimpleType(propertyType,
                                normalize(propertyType.getParameters().get(0), componentType));
                    }
                }
            } else if (collection.getElement() instanceof Component) {
                Component component = (Component)collection.getElement();
View Full Code Here

Examples of com.nexirius.util.simpletype.SimpleType

        TextToken token = TextToken.nextToken(in);

        if (token.isString()) {
            String value = token.getString();
            SimpleType v = getSimpleType().duplicate();

            v.set(value);

            assignValue(v);
        } else {
            throw new Exception("Expecting String literal (field value) but have:" + token);
        }
View Full Code Here

Examples of com.strobel.decompiler.languages.java.ast.SimpleType

                if (_astBuilder != null) {
                    annotation.setType(_astBuilder.convertType(annotationType));
                }
                else {
                    annotation.setType(new SimpleType(annotationType.getSimpleName()));
                }

                node.getAnnotations().add(annotation);
                break;
            }
View Full Code Here

Examples of com.sun.xml.bind.v2.schemagen.xmlschema.SimpleType

        /**
         * writes the schema definition for the specified type-safe enum in the given TypeHost
         */
        private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) {
            SimpleType st = th.simpleType();
            writeName(e,st);

            SimpleRestrictionModel base = st.restriction();
            writeTypeRef(base, e.getBaseType(), "base");

            for (EnumConstant c : e.getConstants()) {
                base.enumeration().value(c.getLexicalValue());
            }
            st.commit();
        }
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.schemagen.xmlschema.SimpleType

        /**
         * writes the schema definition for the specified type-safe enum in the given TypeHost
         */
        private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) {
            SimpleType st = th.simpleType();
            writeName(e,st);

            SimpleRestrictionModel base = st.restriction();
            writeTypeRef(base, e.getBaseType(), "base");

            for (EnumConstant c : e.getConstants()) {
                base.enumeration().value(c.getLexicalValue());
            }
            st.commit();
        }
View Full Code Here

Examples of gnu.xml.validation.datatype.SimpleType

    String attrName = getAttribute(attrs, "name");
    String attrNamespace = getAttribute(attrs, "targetNamespace");
    String ref = getAttribute(attrs, "ref");
    String use = getAttribute(attrs, "use");
    String type = getAttribute(attrs, "type");
    SimpleType datatype = (type == null) ? null :
      parseSimpleType(asQName(type, node));
    Annotation annotation = null;
    for (Node child = node.getFirstChild(); child != null;
         child = child.getNextSibling())
      {
View Full Code Here

Examples of javaff.data.strips.SimpleType

  private void buildTypeSets() // builds typeSets for easy access of all the objects of a particular type
  {
    Iterator tit = types.iterator();
    while (tit.hasNext())
    {
      SimpleType st = (SimpleType) tit.next();
      Set s = new HashSet();
      typeSets.put(st, s);

      Iterator oit = objects.iterator();
      while (oit.hasNext())
View Full Code Here

Examples of javax.management.openmbean.SimpleType

         oos.writeObject(types[i]);
   
         // Deserialize it
         ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
         ObjectInputStream ois = new ObjectInputStream(bais);
         SimpleType result = (SimpleType) ois.readObject();

         assertTrue("Should resolve to same object after serialization " + types[i], types[i] == result);
      }
   }
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.