Examples of Creator


Examples of org.apache.tapestry.test.Creator

    public void testRollbackPageProperty()
    {
        IRequestCycle cycle = newCycle();
        ErrorLog log = newLog();

        Creator creator = new Creator();

        PageFixture page = (PageFixture) creator.newInstance(PageFixture.class);

        MockControl sourcec = newControl(PropertyPersistenceStrategySource.class);
        PropertyPersistenceStrategySource source = (PropertyPersistenceStrategySource) sourcec
                .getMock();
View Full Code Here

Examples of org.apache.tapestry.test.Creator

    private Creator _creator;

    protected Creator getCreator()
    {
        if (_creator == null)
            _creator = new Creator();

        return _creator;
    }
View Full Code Here

Examples of org.apache.tapestry.test.Creator

*/
public class TestPageEvents extends HiveMindTestCase
{
    private IPage newPage()
    {
        Creator creator = new Creator();

        return (IPage) creator.newInstance(BasePage.class);
    }
View Full Code Here

Examples of org.apache.ws.scout.Creator

        login();
        try
        {
            RegistryService rs = connection.getRegistryService();
            blm = rs.getBusinessLifeCycleManager();
            Creator creator = new Creator(blm);
           
            Collection<ClassificationScheme> schemes = new ArrayList<ClassificationScheme>();
            ClassificationScheme classificationScheme = creator.createClassificationScheme(this.getClass().getName());
            schemes.add(classificationScheme);
           
            BulkResponse bulkResponse = blm.saveClassificationSchemes(schemes);
            assertEquals(JAXRResponse.STATUS_SUCCESS,bulkResponse.getStatus());
           
View Full Code Here

Examples of org.directwebremoting.extend.Creator

                    String scriptName = entry.getKey();
                    CreatorConfig creatorConfig = entry.getValue();

                    if (creatorConfig.getCreator() != null)
                    {
                        Creator creator = creatorConfig.getCreator();
                        creatorManager.addCreator(creator);
                    }
                    else
                    {
                        String creatorName = creatorConfig.getCreatorType();
View Full Code Here

Examples of org.jvnet.hk2.config.provider.internal.Creator

     * in which case the proxy to {@link Dom} will be placed into the habitat.
     */
    @SuppressWarnings("unchecked")
    protected Creator createCreator(Class c) {
        Map<String, List<String>> metadata = getMetadata();
        Creator creator = new CreatorImpl(c, getServiceLocator());
       
        return (ConfigBeanProxy.class.isAssignableFrom(c) ?
                new DomProxyCreator(c, this) :
                new ConfiguredCreator(creator,this));
    }
View Full Code Here

Examples of org.sbml.jsbml.Creator

    // tag.
    if (elementName != null) {
      // A VCardParser can only modify a contextObject which is a
      // Creator instance.
      if (contextObject instanceof Creator) {
        Creator creator = (Creator) contextObject;

        // Sets the familyName String of modelCreator.
        if (elementName.equals("Family") && hasReadFamilyName) {
          creator.setFamilyName(characters);
        }
        // Sets the givenName String of modelCreator.
        else if (elementName.equals("Given") && hasReadGivenName) {
          creator.setGivenName(characters);
        }
        // Sets the email String of modelCreator.
        else if (elementName.equals("EMAIL") && hasReadEMAIL) {
          creator.setEmail(characters);
        }
        // Sets the orgname String of modelCreator.
        else if (elementName.equals("Orgname") && hasReadOrgName) {
          creator.setOrganisation(characters);
        } else if (!elementName.equals("ORG") && !elementName.equals("N")) {
          // Storing additional VCard elements in a map to write them back
         
          creator.setOtherAttribute(elementName, characters);
        }
      } else {
        logger.warn("Lost Information: the characters '" + characters + "' on the element '" + elementName + "' might be lost"
            + " as the context object is not a Creator.");
      }
View Full Code Here

Examples of org.sbml.jsbml.Creator

  }

  @Test
  public void test_Model_setgetModelHistory() {
    History history = new History();
    Creator mc = new Creator();
    Date date = Calendar.getInstance().getTime();
    mc.setFamilyName("Keating");
    mc.setGivenName("Sarah");
    mc.setEmail("sbml-team@caltech.edu");
    mc.setOrganisation("UH");
    history.addCreator(mc);
    history.setCreatedDate(date);
    history.setModifiedDate(date);
    assertTrue(M.isSetHistory() == false);
    M.setHistory(history);
    assertTrue(M.isSetHistory() == true);
    Creator newMC = history.getCreator(0);
    assertTrue(newMC != null);
    assertTrue(newMC.getFamilyName().equals("Keating"));
    assertTrue(newMC.getGivenName().equals("Sarah"));
    assertTrue(newMC.getEmail().equals("sbml-team@caltech.edu"));
    assertTrue(newMC.getOrganisation().equals("UH"));
    M.unsetHistory();
    assertTrue(M.isSetHistory() == false);
    history = null;
    mc = null;
  }
View Full Code Here

Examples of org.sbml.jsbml.Creator

    // 'li' subelement of the 'Bag' subelement of the 'creator' node.
    // When this parser is parsing the model history, some rdf attributes can appear. Try to
    // read them.
    else if (contextObject instanceof Creator && previousElements.containsKey("creator")) {
      if (previousElements.get("creator").equals("li")) {
        Creator modelCreator = (Creator) contextObject;
        isReadAttribute = modelCreator.readAttribute(elementName, attributeName, prefix, value);
      }
    }
    // A RDFAnnotationParser can modify a contextObject which is an CVTerm instance.
    // If the contextObject is a CVTerm instance, the rdf attributes should appear in the
    // 'li' subelement of the 'Bag' subelement of the 'Miriam-Qualifier' node.
View Full Code Here

Examples of org.sbml.jsbml.Creator

            // If the SBML specifications are respected, a new ModelCreator will be created
            // and added to the listOfCreators of modelHistory. In this case, it will return the new ModelCreator instance.
            else if (elementName.equals("li") && previousElements.containsKey("creator")) {
              if (previousElements.get("creator").equals("Bag")) {
                this.previousElements.put("creator", "li");
                Creator modelCreator = new Creator();
                modelHistory.addCreator(modelCreator)
                return modelCreator;
              }
              else {
                logger.warn("Syntax error in your RDF annotation");
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.