Package org.openiaml.model.model.domain

Examples of org.openiaml.model.model.domain.DomainSource


    setGeneratedBy(obj, by);
    return obj;
  }

  public DomainSource generatedDomainSource(GeneratesElements by, InternetApplication container) throws InferenceException {
    DomainSource obj = (DomainSource) createElement( container, DomainPackage.eINSTANCE.getDomainSource(), ModelPackage.eINSTANCE.getInternetApplication_Sources() );
    setGeneratedBy(obj, by);
    return obj;
  }
View Full Code Here


   * @param object
   * @throws InferenceException
   */
  @Override
  public void checkModelElement(EObject object) throws InferenceException {
    DomainSource ds = (DomainSource) object;
    if (!ds.getType().equals(DomainStoreTypes.PROPERTIES_FILE)) {
      throw new InferenceException("Can only refresh mappings of Properties files: actual type was '" + ds.getType() + "'");
    }
  }
View Full Code Here

  public void testInitial() throws Exception {
    root = loadDirectly(LoginHandlerInstance.class);

    Frame page = assertHasFrame(root, "Home");
    assertNotGenerated(page);
    DomainSource store = assertHasDomainSource(root, "domain source");
    assertNotGenerated(store);
    Session session = assertHasSession(root, "my session");
    assertNotGenerated(session);

    DomainType obj = assertHasDomainType(root, "User");
View Full Code Here

  public void testInitial() throws Exception {

    Frame home = assertHasFrame(root, "Home");

    DomainType news = assertHasDomainType(root, "News");
    DomainSource db = assertHasDomainSource(root, "Database");
    assertHasSchemaEdge(db, news);

    IteratorList list = assertHasIteratorList(home, "List");
    DomainIterator iterator = assertHasDomainIterator(home, "select three news");
    assertEquals(3, iterator.getLimit());
View Full Code Here

   * Check that {@link FileReferenceImpl#resolveFileReference(DomainSource)}
   * is working as expected.
   */
  public void testResolveFileReference() {

    DomainSource source = root.getSources().get(0);
    assertEquals("target source", source.getName());
    assertNotGenerated(source);
   
    assertNotNull(source.getFile());
   
    assertEquals( getDatabaseName(), "output/" + FileReferenceImpl.resolveFileReference(source) );
   
  }
View Full Code Here

    DomainIterator cur = assertHasDomainIterator(session, "current instance");

    Role role = assertHasRole(root, "default role");

    // a source has been connected
    DomainSource source = cur.getOutSelects().get(0).getTo();
    // (but it's already been defined)
    assertNotGenerated(source);

    // there must be a link from 'cur' to the target Role
    // (so the iterator knows what type it is)
View Full Code Here

    Role genrole = assertHasRole(root, "User");
    assertGenerated(genrole);

    // the source of 'role'
    DomainSource source = cur.getOutSelects().get(0).getTo();
    assertNotGenerated(assertHasSchemaEdge(source, role));

    // the generated role is NOT connected to the same
    assertHasNoSchemaEdge(source, genrole);

    // but it has its own
    DomainSource source2 = genrole.getInSchemas().get(0).getFrom();
    assertGenerated(source2);

    assertNotSame(source, source2);

  }
View Full Code Here

    assertGenerated(assertHasSetWire(root, handler, iterator));
   
    // TODO which Schema should it connect to?
   
    // it must have a SelectEdge out to the
    DomainSource source = iterator.getOutSelects().get(0).getTo();
    assertGenerated(source);
   
    DomainType targetSchema = default_user;
   
    assertGenerated(assertHasSchemaEdge(source, targetSchema));
View Full Code Here

  public void testInitial() throws Exception {
    root = loadDirectly(LoginHandlerInstanceMultiple.class);

    Frame page = assertHasFrame(root, "Home");
    assertNotGenerated(page);
    DomainSource store = assertHasDomainSource(root, "domain source");
    assertNotGenerated(store);
    Session session = assertHasSession(root, "my session");
    assertNotGenerated(session);

    DomainType obj = assertHasDomainType(root, "User");
View Full Code Here

    // the [limit 10] iterator is connected to a source
    DomainIterator iterator10 = assertHasDomainIterator(feed, "recent news");
    assertEquals(10, iterator10.getLimit());

    assertEquals(1, iterator10.getOutSelects().size());
    DomainSource source = iterator10.getOutSelects().get(0).getTo();

    // connected to a DomainSchema
    DomainType schema = assertHasDomainType(root, "News");
    assertNotGenerated(schema);
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.domain.DomainSource

Copyright © 2018 www.massapicom. 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.