Examples of Model


Examples of org.blueoxygen.postila.entity.Model

    public void insertToModel(String name, String className, String order){
        LogInformation log = new LogInformation();
        log.setActiveFlag(1);
        log.setCreateDate(new Timestamp(System.currentTimeMillis()));
        log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
        Model mo = new Model();
        mo.setName(name);
        mo.setClassName(className);
        mo.setOrderValue(order);
        mo.setLogInformation(log);
       
        System.out.print("==========================================================\n" +
                "Name = "+name+" \n" +
                "Class = "+ className+"\n");
        sess.save(mo);
View Full Code Here

Examples of org.camunda.bpm.model.xml.Model

  private void assertFlowElementIs(Class<? extends FlowElement> elementClass) {
    BpmnModelInstance modelInstance = ModelExecutionContextExecutionListener.modelInstance;
    assertNotNull(modelInstance);

    Model model = modelInstance.getModel();
    Collection<ModelElementInstance> events = modelInstance.getModelElementsByType(model.getType(Event.class));
    assertEquals(3, events.size());
    Collection<ModelElementInstance> gateways = modelInstance.getModelElementsByType(model.getType(Gateway.class));
    assertEquals(1, gateways.size());
    Collection<ModelElementInstance> tasks = modelInstance.getModelElementsByType(model.getType(Task.class));
    assertEquals(1, tasks.size());

    FlowElement flowElement = ModelExecutionContextExecutionListener.flowElement;
    assertNotNull(flowElement);
    assertTrue(elementClass.isAssignableFrom(flowElement.getClass()));
View Full Code Here

Examples of org.chasen.mecab.Model

    }
    return uniqueInstance;
  }
 
  private MeCabLoader(String dicDir) {
    model = new Model("-d " + dicDir);
  }
View Full Code Here

Examples of org.codehaus.modello.model.Model

    protected void prepareTest( String outputType )
        throws ComponentLookupException, ModelloException, ModelValidationException, IOException, CompilerException
    {
        ModelloCore modello = (ModelloCore) container.lookup( ModelloCore.ROLE );

        Model model = modello.loadModel( ReaderFactory.newXmlReader( getTestFile( "src/test/resources/model.mdo" ) ) );

        File generatedSources = getTestFile( "target/" + outputType + "/sources" );

        File classes = getOutputDirectory();
View Full Code Here

Examples of org.dmg.pmml.Model

    for( Segment segment : model.getSegmentation().getSegments() )
      {
      if( !segment.getPredicate().getClass().equals( True.class ) )
        throw new PatternException( "segment predicates currently not supported, got: " + segment.getPredicate() );

      Model segmentModel = segment.getModel();

      if( segmentModel instanceof TreeModel )
        models.add( new TreeSpec( modelSchema, createTree( (TreeModel) segmentModel, modelSchema ) ) );
      else
        throw new PatternException( "ensemble model currently not supported, got: " + segmentModel );
View Full Code Here

Examples of org.dmlite.model.component.model.Model

      add(quoteListPanel);

      ModelContext conceptsModelContext = new ModelContext();
      conceptsModelContext.setDomainModel(app.getDomainModel());
      Models models = (Models) app.getEntry("Models");
      Model model = (Model) models.last();
      Concepts concepts = null;
      if (model != null) {
        concepts = model.getConcepts();
      }
      conceptsModelContext.setEntities(concepts);
      ViewContext conceptsViewContext = new ViewContext();
      conceptsViewContext.setApp(app);
      conceptsViewContext.setContextPage(this);
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.Model

   * @param tagName
   * @return small image using metadata.  May be null.
   */
  public Image getSmallIconImage(IProject project, String nsUri, String tagName) {
    Image image = null;
    Model model = getModel(project, nsUri);
    if (model != null){
      ImageDescriptor imgDesc = getSmallIconImageDescriptor(model, tagName);
      image = getOrCreateImage(imgDesc);
    }
   
View Full Code Here

Examples of org.eclipse.uml2.Model

    /**
     * Find the Model of a ressource (UML2 Model)
     */
    public static Model findModel(final UML2Resource resource)
    {
        Model model = (Model)EcoreUtil.getObjectByType(
                resource.getContents(),
                EcorePackage.eINSTANCE.getEObject());
        if (logger.isDebugEnabled())
        {
            logger.debug("Model found: " + model);
View Full Code Here

Examples of org.eclipse.uml2.uml.Model

  public static void main(String[] args) {
    readCmdArgs(args);

    // read Model
    Model model = (Model) load(inFile).get(0);
    out("ModelName: " + model.getName()); //$NON-NLS-1$

    // select one activity
    Activity activity = selectActivity(model);

    ActivityTestCaseGraphResourceFactoryImpl resFactory = new ActivityTestCaseGraphResourceFactoryImpl();
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.xml.Model

  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  protected DocumentElement getDocumentNode(String name, DocumentElement parent) {
    if ("web-app".equals(name)) {
      Model model = new Model();
      WebAppElement root = new WebAppElement();
      root.setModel(model);
      return root;
    } else if ("welcome-file-list".equals(name)) {
      return new WelcomeFileListElement();
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.