Package org.openiaml.model.model.domain

Examples of org.openiaml.model.model.domain.DomainType


   */
  public DomainSource getOriginalDomainSource(Role root_role) {
 
    for (ExtendsEdge ex : root_role.getInExtendsEdges()) {
      if (ex.getFrom() instanceof DomainType) {
        DomainType schema = (DomainType) ex.getFrom();
       
        for (SchemaEdge se : schema.getInSchemas()) {
          // return the first one found
          return se.getFrom();
        }
      }
    }
View Full Code Here


    setGeneratedBy(event, by);
    return event;
  }

  public DomainType generatedDomainType(GeneratesElements by, InternetApplication container) throws InferenceException {
    DomainType obj = createDomainType(container);
    setGeneratedBy(obj, by);
    return obj;
  }
View Full Code Here

    return obj;
  }

  // used by tests.diagram
  public DomainType createDomainType(InternetApplication container) throws InferenceException {
    DomainType obj = (DomainType) createElement( container, DomainPackage.eINSTANCE.getDomainType(), ModelPackage.eINSTANCE.getInternetApplication_Types() );
    return obj;
  }
View Full Code Here

    // initially just the default page
    assertEditorHasChildren(1, editor);

    // create a DomainStore
    DomainType ds = gmf.createDomainType(root);
    assertNotNull(ds);

    // and a Frame
    Frame page = gmf.createFrame(root);
    assertNotNull(page);
View Full Code Here

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

    DomainType obj = assertHasDomainType(root, "User");
    assertNotGenerated(obj);

    DomainAttribute password = assertHasDomainAttribute(obj, "password");
    assertNotGenerated(password);
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");
View Full Code Here

   *
   * @throws Exception
   */
  public void testDomainIteratorHasDomainAttributes() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    DomainType news = assertHasDomainType(root, "News");
    DomainIterator iterator = assertHasDomainIterator(home, "select three news");
    DomainInstance instance = iterator.getCurrentInstance();
    assertGenerated(instance);

    DomainAttributeInstance iid = assertHasDomainAttributeInstance(instance, "id");
View Full Code Here

   *
   * @throws Exception
   */
  public void testLabelsCreatedInList() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    DomainType news = assertHasDomainType(root, "News");
    IteratorList list = assertHasIteratorList(home, "List");

    Label lid = assertHasLabel(list, "id");
    Label ltitle = assertHasLabel(list, "title");
    Label lcontent = assertHasLabel(list, "content");
View Full Code Here

    return HasDomainAttribute.class;
  }

  public void testNotPrimaryKey() throws Exception {
   
    DomainType d1 = assertHasDomainType(root, "Not Empty");
    DomainAttribute a1 = assertHasDomainAttribute(d1, "attr1");
    DomainType d3 = assertHasDomainType(root, "Generated Primary Key");
    DomainAttribute a2 = assertHasDomainAttribute(d3, "generated primary key");
   
    assertTrue(getHelper().notPrimaryKey(a1));
    assertFalse(getHelper().notPrimaryKey(a2));
   
View Full Code Here

   * @throws Exception
   */
  public void testInitial() throws Exception {
    root = loadDirectly(DomainInheritanceEditing.class);

    DomainType student = assertHasDomainType(root, "Student");
    assertNotGenerated(student);

  }
View Full Code Here

TOP

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

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.