Examples of Model


Examples of com.sun.jdo.api.persistence.model.Model

     * <code>pcClass</code>.
     * @param pcClass The persistence capable class.
     * @return A new instance of ClassDesc.
     */
    static ClassDesc newInstance(Class pcClass) {
        Model model = Model.RUNTIME;
        String className = pcClass.getName();
        ClassLoader classLoader = pcClass.getClassLoader();
        ClassDesc rc = null;

        try {
            MappingClassElement mdConfig =
               model.getMappingClass(className, classLoader);

            // Validate the model information for this class.
            validateModel(model, className, classLoader);

            rc = new ClassDesc(mdConfig, pcClass);
View Full Code Here

Examples of com.sun.tools.internal.ws.processor.model.Model

                //if(options.authFile != null)
                    Authenticator.setDefault(new DefaultAuthenticator(receiver, options.authFile));


                WSDLModeler wsdlModeler = new WSDLModeler(options, receiver);
                Model wsdlModel = wsdlModeler.buildModel();
                if (wsdlModel == null) {
                    listener.message(WsdlMessages.PARSING_PARSE_FAILED());
                    return false;
                }
View Full Code Here

Examples of com.sun.tools.internal.xjc.model.Model

        this.codeModel = _codeModel;
        this.errorReceiver = new ErrorReceiverFilter(er);
    }

    private Model load() {
        Model grammar;

        if(!sanityCheck())
            return null;


        try {
            switch (opt.getSchemaLanguage()) {
            case DTD :
                // TODO: make sure that bindFiles,size()<=1
                InputSource bindFile = null;
                if (opt.getBindFiles().length > 0)
                    bindFile = opt.getBindFiles()[0];
                // if there is no binding file, make a dummy one.
                if (bindFile == null) {
                    // if no binding information is specified, provide a default
                    bindFile =
                        new InputSource(
                            new StringReader(
                                "<?xml version='1.0'?><xml-java-binding-schema><options package='"
                                    + (opt.defaultPackage==null?"generated":opt.defaultPackage)
                                    + "'/></xml-java-binding-schema>"));
                }

                checkTooManySchemaErrors();
                grammar = loadDTD(opt.getGrammars()[0], bindFile );
                break;

            case RELAXNG :
                checkTooManySchemaErrors();
                grammar = loadRELAXNG();
                break;

            case RELAXNG_COMPACT :
                checkTooManySchemaErrors();
                grammar = loadRELAXNGCompact();
                break;

            case WSDL:
                grammar = annotateXMLSchema( loadWSDL() );
                break;

            case XMLSCHEMA:
                grammar = annotateXMLSchema( loadXMLSchema() );
                break;

            default :
                throw new AssertionError(); // assertion failed
            }

            if (errorReceiver.hadError()) {
                grammar = null;
            } else {
                grammar.setPackageLevelAnnotations(opt.packageLevelAnnotations);
            }

            return grammar;

        } catch (SAXException e) {
View Full Code Here

Examples of com.sun.tools.ws.processor.model.Model

       
        try {
            parseArguments(args, listener, receiver);

            try {
                Model wsdlModel = buildWsdlModel(listener, receiver);
                if (wsdlModel == null)
                   return false;

                if (!generateCode(listener, receiver, wsdlModel, true))
                   return false;
View Full Code Here

Examples of com.sun.tools.xjc.model.Model

                                                e );
        }

        ErrorReceiver errorReceiver = new JaxbErrorReceiver4Drools();

        Model model = ModelLoader.load( xjcOpts,
                                        new JCodeModel(),
                                        errorReceiver );

        model.generateCode( xjcOpts, errorReceiver );

        MapVfsCodeWriter codeWriter = new MapVfsCodeWriter();
        model.codeModel.build( xjcOpts.createCodeWriter( codeWriter ) );

        List<String> classNames = new ArrayList<String>();
View Full Code Here

Examples of com.sun.xml.rpc.spi.model.Model

        return generatedFiles;
    }

    private void setupServiceHandlerChain() {

        Model model = wscompile.getProcessor().getModel();

        Collection endpoints = webService.getEndpoints();
        for(Iterator eIter = endpoints.iterator(); eIter.hasNext();) {
            WebServiceEndpoint nextEndpoint = (WebServiceEndpoint) eIter.next();
View Full Code Here

Examples of com.szuppe.jakub.model.Model

  public static void main(String[] args)
  {
    // Kolejka blokująca dla widoku i kontrolera.
    final BlockingQueue<AppEvent> eventsBlockingQueue = new LinkedBlockingQueue<AppEvent>();
    // model
    final Model model = new Model();
    // widok
    final View view = new View(eventsBlockingQueue);
    // kontroler
    final Controller controller = new Controller(model, view, eventsBlockingQueue);
    // Uruchomienie.
View Full Code Here

Examples of com.thecrouchmode.graphics.Model

        }
      }
    }
   
    System.out.println("Level indices: " + indices.size());
    return new Model(
        Buffers.floatArrayFromList(data),
        Buffers.intArrayFromList(indices),
        Matrix4f.identity);
  }
View Full Code Here

Examples of com.tll.common.model.Model

        public void onEdit(EditEvent event) {
          Integer version;

          // mimic model persist life-cycle
          assert m != null;
          final Model mcopy = m.copy(mcrit);
          version = mcopy.getVersion();
          mcopy.setVersion(version == null ? 0 : version++);
          ArrayList<Model> alist = null;
          List<Model> existing;
          final RelatedManyProperty ap = mcopy.relatedMany("addresses");
          existing = ap.getModelList();
          if(existing != null) {
            alist = new ArrayList<Model>();
            for(final Model am : existing) {
              if(!am.isMarkedDeleted()) {
View Full Code Here

Examples of com.upgradingdave.link.checker.models.Model

    @Test
    public void findById(){

        Model<ID> model = testModels.get(0);
        Model result = getModelDao().findById(model.getId());
        assertEquals(model, 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.