Examples of addSupertype()


Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor.addSuperType()

        if (type.getDescriptor() != null)
        {
            descriptor =
                new SimpleProcessingElementDescriptor(
                        null, TypeUtilities.cloneDescriptor(type.getDescriptor()), null);
            descriptor.addSuperType(mExecutionState.getNamespaceManager().resolve(text));
        }
        mType = new ProcessingElementTypeType(descriptor);
    }
   
    @Override
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor.addSuperType()

        SimpleProcessingElementDescriptor descriptor = null;
        if (type.getDescriptor() != null)
        {
            descriptor =
                new SimpleProcessingElementDescriptor(null, type.getDescriptor(), null);
            descriptor.addSuperType(
                    mExecutionState.getNamespaceManager().resolve(text));
        }
        mType = new ProcessingElementTypeType(descriptor);
    }
   
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor.addSuperType()

                    null);
        if (mSupertype != null)
        {
            String qName =
                mExecutionState.getNamespaceManager().resolve(mSupertype);
            descriptor.addSuperType(qName);
        }
        return descriptor;
    }
   
    private Graph getGraph()
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor.addSuperType()

                descriptor.getName(),
                inputCopy,
                outputCopy);
        for (String supertype : descriptor.getSuperType())
        {
            result.addSuperType(supertype);
        }
        return result;
    }
   
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor.addSuperType()

        SimpleProcessingElementDescriptor desc =
            new SimpleProcessingElementDescriptor(
                    name,
                    TypeUtilities.cloneDescriptor(supertype.getDescriptor()),
                    null);
        desc.addSuperType(supertype.getName());
        mDescriptor = desc;
    }

    public CompositeProcessingElement getImplementation()
    {
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor.addSuperType()

        SimpleProcessingElementDescriptor descriptor = null;
        if (type.getDescriptor() != null)
        {
            descriptor =
                new SimpleProcessingElementDescriptor(null, type.getDescriptor(), null);
            descriptor.addSuperType(mExecutionState.getNamespaceManager().resolve(text));
        }
        mType = new ProcessingElementTypeType(descriptor);
    }
   
    public void declareArray(int dimension)
View Full Code Here

Examples of org.apache.tika.mime.MediaTypeRegistry.addSuperType()

          throw new KarmaException("Unable to parse stream: "
              + e.getMessage());
        }
        MediaTypeRegistry registry = MimeTypes.getDefaultMimeTypes()
            .getMediaTypeRegistry();
        registry.addSuperType(new MediaType("text", "csv"), new MediaType(
            "text", "plain"));
        MediaType parsedType = MediaType.parse(metadata
            .get(Metadata.CONTENT_TYPE));
   
        if (registry.isSpecializationOf(registry.normalize(type), registry
View Full Code Here

Examples of org.drools.compiler.lang.descr.TypeDeclarationDescr.addSuperType()

                        TypeDeclarationDescr tempDescr = new TypeDeclarationDescr();
                        tempDescr.setNamespace(typeDescr.getNamespace());
                        tempDescr.setFields(typeDescr.getFields());
                        tempDescr.setType(target,
                                          typeDescr.getNamespace());
                        tempDescr.addSuperType(typeDescr.getType());
                        TypeDeclaration tempDeclr = new TypeDeclaration(target);
                        tempDeclr.setKind(TypeDeclaration.Kind.TRAIT);
                        tempDeclr.setTypesafe(type.isTypesafe());
                        tempDeclr.setNovel(true);
                        tempDeclr.setTypeClassName(tempDescr.getType().getFullName());
View Full Code Here

Examples of org.drools.compiler.lang.descr.TypeDeclarationDescr.addSuperType()

            TypeDeclarationDescr tdescr = (TypeDeclarationDescr) typeDescr;
            if (tdescr.getSuperTypes().size() > 1) {
                kbuilder.addBuilderResult(new TypeDeclarationError( typeDescr, "Declared class " + fullName + "  - has more than one supertype;" ) );
                return null;
            } else if ( tdescr.getSuperTypes().isEmpty() ) {
                tdescr.addSuperType("java.lang.Object");
            }
        }

        AnnotationDescr traitableAnn = typeDescr.getAnnotation(Traitable.class.getSimpleName());
        boolean traitable = traitableAnn != null;
View Full Code Here

Examples of org.drools.compiler.lang.descr.TypeDeclarationDescr.addSuperType()

            TypeDeclarationDescr tdescr = (TypeDeclarationDescr) typeDescr;
            if (tdescr.getSuperTypes().size() > 1) {
                this.results.add(new TypeDeclarationError(typeDescr, "Declared class " + fullName + "  - has more than one supertype;"));
                return;
            } else if (tdescr.getSuperTypes().isEmpty()) {
                tdescr.addSuperType("java.lang.Object");
            }
        }

        AnnotationDescr traitableAnn = typeDescr.getAnnotation(Traitable.class.getSimpleName());
        boolean traitable = traitableAnn != null;
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.